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

Question: localcolabfold error "ValueError: min() arg is an empty sequence" when it predicts trimer complex #202

Open
Tttgb opened this issue Dec 20, 2023 · 0 comments

Comments

@Tttgb
Copy link

Tttgb commented Dec 20, 2023

Dear developer:
I ran the localcolabfold very successfully when it predicted dimer complex. However when it encounter trimer complex, it fails, even though their linux code is the same.
Here are the output of localcolabfold:

2023-12-20 13:11:36.499095: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-12-20 13:11:44.437896: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1956] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2023-12-20 13:11:26,716 Running colabfold 1.5.3 (5bb28b0de8d1f9fdedbe66e94c8fc61b6fa8c695)
2023-12-20 13:11:44,428 Running on GPU
2023-12-20 13:11:46,007 Found 8 citations for tools or databases
2023-12-20 13:14:30,835 Query 1/1: GPATCH8_1_1502__SF3B1_453_1304__DHX15_1_795_ (length 3149)
2023-12-20 13:18:43,618 Sequence 0 found templates: ['6sh7_B', '8ejm_B', '6sh6_B', '7onb_N', '7q4o_9', '7q4p_9', '7abh_4', '6ahd_w', '5z56_w', '6ah0_w', '7abi_N', '5o9z_N', '7abg_N', '6ahd_8', '7dco_y']
2023-12-20 13:19:22,887 Could not get MSA/templates for GPATCH8_1_1502__SF3B1_453_1304__DHX15_1_795_: min() arg is an empty sequence
Traceback (most recent call last):
File "/data/run01/scv3554/xrh/xjd/colabfold/localcolabfold/colabfold-conda/lib/python3.10/site-packages/colabfold/batch.py", line 1470, in run
= get_msa_and_templates(jobname, query_seqs_unique, unpaired_msa, result_dir, 'single_sequence', use_templates,
File "/data/run01/scv3554/xrh/xjd/colabfold/localcolabfold/colabfold-conda/lib/python3.10/site-packages/colabfold/batch.py", line 782, in get_msa_and_templates
template_feature = mk_template(
File "/data/run01/scv3554/xrh/xjd/colabfold/localcolabfold/colabfold-conda/lib/python3.10/site-packages/colabfold/batch.py", line 134, in mk_template
templates_result = template_featurizer.get_templates(
File "/data/run01/scv3554/xrh/xjd/colabfold/localcolabfold/colabfold-conda/lib/python3.10/site-packages/alphafold/data/templates.py", line 883, in get_templates
result = _process_single_hit(
File "/data/run01/scv3554/xrh/xjd/colabfold/localcolabfold/colabfold-conda/lib/python3.10/site-packages/alphafold/data/templates.py", line 715, in _process_single_hit
mapping = _build_query_to_hit_index_mapping(
File "/data/run01/scv3554/xrh/xjd/colabfold/localcolabfold/colabfold-conda/lib/python3.10/site-packages/alphafold/data/templates.py", line 646, in _build_query_to_hit_index_mapping
min_idx = min(x for x in indices_query if x > -1)
ValueError: min() arg is an empty sequence
2023-12-20 13:19:22,893 Done

The code I run colabfold is: colabfold_batch --templates --amber --custom-template-path ./template/ ./*.a3m ./output ,and the .a3m file and the template files are pre-generated.

This appears to be a bug when using .a3m files to start predictions, because I don't get this error when I try to start from a fastp file. Maybe it is related with #182 ?

Thanks!

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

1 participant