Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inference error when predicting multimer sequence #119

Closed
ssn1771 opened this issue Dec 7, 2022 · 5 comments
Closed

inference error when predicting multimer sequence #119

ssn1771 opened this issue Dec 7, 2022 · 5 comments

Comments

@ssn1771
Copy link

ssn1771 commented Dec 7, 2022

when i try to inference multimer sequence,i met the error after finishing running alignment and searching for templates:
Traceback (most recent call last):
File "inference.py", line 513, in
main(args)
File "inference.py", line 148, in main
inference_multimer_model(args)
File "inference.py", line 268, in inference_multimer_model
processed_feature_dict = feature_processor.process_features(
File "/home/FastFold/fastfold/data/feature_pipeline.py", line 124, in process_features
return np_example_to_features(
File "/home/FastFold/fastfold/data/feature_pipeline.py", line 96, in np_example_to_features
features = input_pipeline_multimer.process_tensors_from_config(
File "/home/FastFold/fastfold/data/input_pipeline_multimer.py", line 107, in process_tensors_from_config
tensors = compose(nonensembled)(tensors)
File "/home/FastFold/fastfold/data/data_transforms.py", line 76, in
return lambda x: f(x, *args, **kwargs)
File "/home/FastFold/fastfold/data/input_pipeline_multimer.py", line 124, in compose
x = f(x)
File "/home/FastFold/fastfold/data/data_transforms_multimer.py", line 298, in make_msa_profile
batch['msa_mask'][..., None],
KeyError: 'msa_mask'

i’ve tried several sequences,but met the same error . The sequence is

7M5F_1|Chain A|CdiI|Serratia marcescens (615)
MKEIKLMADYHCYPLWGTTPDDFGDISPDELPISLGLKNSLEAWAKRYDAILNTDDPALSGFKSVEEEKLFIDDGYKLAELLQEELGSAYKVIYHADY
7M5F_2|Chain B[auth C]|Toxin CdiA|Serratia marcescens (615)
MHHHHHHENLYFQSNAAKNSLTTKSLFKEMTIQGIKFTPENVVGAAKDNSGKIIFLEKGNSKSGLQHIVEEHGDQFAQIGVSEARIPDVVMKAVTDGKIVGYQGAGAGRPIYETMIDGKKYNIAVTVGSNGYVVGANLRGSVK

@Shenggan
Copy link
Contributor

Shenggan commented Dec 7, 2022

I think it may be a problem with the input format, try using this fasta file as input.
target.fasta.txt

@ssn1771
Copy link
Author

ssn1771 commented Dec 8, 2022

I tried the target fasta which you provided and met the same error ><

Traceback (most recent call last):
File "inference.py", line 513, in
main(args)
File "inference.py", line 148, in main
inference_multimer_model(args)
File "inference.py", line 268, in inference_multimer_model
processed_feature_dict = feature_processor.process_features(
File "/home/FastFold/fastfold/data/feature_pipeline.py", line 124, in process_features
return np_example_to_features(
File "/home/FastFold/fastfold/data/feature_pipeline.py", line 96, in np_example_to_features
features = input_pipeline_multimer.process_tensors_from_config(
File "/home/FastFold/fastfold/data/input_pipeline_multimer.py", line 107, in process_tensors_from_config
tensors = compose(nonensembled)(tensors)
File "/home/FastFold/fastfold/data/data_transforms.py", line 76, in
return lambda x: f(x, *args, **kwargs)
File "/home/FastFold/fastfold/data/input_pipeline_multimer.py", line 124, in compose
x = f(x)
File "/home/FastFold/fastfold/data/data_transforms_multimer.py", line 298, in make_msa_profile
batch['msa_mask'][..., None],
KeyError: 'msa_mask'

@Shenggan
Copy link
Contributor

Shenggan commented Dec 8, 2022

Are you using the latest main branch? I can inference this fasta file successfully.

@ssn1771
Copy link
Author

ssn1771 commented Dec 8, 2022

ok, I pull the latest code and it works. Thanks a lot !

@Shenggan
Copy link
Contributor

Shenggan commented Dec 8, 2022

Thanks, feel free to contact us if you have ant further question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants