Hello, I have a similar question regarding Fasta module in Biopython. I am using disembl predictor Disembl.py) for protein disorder and I have a mistake ImportError: cannot import name Fasta. I read an answer in "Fasta module in Python/Biopython" record - to change Fasta with SeqIO but since I don't know Python, I didn't succeed to change the script. The problem is in the following two lines:
parser = Fasta.RecordParser() iterator = Fasta.Iterator(db,parser)
which functions should I use instead?
and later, in line:
cur_record = iterator.next()
what to use instead of this? I tried to do the same as in suggested in "Fasta module in Python/Biopython" () but it works only once..
Nice, just what I was looking for, thanks and +1. Thought I'd point out a typo in the gist I just downloaded, line 152
sys.stdout.write('> '+cur_record.id'_COILS ')should be
sys.stdout.write('> '+cur_record.id+'_COILS ')(notice the
'_COILS), otherwise you get a
SyntaxError: invalid syntaxerror..