Contents

Download

Installation

Quick example

from Bio.Seqimport Seq,translate
import Bio.SeqIO#create a sequence object of some DNA
my_seq = Seq('CATGTAGATAG')#print out some details about itprint'seq is %i bases long'%len(my_seq)print'reverse complement is %s'% my_seq.reverse_complement().tostring()#or see the whole recordprint my_seq
#translate the sequence into a protein
my_protein = translate(my_seq)print'protein translation is %s'% my_protein.tostring()print my_protein