Skip to content

Covalent bonds - #397

Open
peter-s-obi wants to merge 4 commits into
aqlaboratory:mainfrom
peter-s-obi:covalent-bonds
Open

peter-s-obi wants to merge 4 commits into
aqlaboratory:mainfrom
peter-s-obi:covalent-bonds

Conversation

@peter-s-obi

Copy link
Copy Markdown
Contributor

Summary

Adds query-level covalent bonds for inference. A user can specify connections between named atoms, and OpenFold-3 (OF3) will include them through its existing structure assembly, tokenization, and bond features.

Changes

  • Enables the existing covalent_bonds query field using [chain_id, residue_id, atom_name] endpoints, with one-based residue IDs.
  • Adds the connections as single bonds before tokenization, preserving existing bonds.
  • Validates endpoints and rejects missing or ambiguous atoms and self-bonds. Duplicate connections are ignored.
  • Adds documentation and example queries for a disulfide bond and a two-sugar glycan attached to Asn.

Related Issues

Related to #219 — Support covalently bound ligands in inference.

Testing
All tests pass

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

Successfully merging this pull request may close these issues.

1 participant