Answers for "read .fasta python"

0

read .fasta python

>>> import fastaparser
>>> with open("fasta_file.fasta") as fasta_file:
        parser = fastaparser.Reader(fasta_file)
        for seq in parser:
            # seq is a FastaSequence object
            print('ID:', seq.id)
            print('Description:', seq.description)
            print('Sequence:', seq.sequence_as_string())
            print()
Posted by: Guest on January-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language