[Biopython] Issues parsing sequences

Fernanda Trancoso fftrancoso96 at gmail.com
Sat Jan 13 21:07:29 UTC 2018


Dear Markus,

Thank you very much!

Best,

Fernanda.

2018-01-13 17:22 GMT-02:00 Markus Piotrowski <
Markus.Piotrowski at ruhr-uni-bochum.de>:

> Dear Fernanda,
>
> From you description it seems that you run Python from a command line and
> then insert the code.
> The '...' indicate an indented block. Your second line is a for loop that
> ends with a ':', so the following lines will be indented (they are the body
> of the for loop). You just have to hit 'ENTER' two times to make Python
> clear that you are ready to execute the code block.
> The execution will probably fail, if you don't have the file
> "ls_orchid.fasta" in the same directory where you have started your Python
> session.
>
> Best, Markus
>
>
> Am 13.01.2018 um 18:55 schrieb Fernanda Trancoso:
>
> Hello guys,
> I'm trying to do the biopython tutorial and cookbook but i got stuck on
> the "2.4.1 Simple FASTA parsing example". It says
>
> Now try this in Python:
>
> from Bio import SeqIO
> for seq_record in SeqIO.parse("ls_orchid.fasta", "fasta"):
>     print(seq_record.id)
>     print(repr(seq_record.seq))
>     print(len(seq_record))
>
> But from the second line forward the ">>>" turns into "..." and I have no
> idea of what input is missing, since I did copy/paste to be sure that i
> wasn't writing something wrong.
> Does anyone knows what might be going wrong?
>
> Thanks
> --
> Fernanda Fontes Trancoso
> Aluna de Graduação em Ciências Biológicas na UFMG
> Iniciação Científica no Laboratório de Sistemática de Insetos
> <http://abelhasufmg.wix.com/lsea>
> +55 (31) 9156-6485 <+55%2031%209156-6485>
>
>
> _______________________________________________
> Biopython mailing list  -  Biopython at mailman.open-bio.orghttp://mailman.open-bio.org/mailman/listinfo/biopython
>
>
>
> _______________________________________________
> Biopython mailing list  -  Biopython at mailman.open-bio.org
> http://mailman.open-bio.org/mailman/listinfo/biopython
>



-- 
Fernanda Fontes Trancoso
Aluna de Graduação em Ciências Biológicas na UFMG
Iniciação Científica no Laboratório de Sistemática de Insetos
<http://abelhasufmg.wix.com/lsea>
+55 (31) 9156-6485
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20180113/867d0f30/attachment.html>


More information about the Biopython mailing list