ColabFold icon indicating copy to clipboard operation
ColabFold copied to clipboard

AF2 with MMseqs2 ColabFold crash: unable to find SCOPdata

Open jfbazan opened this issue 2 years ago • 6 comments

This is fairly new, having run ColabFold 1.5.3 (the workhorse AF2 w/ MMseqs version) quite well last night, but the first job this morning crashed at the "Run Prediction" stage with the following error message––that centers on the inability to load SCOPdata, an interesting dependency that I wasn't aware of! Just in case, I restarted and ran clean ColabFolds twice, and the error recurred exactly as the first time. Thx in advance for your kind help!


ImportError Traceback (most recent call last) in <cell line: 12>() 10 from colabfold.download import download_alphafold_params, default_data_dir 11 from colabfold.utils import setup_logging ---> 12 from colabfold.batch import get_queries, run, set_model_type 13 from colabfold.plot import plot_msa_v2 14

5 frames /content/alphafold/data/mmcif_parsing.py in 22 from absl import logging 23 from Bio import PDB ---> 24 from Bio.Data import SCOPData 25 26 # Type aliases:

ImportError: cannot import name 'SCOPData' from 'Bio.Data' (/usr/local/lib/python3.10/dist-packages/Bio/Data/init.py)

jfbazan avatar Dec 22 '23 17:12 jfbazan

We are fixing the issue by downgrading biopython. Will deploy a real fix soon afterwards!

milot-mirdita avatar Dec 22 '23 18:12 milot-mirdita

Patch seems to work! Many thanks, Milot!

jfbazan avatar Dec 22 '23 21:12 jfbazan

Hi @jfbazan,

How did you patch the issue? It would be helpful to know.

Thanks, Deepak

pdeepakb avatar Dec 26 '23 00:12 pdeepakb

@pdeepakb Make sure you are using the latest notebook.

sokrypton avatar Dec 26 '23 00:12 sokrypton

@sokrypton Hi,

I'm using this one https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb

can you point me to the newer version?

Thanks, Deepak

pdeepakb avatar Dec 26 '23 01:12 pdeepakb

I have met the same question, and I find the reason. From file of biopython , I found this:

Bio.Data.SCOPData
Declared obsolete in release 1.80, and removed in release 1.82. Please use Bio.Data.PDBData instead.

So I downgraded biopython (to 1.79) in Conda. And it works.

KevinZhang97 avatar Dec 27 '23 09:12 KevinZhang97