Skip to content

Error "complex_name" #287

Description

@rjrich

When trying to run diffdock to predict 24 protein-ligand complexes, I get the following error related to "complex_name":

(diffdock) rjrich@rjr-sd1:~/DiffDock$ python -m inference --config default_inference_args.yaml --protein_ligand_csv DjCES/DjCES_dd.csv --out_dir DjCES/results
/home/rjrich/anaconda3/envs/diffdock/lib/python3.9/site-packages/Bio/pairwise2.py:278: BiopythonDeprecationWarning: Bio.pairwise2 has been deprecated, and we intend to remove it in a future release of Biopython. As an alternative, please consider using Bio.Align.PairwiseAligner as a replacement, and contact the Biopython developers if you still need the Bio.pairwise2 module.
warnings.warn(
Traceback (most recent call last):
File "/home/rjrich/anaconda3/envs/diffdock/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 3805, in get_loc
return self._engine.get_loc(casted_key)
File "index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc
File "index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 7081, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 7089, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'complex_name'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/rjrich/anaconda3/envs/diffdock/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/rjrich/anaconda3/envs/diffdock/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/rjrich/DiffDock/inference.py", line 318, in
main(_args)
File "/home/rjrich/DiffDock/inference.py", line 157, in main
complex_name_list = set_nones(df['complex_name'].tolist())
File "/home/rjrich/anaconda3/envs/diffdock/lib/python3.9/site-packages/pandas/core/frame.py", line 4102, in getitem
indexer = self.columns.get_loc(key)
File "/home/rjrich/anaconda3/envs/diffdock/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc
raise KeyError(key) from err
KeyError: 'complex_name'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions