[Biopython-dev] fixes on the tutorials

carl crott carlcrott at gmail.com
Mon Oct 17 01:24:27 UTC 2011


So the tutorials I'm running through have some bugs in them ...

would anyone like me to fix these?


tutorial 2.4.1 should be something like:

from Bio import SeqIO
handle = open("ls_orchid.fasta", "rU")
for seq_record in SeqIO.parse(handle, "fasta"):
    print seq_record.id
    print repr(seq_record.seq)
    print len(seq_record)
handle.close()




and tutorial 2.4.2:

from Bio import SeqIO
handle = open("ls_orchid.gbk", "rU")
for seq_record in SeqIO.parse(handle, "genbank"):
    print seq_record.id
    print repr(seq_record.seq)
    print len(seq_record)
handle.close()



More information about the Biopython-dev mailing list