biopython
madhuri vio
madhuri.vio at gmail.com
Mon Jun 14 10:02:33 EDT 2010
i have tried this still unable to get an output
from Bio import Seq
from Bio import SeqIO
from Bio import SeqRecord
for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"):
print seq_record.id
print repr(seq_record.seq)
print len(seq_record)
python bio.py
Traceback (most recent call last):
File "bio.py", line 10, in <module>
for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"):
File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 433,
in read
iterator = parse(handle, format, alphabet)
File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 342,
in parse
raise TypeError("Need a file handle, not a string (i.e. not a
filename)")
TypeError: Need a file handle, not a string (i.e. not a filename)
--
madhuri :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100614/0f1d5ecc/attachment-0001.html>
More information about the Python-list
mailing list