

def __init__(self, nlmsa, filename, mode, idDictClass=None, maxSequenceCacheSize=_DEFAULT_SEQUENCE_CACHE_SIZE):
    self._cache = classutil.RecentValueDictionary(maxSequenceCacheSize)
    self.seqlist = NLMSASeqList(self)
    self.nlmsa = nlmsa
    self.filename = filename
    if (mode == 'memory'):
        idDictClass = dict
    elif (mode == 'w'):
        mode = 'n'
    if (maxSequenceCacheSize is None):
        self.seqIDdict = classutil.open_shelve((filename + '.seqIDdict'), mode)
        self.IDdict = classutil.open_shelve((filename + '.idDict'), mode)
    else:
        self.seqIDdict = idDictClass()
        self.IDdict = idDictClass()

dataset/ETHPy150Open cjlee112/pygr/pygr/nlmsa_utils.py NLMSASeqDict.__init__/VarMisuse@86/128 `idDictClass`->`maxSequenceCacheSize`