I am trying to run a python script http://globplot.embl.de/html/GlobPipe-2.3.tgz for predicing globular regions in proteins. Unfortunalte, there is a Python error which is probably related to biopython.
I don't speak python, so I am not sure what is going on, but it seems like the offending statment is line 9:
from Bio import Fasta
which results in the error
ImportError: cannot import name Fasta
I do have BioPython installed (and line 8 works fine although it is also an import from Bio).
I tried to get information from the BioPython page, but I wasn't even able to find a list of functions/procedures/modules that are provided by "Bio". Is this some call to a BioPython function that no longer exists? If so, is there a drop-in replacement?
Bio.Fasta was deprecated in version 1.48 and removed in 1.55. If you just want to get the script working you can manually install a version older than 1.55 (http://biopython.org/wiki/Download) and use it with your script. Brent has exactly the right answer for updating the code to work with current Biopython version.
Thanks for this explanation! This is what I suspected. I don't think it is a good idea to install an old Biopython version (and to make sure that it isn't updated with the rest of ubuntu). I will try to do it the hard way by changing the script.