Skip to Content

openprotein.molecules

SDK release/v0.18.0

These data primitives represent a unified interface to working with our platform, whether it be structure prediction, binder design or inverse folding.

Protein is a fundamental primitive for working with proteins on the platform. These can be uploaded to our platform as a Query to be used with models like ProteinMPNN or ESMIF1 (e.g. for inverse-folding), as well as for ease of reuse. Construct a chain with Protein(sequence) and attach an MSA or templates with its properties or setters before folding. Use the mask methods to describe masked sequence or structure positions.

23source

Complex describes a molecular complex representation. These can be uploaded to our platform as a Query to be used with models like RFdiffusion, (e.g. for multi-chain binder design) as well as for easy reuse. Inspect chains with get_chains() or get_chain() and build or update them with insert_chain() and set_chain().

Construct a complex from chain IDs and molecule objects:

from openprotein.molecules import Complex, Ligand, Protein

complex = Complex({"A": Protein("ACDEFGHIK"), "B": Ligand(ccd="ATP")})
proteins = complex.get_proteins()

15source

Structure describes a collection of Complex instances. These are typically created when parsing structure files (e.g., CIF, PDB) that contain multiple models of the same molecular complex, such as NMR ensembles or computational predictions with multiple conformations.

6source

Ligand represents a ligand that can be described either by smiles or ccd. These are intended to be used as part of a Complex.

Provide exactly one of ccd or smiles; providing both or neither raises ValueError.

2source

DNA represents a DNA chain. These are intended to be used as part of a Complex.

DNA sequences accept A, C, G and T (case-insensitive); other letters raise ValueError.

1source

RNA represents a RNA chain. These are intended to be used as part of a Complex.

RNA sequences accept A, C, G and U (case-insensitive); other letters raise ValueError.

1source

Template describes a template that can be used for constraining fold jobs.

5source

On this page