Skip to content

Crosslinks can't be combined with bondedAtomPairs #3

Description

@gilep

Input JSON files with both nonempty "bondedAtomPairs" and "crosslinks" cause the error:

I0829 15:12:13.420509 140737350307840 folding_input.py:1461] Adding crosslinks
Traceback (most recent call last):
  File "/app/alphafold/run_alphafold.py", line 902, in <module>
    app.run(main)
  File "/alphafold3_venv/lib/python3.11/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/alphafold3_venv/lib/python3.11/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
             ^^^^^^^^^^
  File "/app/alphafold/run_alphafold.py", line 886, in main
    fold_input = fold_input.expand_links()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/alphafold3_venv/lib/python3.11/site-packages/alphafold3/common/folding_input.py", line 1495, in expand_links
    bonded_atom_pairs.extend(bond_pairs)
    ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'extend'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions