Sometimes it’s nice to be able to have a codon table handy. Rather than typing out one by hand, theTranslate module contains the codon table of your choice in dictionary form: Continue reading ‘A quick codon table’
Tag Archive for '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’
Much of BioPython uses Seq objects for dealing with sequences of all kinds. Here’s how to create, get the complement, transcribe, and translate sequences, either from scratch or from a FASTA or GenBank file. Continue reading ‘Working with BioPython Sequences’
BioPython can send sequences directly to NCBI and will download the results when they’re ready. Once you have the output, you can parse it to, say, just pull out the hits with the top 10 lowest E values. Or generate a list of the species most frequently found in the results . . . or other useful things. Continue reading ‘Run BLAST from 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’