[Biopython] Read sequence from file

Horea Chrristian h.chr at mail.ru
Wed Feb 25 16:03:40 UTC 2015


Hi guys, how can I read a sequence from a .txt file which contains only
a string of letters (nucleotides)? I tried `SeqIO.read("my/file","...")`
but if my second value is fasta or genbank, it complains about missing
handles, and nothing like "plain", "string", or "str" worked... What can
I do? It would be nice if I can do this via a one-liner rather than just
read it explicitly with python and then explicitly parse it.

Cheers, 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20150225/063e804c/attachment.html>


More information about the Biopython mailing list