question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

multimer model error:config_dict.py", line 903, in __getitem__ field = self._fields[key] KeyError: 'data'

See original GitHub issue

Hi,

I am able to predict a protein file but when I try the multimer model, I use: /home/qiushi/localcolabfold/colabfold_batch/bin/colabfold_batch \ > --amber \ > --templates \ > --num-recycle 1 \ > --model-type AlphaFold2-multimer \ > /home/qiushi/RESC6/complex.fasta \ > /home/qiushi/RESC6/complexdir

I got this error:

If you require more MSAs, please host your own API and pass it to --host-url 2022-03-06 18:21:09,433 Running colabfold 1.2.0 (46ae46946d771af1745d55c2c40050e8f54f5e17) 2022-03-06 18:21:09,434 Found 8 citations for tools or databases 2022-03-06 18:21:16,481 Query 1/2: T1084 (length 73) 2022-03-06 18:21:17,725 Sleeping for 9s. Reason: PENDING COMPLETE: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 150/150 [elapsed: 00:12 remaining: 00:00]2022-03-06 18:21:29,021 Sequence 0 found no templates 2022-03-06 18:21:29,021 Running model_3 Traceback (most recent call last): File β€œ/home/qiushi/localcolabfold/colabfold_batch/colabfold-conda/lib/python3.7/site-packages/ml_collections/config_dict/config_dict.py”, line 903, in getitem field = self._fields[key] KeyError: β€˜data’ During handling of the above exception, another exception occurred: Traceback (most recent call last): File β€œ/home/qiushi/localcolabfold/colabfold_batch/colabfold-conda/lib/python3.7/site-packages/ml_collections/config_dict/config_dict.py”, line 827, in getattr return self[attribute] File β€œ/home/qiushi/localcolabfold/colabfold_batch/colabfold-conda/lib/python3.7/site-packages/ml_collections/config_dict/config_dict.py”, line 909, in getitem raise KeyError(self._generate_did_you_mean_message(key, str(e))) KeyError: β€œβ€˜data’” During handling of the above exception, another exception occurred: Traceback (most recent call last): File β€œ/home/qiushi/localcolabfold/colabfold_batch/colabfold-conda/bin/colabfold_batch”, line 8, in <module> sys.exit(main()) File β€œ/home/qiushi/localcolabfold/colabfold_batch/colabfold-conda/lib/python3.7/site-packages/colabfold/batch.py”, line 1386, in main save_pair_representations=args.save_pair_representations, File β€œ/home/qiushi/localcolabfold/colabfold_batch/colabfold-conda/lib/python3.7/site-packages/colabfold/batch.py”, line 1102, in run prediction_callback=prediction_callback, File β€œ/home/qiushi/localcolabfold/colabfold_batch/colabfold-conda/lib/python3.7/site-packages/colabfold/batch.py”, line 198, in predict_structure use_templates, File β€œ/home/qiushi/localcolabfold/colabfold_batch/colabfold-conda/lib/python3.7/site-packages/colabfold/batch.py”, line 132, in batch_input eval_cfg = model_config.data.eval File β€œ/home/qiushi/localcolabfold/colabfold_batch/colabfold-conda/lib/python3.7/site-packages/ml_collections/config_dict/config_dict.py”, line 829, in getattr raise AttributeError(e) AttributeError: β€œβ€˜data’”

any idea how to make it work?

THanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
JohnJPaulcommented, Mar 20, 2022

Hi Had the same problem and I solved it by creating a fasta file containing both of the sequences and separated by : . Worked for me , hope it will does for you

Hi John, So, like my input file used to look like:

>T1083
GAMGSEIEHIEEAIANAKTKADHERLVAHYEEEAKRLEKKSEEYQELAKVYKKITDVYPNIRSYMVLHYQNLTRRYKEAAEENRALAKLHHELAIVED
>T1084
MAAHKGAEHHHKAAEHHEQAAKHHHAAAEHHEKGEHEQAAHHADTAYAHHKHAEEHAAQAAKHDAEHHAPKPH

Then you mean add a : for these fasta:

>T1083
GAMGSEIEHIEEAIANAKTKADHERLVAHYEEEAKRLEKKSEEYQELAKVYKKITDVYPNIRSYMVLHYQNLTRRYKEAAEENRALAKLHHELAIVED:
>T1084
MAAHKGAEHHHKAAEHHEQAAKHHHAAAEHHEKGEHEQAAHHADTAYAHHKHAEEHAAQAAKHDAEHHAPKPH

like this?

HI echard write the write syntax of the fasta file . The main problem is that 2 different lines start with > and collabfold can’t accept it.

If I am not mistaken the type of input fasta that you used is accepted but the AlphaFold2 or used to be accepted

Hope that will work for you Cheers JJ

1reaction
eckhard-hofmanncommented, Mar 20, 2022

Hi Qiushi, no, you have to have only one entry in the fasta file (only one header line starting with β€œ>”, and then the sequences separated by β€œ:”

Complex T1083 and T1084 GAMGSEIEHIEEAIANAKTKADHERLVAHYEEEAKRLEKKSEEYQELAKVYKKITDVYPNIRSYMVLHYQNLTRRYKEAAEENRALAKLHHELAIVED:

MAAHKGAEHHHKAAEHHEQAAKHHHAAAEHHEKGEHEQAAHHADTAYAHHKHAEEHAAQAAKHDAEHHAPKPH

No trailing β€œ:” either … πŸ˜‰ Cheers, Eckhard

Am 20.03.22 um 11:40 schrieb Qiushi Liu:

Hi

Had the same problem and I solved it by creating a fasta file
containing both of the sequences and separated by : . Worked for me
, hope it will does for you

Hi John, So, like my input file used to look like:

|>T1083 GAMGSEIEHIEEAIANAKTKADHERLVAHYEEEAKRLEKKSEEYQELAKVYKKITDVYPNIRSYMVLHYQNLTRRYKEAAEENRALAKLHHELAIVED

T1084 MAAHKGAEHHHKAAEHHEQAAKHHHAAAEHHEKGEHEQAAHHADTAYAHHKHAEEHAAQAAKHDAEHHAPKPH |

Then you mean add a : for these fasta:

|>T1083 GAMGSEIEHIEEAIANAKTKADHERLVAHYEEEAKRLEKKSEEYQELAKVYKKITDVYPNIRSYMVLHYQNLTRRYKEAAEENRALAKLHHELAIVED:

T1084 MAAHKGAEHHHKAAEHHEQAAKHHHAAAEHHEKGEHEQAAHHADTAYAHHKHAEEHAAQAAKHDAEHHAPKPH |

like this?

β€” Reply to this email directly, view it on GitHub https://github.com/YoshitakaMo/localcolabfold/issues/69#issuecomment-1073221549, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXKFO7RM7FCT7MCJWBWGHPTVA36B7ANCNFSM5QBO6YHA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

– Eckhard Hofmann @.***> Ruhr-Uni Bochum AG Proteinkristallographie ND04/318, Fachnummer 50 44780 Bochum Tel: +49-(0)234/32-24463, Sekr. -24461, FAX: -14762 ORCID: 0000-0003-4874-372X

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found