[BioPython] Fasta Iterator

Sylvain Schüpp syl_schupp at yahoo.fr
Mon Jun 14 13:17:29 EDT 2004


Yes, you're right.
I'm develloping under Windows XP using Python 2.3.4 and BioPython 1.30 for Windows.

And here is my problem :
>>> from Bio import Fasta
>>> file_for_blast = open('m-cold.fasta','r')
>>> f_iterator = Fasta.iterator(file_for_blast)
 
Traceback (most recent call last):
  File "<pyshell#5>", line 1, in -toplevel-
    f_iterator = Fasta.iterator(file_for_blast)
AttributeError: 'module' object has no attribute 'iterator'
 
But in the directory Lib/Bio/Fasta there is a file (something like __init__.py) which contain a class Iterator.
 
Thanks you !

Iddo Friedberg <idoerg at burnham.org> wrote:



> Hello, I'm new in BioPython (and Python), and I was learning by using


> the splendid Tutorial, 

Welcome aboard. And thatnks for the complement!

> when I tried to make my first Blast. I use the
> code presented in the cook-book (part3) and surprised : it doesn't
> work. I search a few to know where was the error : it's when I try to
> create a Fasta Iterator. So I had a look in the source-code, and in
> Bio.Fasta : there is a class Iterator. But somewhere it doesn't work.
> Could you help me ?

Kind of hard to know without the actual code, and the error Python
reports. How about you repost the code and the error? Also, which
Biopython version are you using, which Python version, and which operating
system.

Thanks,

Iddo

> P.S. : is there somewhere a forum of developpers, in order to post my
> further problem or should I use this list every time ?

There is a developer's list, but your question is better suited for this
one. 



		
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !


More information about the BioPython mailing list