adventures in bioinformatics
from cogent.align.algorithm import nw_alignfrom cogent.align.algorithm import sw_alignseq1 = 'TTCATA'seq2 = 'TGCTCGTA'print nw_align(seq1,seq2)print sw_align(seq1,seq2)
('T--TCATA', 'TGCTCGTA')('TCATA', 'TCGTA')