Posts Tagged ‘parsing’

Read FASTA files with BioPython

Wednesday, December 5th, 2007

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: (more…)

Parse GenBank files with BioPython

Sunday, December 2nd, 2007

BioPython handles GenBank files nicely. Here are a couple of ways of getting them into Python and working with them. (more…)