def seqtype(self):
        "Get the sequence type for this sequence"
        path = self.pathForward
        try: # TRY GETTING IT FROM TOP-LEVEL SEQUENCE OBJECT?
            return path._seqtype
        except AttributeError:
            try: # TRY TO GET IT FROM DB THIS SEQ IS ASSOCIATED WITH, IF ANY
                return path.db._seqtype
            except __HOLE__:# GUESS IT FROM 1ST 40 LETTERS OF SEQUENCE
                path._seqtype = guess_seqtype(str(self[0:40]))
                return path._seqtype
dataset/ETHPy150Open cjlee112/pygr/pygr/sequence.py/SeqPath.seqtype