def reopenReadOnly(self, mode='r'):
        self.close()
        self.seqIDdict = classutil.open_shelve(self.filename + '.seqIDdict',
                                               mode)
        self.IDdict = classutil.open_shelve(self.filename + '.idDict', mode)
save existing data and reopen in read-only mode
dataset/ETHPy150Open cjlee112/pygr/pygr/nlmsa_utils.py/NLMSASeqDict.reopenReadOnly