Tag Archive for 'parsing'

Read FASTA files with BioPython

Here are several ways to parse a FASTA file into BioPython Seq objects.

Getting a FASTA file into Python is as simple as importing the necessary functions from BioPython, opening the file, and calling a parser on the file. Then you have sequences in BioPython that can be readily used. There are a couple of different ways to parse the file, depending on your preference. Choices are: Continue reading ‘Read FASTA files with BioPython’

Parse GenBank files with BioPython

BioPython handles GenBank files nicely. Here are a couple of ways of getting them into Python and working with them. Continue reading ‘Parse GenBank files with BioPython’