[Biopython] gzip and SeqIo in python3: not working like before
Alan
alanwilter at gmail.com
Wed Mar 15 21:25:31 UTC 2017
Please, what do I need to change in this example that works fine in python2
but not in python3:
from __future__ import print_function
import gzip
from Bio import SeqIO
handle = gzip.open("file.fasta.gz", "r")
record = SeqIO.parse(handle, "fasta")
for rr in record:
print(rr.id)
IndexError: index out of range
Thanks,
Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20170315/fe9202f4/attachment.html>
More information about the Biopython
mailing list