

def saveSeq(self, seq, nsID=(- 1), offset=0, nlmsaID=None):
    'save mapping of seq to specified (nlmsaID,ns,offset)'
    if (nsID < 0):
        self.nlmsa.currentUnion.__iadd__(seq)
        return
    if isinstance(seq, types.StringType):
        id = seq
    else:
        id = self.getSeqID(seq)
    if (nlmsaID is None):
        nlmsaID = self.nlmsa.nextID()
    self.seqIDdict[id] = (nlmsaID, nsID, offset)
    self.IDdict[str(nlmsaID)] = (id, nsID)

dataset/ETHPy150Open cjlee112/pygr/pygr/nlmsa_utils.py NLMSASeqDict.saveSeq/original