Ligand index
Every structure of the MolNFT archive holds more than its polymer chains: cofactors, substrates, inhibitors and drugs, metal ions, sugars, and the additives of the crystallization. GL1X reads each of them as the structure file describes it, finds the polymer residues it touches, and keeps them in a ligand index: a catalog of chemical components that can be searched by component, name or formula, filtered by class, element, weight and protein, with every binding site of every component and the residues those sites are made of.
How a ligand is identified. A ligand is keyed by its chemical component
code in the wwPDB Chemical Component Dictionary (CCD), exactly as the
structure file writes it: HEM, ATP, ZN, NAG, one to five letters and
digits. RCSB PDB, PDBe and BioLiP use the same codes, so a component found
here is found under the same code there; each component page's structured
data names it PDB-CCD:HEM (for heme) and links the RCSB and PDBe pages of
that code. Predicted models from AlphaFold DB hold no ligands: they model the
polymer only. GL1X invents no identifiers and no names: every code, name and
synonym comes from a structure file, and a component no file names is shown
by its code alone.
Where: the Ligands page (/bio/ligands, in the left menu under
Bioinformatics onchain, group Search), a page per component
(/bio/ligands/HEM), the Ligands panel of every MolNFT record under its 3D
structure, the header search (ligand:HEM, ligand:heme), the API
(/api/bio/ligands…) and MCP (ligand_search, ligand_sites,
molecule_ligands).
What a ligand is #
A ligand is a non-polymer group of the structure's first model: one
residue of the file that belongs to no polymer chain and is not water (nor
one of the dummy atoms, DUM, with which the OPM database marks membrane
planes).
- mmCIF and BinaryCIF state it: the groups of the
non-polymerandbranchedentities (_entity.type), each with itslabel_asym_id. - PDB files do not state entities, so GL1X decides as the PDB does: an ATOM residue belongs to its chain, and so does a modified residue written as HETATM (MSE, SEP, 5MC…) that is bonded to the residue before or after it or lies within the numbering of the chain's ATOM residues, even with its trace atoms missing; every other HETATM group is a ligand, a free amino acid or nucleotide included, and so is a cofactor that has an amino acid's atoms (SAH, numbered after the chain, is not bonded to it).
- Left out: waters (HOH, DOD, WAT and their kin), hydrogen and deuterium atoms (a ligand is described by its heavy atoms), and the alternate locations after the first, as for the chains.
- Kept for each ligand: its chemical component (
HEM,ATP,ZN), the author chain and residue number with its insertion code (how the file and every paper name it: HEM A:154), thelabel_asym_idwhen the file has one, its heavy atoms with their elements (C34 Fe N4 O4), and its centroid. - Limits: 5,000 ligands a structure, 300 binding-site residues a ligand, 40,000 binding-site residues in all a structure.
"Bonded" has a precise meaning here: the C of one amino acid within 2.5 Å of the N of the next (a peptide bond), or the O3′ of one nucleotide within 2.5 Å of the P of the next (a phosphodiester bond). "Within the numbering" means strictly between the lowest and highest numbers of the chain's ATOM residues. A few smaller rules complete the reading. The waters are HOH, WAT, DOD and H2O. Of two components written at one residue position without alternate locations, the first is kept. An atom whose file gives no element takes it from its name. An atom whose coordinates are not numbers is left out. A group whose component code is not one to five letters and digits is left out, since no page could name it.
A worked example: KRAS with GCP (4DST) #
The PDB file of entry 4DST, KRAS with a GTP analogue, read by GL1X's tests,
holds eight groups in file order: an inhibitor (9LI), the GTP analogue
GCP, magnesium, glycerol (GOL), ethanediol (EDO), DMSO (DMS), acetate
(ACT) and a second magnesium. GL1X reads them as:
| Group | Class | What GL1X keeps |
|---|---|---|
9LI | ligand | the inhibitor's heavy atoms and site |
GCP | ligand | 32 heavy atoms, C11 N5 O13 P3; at least 20 residues within 4.5 Å, among them K16 (the P-loop lysine), S17 and T35 (the residues that hold the magnesium) and D119 (which binds the guanine) |
MG | metal | one atom, 2 to 2.6 Å from S17 |
GOL, EDO, DMS, ACT | additive | each with its site, kept and searchable |
MG | metal | the second magnesium |
The component records of the same file name GCP
PHOSPHOMETHYLPHOSPHONIC ACID GUANYLATE ESTER, formula C11 H18 N5 O13 P3,
and the weight GL1X computes from that formula is 521.21. The heavy-atom
composition (C11 N5 O13 P3) comes from the atoms modelled; the formula comes
from the component; their difference here is the hydrogens, which a
heavy-atom composition leaves out by definition.
Binding sites #
A ligand's binding site is the set of polymer residues (protein, DNA or RNA) with a heavy atom within 4.5 Å of a heavy atom of the ligand, the usual definition of a binding-site residue (4.0 Å before GL1X 3.0). Each residue is kept with its author chain, number and insertion code, its residue name and the closest distance, in chain order. Each ligand also keeps its occupancy, the mean occupancy of its heavy atoms: 1 for a ligand present in every copy of the crystal, less for a partial one, so a site seen at 0.3 occupancy can be told from a firm one.
- How: the polymer's heavy atoms go in a grid of 4.5 Å cells; each atom of a ligand looks in the 27 cells around it, so a structure with thousands of ligands costs milliseconds. A test compares the grid with a comparison of every pair of atoms: the same residues, the same distances.
- Residues are named by their one-letter code and author number, as
people write them:
K16,H67;A:K16when a site spans chains (a cofactor between two subunits). Modified residues use their parent's code (MSE is M); residues without a code their name (UNK5). - What it is not: a contact list says which residues are near, not which interactions they make. The 3D view adds that: when a ligand is shown, Mol*'s focus draws its surroundings with hydrogen bonds, ionic interactions, π-stacking, metal coordination and the other interactions Mol* computes.
Why 4.5 Å #
A binding site needs a boundary, and a distance between heavy atoms is the
simplest one that every structure supports, since many structures model no
hydrogens (and GL1X leaves hydrogens out). Direct interactions are shorter
than 4.5 Å. At chain interfaces, GL1X's own structure analysis counts a
hydrogen bond between N and O atoms within 3.5 Å and a salt bridge between
charged side-chain atoms within 4.0 Å; it reads a covalent bond within the
sum of the two atoms' covalent radii plus 0.45 Å; and metal coordination is
shorter still (the magnesium of 4DST sits under 2.6 Å from its serine). A
4.5 Å radius keeps all of these and the closer van der Waals contacts, with a
margin for errors in the coordinates. Compared
with the 4.0 Å that GL1X used before 3.0, it adds the residues at the rim of
a site, with longer polar contacts; the variant features (mut_ligand: a
residue within 4.5 Å of a ligand, see
variants) and the transfer of
ligand sites to related chains read the same contacts.
A wider radius trades precision for completeness: a residue whose nearest
atom only lines the pocket counts as much as one that grips the ligand. Every
contact therefore keeps its closest distance, so a stricter site is a filter
away: keep the contacts at 4.0 Å or 3.5 Å from the API's distance.
How the contacts are found #
Only polymer heavy atoms inside the box around all the ligands, widened by 4.5 Å on every side, enter the grid. Each cell is 4.5 Å wide, so any atom within 4.5 Å of a ligand atom lies in the ligand atom's cell or one of its 26 neighbours. For each ligand GL1X keeps, per residue, the shortest distance found, rounded to 0.01 Å, and sorts the residues by chain (in the file's chain order) and position. The test that compares this with a comparison of every pair of atoms runs on three structures: 4DST, the RAG1 dimerization domain 1RMD (PDB format) and the adenosylcobalamin riboswitch 4GXY (BinaryCIF); another test writes 4DST as mmCIF, with a hydrogen added to every ligand atom, and finds the same ligands, classes, components and contacts as in its PDB file.
Occupancy and B-factors #
A crystal structure averages over the many copies of a molecule in the
crystal. Occupancy is the fraction of those copies in which an atom sits
where it is modelled: 1 means every copy, 0.5 half of them. A ligand at
partial occupancy may be bound in only some copies, or be one of two
modelled positions (alternate locations). Because GL1X reads only the first
alternate location, a ligand modelled in two conformations at 0.5 each
appears once, with occupancy 0.5; the second conformation is in the file but
not in the index. GL1X keeps each ligand's mean occupancy to two decimals.
Ligands read before 3.0 have none (null), and a mean of zero also reads as
unknown.
The B-factor of an atom (its displacement parameter) measures how spread out its electron density is, from thermal motion and from disorder. A ligand whose B-factors are much higher than those of the residues around it is held loosely, or modelled with little support from the data. GL1X reads every ligand atom's B-factor with its coordinates but does not keep it in the index; it keeps each chain's mean B-factor (the mean pLDDT for a predicted model). To judge a ligand's B-factors, open its structure file (Download structure on the record's page).
Read together: a site at full occupancy whose ligand has B-factors like its neighbours' is well defined; low occupancy or high B-factors call for caution before a site is used as evidence, or as a template for docking or design.
Reading a binding site #
The four zinc ions of 1RMD, read by GL1X's tests:
| Zinc | Residues within 4.5 Å |
|---|---|
| ZN A:117 | C2, H6, C29, H31, C49 |
| ZN A:118 | H6, C26, C29, C46, C49 |
| ZN A:119 | T39, C41, H43, C61, S63, C64 |
| ZN A:120 | C91, A93, C96, H108, H112 |
Each site holds the cysteines and histidines that coordinate the zinc, and
the other residues within 4.5 Å (T39, S63, A93). H6, C29 and C49 lie within
4.5 Å of two of the ions. Sites are not limited to proteins: in the riboswitch
4GXY, the magnesium A:310 touches the RNA residues G97, G98 and G130, and the
adenosylcobalamin (B1Z, heavy atoms C72 Co N18 O17 P) touches 16
nucleotides.
Classes #
Every ligand gets one class, from its component and atoms and, when the file states them, its component's type and its entity's type:
| Class | What it holds | How it is told |
|---|---|---|
| ligand | small molecules and cofactors: heme, NAD, ATP, substrates, inhibitors, drugs | everything not below |
| metal | a single metal atom: Zn, Mg, Ca, Fe, Na, Mn, Cu… | one heavy atom of an element on GL1X's list of 79 metal elements |
| ion | other single atoms and small inorganic ions and molecules: Cl, I, sulfate, phosphate, nitrate, azide, CO, O₂… | one heavy atom of another element, or a component on GL1X's list of 33 inorganic components (SO4, PO4, NO3, AZI, CMO, OXY…) |
| sugar | saccharides not built into a polymer chain: NAG, MAN, BMA, GLC, FUC, SIA… | a component type with saccharide (mmCIF), a group of a branched entity, or a component on GL1X's list of 54 saccharides (on which PDB files, stating no types, rely) |
| additive | buffers, cryoprotectants, detergents and precipitants: glycerol, ethanediol, PEG, MPD, DMSO, acetate, Tris, MES, HEPES, citrate, octyl glucoside… | a component on a list GL1X keeps of 85 common crystallization, buffer, cryoprotectant and detergent components: the kind of groups BioLiP and the PDB's curation treat as artefacts of the experiment |
The classes help filter; they remove nothing: a sulfate in a phosphate site or a glycerol in an active site can say something about the protein, so every group stays in the index and on its record's page.
The rules, in order #
- One heavy atom. A metal when its element is on the metal list; otherwise an additive when its component is on the additive list and not on the inorganic list; otherwise an ion.
- More heavy atoms. An ion when the component is on the inorganic list;
otherwise an additive when it is on the additive list; otherwise a sugar
when the component's type contains saccharide, its entity is
branched, or it is on the sugar list; otherwise a ligand.
The lists come before the types, so octyl glucoside (BOG), a detergent
built on glucose, is an additive even when its file types it as a
saccharide.
The lists #
The five classes are GL1X's own convenience filter, not a classification
taken from the CCD or from BioLiP. They are built from four short lists kept
in internal/fold/ligands.go and from the component and entity types the
file states:
| List | Entries | What is on it |
|---|---|---|
| Metal elements | 79 | the alkali and alkaline-earth metals, the transition metals, the lanthanides, the actinides up to fermium, aluminium, gallium, indium, tin, thallium, lead, bismuth and polonium, and germanium, arsenic and antimony |
| Inorganic components | 33 | sulfate, phosphate, nitrate and their kin, halides, azide, cyanide, carbon monoxide, oxygen and other small inorganic ions and molecules |
| Additive components | 85 | polyethylene glycols, glycerol and other polyols, alcohols, DMSO, organic acids and their salts, buffers (Tris, HEPES, MES and others), reducing agents, detergents, lipids and alkanes |
| Saccharide components | 54 | common monosaccharides and disaccharides and their derivatives |
The full lists are published on the page Names and identifiers. Elements off the metal list, such as boron, silicon, selenium and tellurium, make a lone atom an ion.
An instance's class and its component's class #
Each ligand, an instance, is classed from its own atoms in its own file. The
catalog classes a component from its formula when a file gives one: one
heavy atom in the formula makes it a metal or an ion by that element; more
make it what the rules give a group of several atoms. A heme modelled as a
lone iron atom is therefore a metal in that record, while HEM stays a
ligand in the catalog. A component that no file gives a formula for takes
the class of its largest instance. Catalog searches filter by the
component's class; a record's panel and a component's sites show each
instance's class.
What classes are good for #
Classes separate the groups that usually say something about the molecule (cofactors, substrates, drugs, metals, sugars) from those that usually record how the sample was prepared (additives), and several tools of GL1X rely on that separation:
- Searches filter by class (
class=metal,ion) and count every class for a query (by_class). - Pockets: a pocket counts as occupied only when it holds a ligand or a sugar; one holding only metals, ions or additives is reported apart (see pockets).
- Protein pages and the summary of a record's page list a structure's ligands without its additives.
- Annotation transfer carries ligand sites from structural neighbours to a chain, leaving additives and ions out (see annotation transfer).
- Modifications: metals and ions are not read as covalently bonded ligands, and an additive bonded to a residue is reported as an additive adduct (see modifications).
A class is a heuristic, and its edges show. A buffer missing from the list
is a ligand. A list entry can be a genuine ligand: citrate (CIT) is a
common buffer and also an enzyme substrate. A metal-containing cluster is
not one metal atom: an iron-sulfur cluster (SF4) is a ligand.
Chemical components #
A component is named as the structure files name it:
- mmCIF and BinaryCIF:
_chem_comp(name,pdbx_synonyms,formula,formula_weight,type) and_pdbx_entity_nonpoly(name). - PDB files:
HETNAM(name),HETSYN(synonyms) andFORMUL(formula), their continuation lines joined. - Formulas are written one way: elements with their counts, separated by
spaces, the charge last as a signed number (
C34 H32 Fe N4 O4,Zn +2). A formula searched for matches whatever order its elements are given in (both sides are read in Hill order). - Weights come from the file, or are computed from the formula with the IUPAC standard atomic weights.
- The catalog keeps, for each component, the first name, synonyms, formula and weight any structure gave it, and counts its instances (groups), records (MolNFT records in the current inventory that hold it) and entries (PDB IDs: an entry minted in both MolNFT v1 and v2 counts once). The indexing process counts them at start and every five minutes while ligands change; each web process keeps the catalog in memory and reads it again every two minutes.
Where the names come from #
Names, synonyms, formulas and weights are copied from each file's own
chemical-component records: mmCIF and BinaryCIF _chem_comp (and
_pdbx_entity_nonpoly.name where a component has no name there), PDB
HETNAM, HETSYN and FORMUL. The PDB fills these records from the CCD
when it releases an entry. GL1X does not hold a copy of the CCD, and asks no
other source. It changes only the form of what it copies: it trims quotes and
runs of spaces from names, writes formulas one way, and computes a weight
from the formula when the file gives none. A component that the files
describe only in part, such as one a PDB file uses without a HETNAM record,
has its code and formula only, or its code alone.
Formulas #
GL1X writes every formula one way: element symbols in their usual case, one
space between terms, the charge last as a signed number, a leading count or
the * of a water left out. The elements keep the order the file gives them,
which in the CCD is Hill order (carbon, then hydrogen, then the other
elements alphabetically; with no carbon, all of them alphabetically); the
heavy-atom composition of a ligand is written in Hill order by GL1X itself,
and searches compare formulas in Hill order, so C34H32FeN4O4 and
Fe C34 O4 N4 H32 find the same component. Examples from GL1X's tests:
| As a file writes it | As GL1X writes it |
|---|---|
C34 H32 FE N4 O4 | C34 H32 Fe N4 O4 |
2(C10 H16 N5 O13 P3) | C10 H16 N5 O13 P3 |
MG 2+ (PDB) | Mg +2 |
Mg 2 (mmCIF) | Mg +2 |
CL 1- | Cl -1 |
*136(H2 O) | H2 O |
O4 S -2 | O4 S -2 |
Weights #
A weight the file states (mmCIF formula_weight) is kept as it is; a value
that is not a positive finite number below 10⁷ is ignored. Otherwise GL1X
sums the formula with the IUPAC conventional atomic weights it keeps for
hydrogen to fermium, and for deuterium (H 1.008, C 12.011, N 14.007,
O 15.999, P 30.974, S 32.06, Fe 55.845, Zn 65.38…), ignores the charge, and
rounds to 0.001 g/mol; a formula with an element outside that table gets no
weight. For heme:
C34 H32 Fe N4 O4 = 34 × 12.011 + 32 × 1.008 + 55.845 + 4 × 14.007 + 4 × 15.999
= 408.374 + 32.256 + 55.845 + 56.028 + 63.996 = 616.499 g/mol
A PDB file states no weights, so its components' weights are always computed this way.
The catalog and its counts #
The catalog lists the components found in records of the current inventory. Of the names files give a component, the first is kept, except that a name written in capitals gives way to the same name written in mixed case by a later file. An entry without an entry ID counts by its record. Besides the counts after every change, the indexing process counts again at least every six hours, since records leave the inventories without any ligand changing.
How the index is built #
Ligands are read with a structure's chains: when the structure queue reads a
record's file (see Structures, reading structures),
it keeps the chains as before and, in the same transaction, the record's
ligands (molecular_ligands); their components then go to the catalog
(molecular_ligand_components).
Structures read by an older version are read again: those read before 2.9.0 have chains but no ligands, and those read before 3.0 have contacts at 4.0 Å and no occupancy. The structure queue reads their files again when it has nothing else to do: a structure waiting to be read for the first time always goes first, and the free workers then take the structures not yet read this way, experimental structures first (predicted models seldom hold ligands), in order of collection and token. Their chains, GSA strings and comparisons are kept as they are when the new reading gives the same chains; a reading that places residues otherwise (a cofactor an older version took for a residue of its chain) writes the chains again and compares them again. A file whose digest no longer matches what was read goes back to the structure queue as a whole. A file that cannot be fetched is tried again after an hour, then after twice as long each time (a day at most). When a sweep finds nothing left to take, the backfill rests ten minutes. The admin's Bio tab follows the backfill (structures read for ligands, the time per file, the failures).
A record the index has not read yet still shows its ligands: its page reads
them from the structure file on the spot (at most four files at once; a
record read this way is kept ten minutes), says so, and the index adds it
when its turn comes. A request waits up to 25 seconds for the file; past that
the answer is ligands_pending and the reading goes on (up to 90 seconds),
so asking again a moment later finds it done.
Search #
The search box (q) takes three kinds of query, and the page says which it
read:
- a component id:
HEM,ATP,ZN,NAG. An exact id opens straight to its page from the header search (ligand:HEM); on the Ligands page it is shown first, with a link to its binding sites. - a formula:
C34 H32 Fe N4 O4orC34H32FeN4O4, at least two elements, in any order. - words of names and synonyms:
heme,adenosine triphosphate,flavin. Every word must begin a word of the component's name or synonyms; a piece of three letters or more also matches inside them.
Results are ranked: the exact id, the exact formula, ids beginning with the query, a name or synonym equal to the query, names whose words begin with the query's words, then names that contain it; within a rank, in the order asked.
How heme (HEM: name PROTOPORPHYRIN IX CONTAINING FE, synonym HEME, formula
C34 H32 Fe N4 O4) ranks for different queries, as GL1X's tests check:
| Query | Rank | Why |
|---|---|---|
HEM, hem | 1 | the exact id |
C34H32FeN4O4 | 2 | the exact formula, read in Hill order |
HE | 3 | an id beginning with the query |
heme | 4 | a synonym equal to the query |
protoporphyrin | 5 | a word of the name beginning with the query's word |
porphyrin | 6 | three letters or more found inside the name |
chlorophyll | none | no match |
A query is read as a formula only when it holds a digit and at least two
element symbols, every part being a symbol with an optional count; Zn alone
is an id or a name, not a formula. A query may be 200 characters long.
| Filter | Values |
|---|---|
class | ligand, metal, ion, sugar, additive; several at once (class=metal&class=ion or class=metal,ion); the answer counts every class for the query (by_class) |
element | an element symbol: components whose formula has it (F for fluorinated compounds, Se, Fe) |
min_weight, max_weight | a weight range in daltons: fragments under 250 Da, drug-like 150–900 Da, large over 900 Da |
accession | a UniProt accession: only the ligands touching chains of that protein (by the accessions of the structure files' DBREF or struct_ref), counted there: what binds a protein across all its structures |
collection | with accession: only that collection's records |
sort | records (found in the most structures first, the default), weight (heaviest first), name, id |
limit, offset | a page of 1 to 200 components (50 by default), from an offset up to 100,000 |
Filters read the catalog's facts: a component without a formula never
matches element, and one without a weight never matches a weight range.
Within a rank and the chosen order, components found in more records come
first, then ligands before metals, sugars, ions and additives.
Every answer says how far the index has read (coverage: structures
indexed, read for their ligands, still to read, with ligands; ligands and
components), so an empty answer early in the backfill reads as such.
A component's page #
/bio/ligands/{component} shows a component with:
- its facts: formula, weight, class, structures and instances, PDB entries and the component type;
- binding-site residues: the kinds of residue its sites are made of, as bars, each with its share of all the contacts and the number of sites (zinc: cysteines and histidines);
- found with: the components found in the same records, most often first (NAD with zinc in alcohol dehydrogenase, GDP analogues with magnesium in GTPases);
- its binding sites, by collection and record: the structure (PDB ID, title, collection, method), the ligand's chain and number, its heavy atoms and the residues of its site, closest first. View in 3D opens the structure in Mol* with the ligand and its site as ball-and-stick, selected, the viewer's focus on the ligand (its surroundings and their interactions) and the camera on the pocket; Open the record opens the record with the ligand shown. Sites come 25 at a time (More sites).
The counts of sites and records are always complete. For the commonest components (sulfate, glycerol, zinc: up to hundreds of thousands of sites) the binding-site residues come from the first 20,000 sites in collection and token order, and the components found with it from the first 5,000 records; the page says so.
A protein filter (a UniProt accession) keeps the sites touching chains of
that protein, and buttons keep one collection. The page's address keeps both
(/bio/ligands/HEM?accession=P69905).
What the residue bars say #
Every contact of the sampled sites is counted by its residue's name. Each bar
gives a residue type's contacts, the number of sites it appears in, and
its share: its contacts among all the contacts of the sample. The 40 most
frequent types are kept. The bars describe what a component's sites are made
of: zinc's are led by the cysteines and histidines that coordinate it. Three
cautions. Every residue within 4.5 Å counts, coordinating or merely
neighbouring (the zinc sites of 1RMD include T39, S63 and A93 besides their
cysteines and histidines). Common residues are common everywhere, so a share
means more when compared with another component's. And a protein deposited
many times weighs as many times.
What "found with" means #
"Found with" counts co-occurrence in the same record, not in the same site:
two components counted together may bind far apart in the structure. GL1X
takes the records that hold the component's sampled sites (the first 5,000 of
them in collection and token order), counts, for every other component, how
many of those records also hold it, and shows the twelve found most often
(among equals, ligands before metals, sugars, ions and additives). Divided by
the number of records examined (stats_sample.records), a count reads as a
frequency: in what share of this component's structures the other one is
present too.
Co-occurrence reflects biology and experiment alike. A cofactor and its metal (NAD and zinc in alcohol dehydrogenase) co-occur because the enzyme needs both; glycerol and sulfate co-occur with almost everything because crystallographers use them. An entry minted in two collections counts as two records here, and a protein crystallized many times dominates. Each web process keeps a component's statistics ten minutes before computing them again.
A record's ligands #
Every MolNFT record with a structure has a Ligands panel under its 3D
view: each group with its component's name and formula, its chain and number,
its heavy atoms and its binding site, by class (All, Ligands, Metals…).
Show in 3D shows a ligand in the structure above (ball-and-stick, selected,
the focus with its interactions, the camera on it) and puts it in the address
(?ligand=HEM:A:154: component, author chain, author number), so a link opens
the record with the ligand shown; the binding sites of the component pages and
of the API link records that way.
API and MCP #
curl -s 'https://YOUR-DOMAIN/api/bio/ligands?q=heme' # components by name
curl -s 'https://YOUR-DOMAIN/api/bio/ligands?q=C34H32FeN4O4' # by formula
curl -s 'https://YOUR-DOMAIN/api/bio/ligands?class=metal&sort=records' # every metal
curl -s 'https://YOUR-DOMAIN/api/bio/ligands?element=F&min_weight=150&max_weight=900&class=ligand'
curl -s 'https://YOUR-DOMAIN/api/bio/ligands?accession=P00533' # what binds EGFR
curl -s 'https://YOUR-DOMAIN/api/bio/ligands/HEM?limit=25' # binding sites of heme
curl -s https://YOUR-DOMAIN/api/bio/records/0xde3723766bc32dcacd03c17baa400a7b36837eba/7/ligands
GET /api/bio/ligandsanswers the components (comp_id,name,synonyms,formula,weight,chem_type,class,instances,records,entries,url), the query as read (with its formula in Hill order),total,by_class,coverageand the index'srules.GET /api/bio/ligands/{comp}answers thecomponent, a page ofitems(each site with itscontract,token_idandindex,chain,label_chain,number,class,atoms,elements,center,occupancy,contactswithchain,number,residue,codeanddistance, therecord, the structure'sentry_id,method,predicted,structure_titleandstructurefile, and aurlthat opens the record with the ligand shown),total,next_cursor(pass it ascursorfor the next page; 25 sites by default, at most 100),binding_residues,found_with,by_collectionandstats_sample(how many sites and records the residues and the components found with it come from:sites,sites_total,records,records_total,complete). It takesaccession,collection,limitandcursor.GET /api/bio/records/{contract}/{tokenId}/ligandsanswers a record'sligands(each withindex,comp_id,name,formula,weight,class,chain,label_chain,number,atoms,elements,occupancy,center,contactsand theurlof its component's page),components,by_class,contact_distanceandsource:index(from the ligand index),file(read from the structure file just now) ornone(the record has no structure file).- Errors say why:
invalid_component,invalid_query,invalid_class,invalid_element,invalid_weight,invalid_sort,invalid_accession,invalid_collection,invalid_limit,invalid_offset,invalid_cursor,invalid_contract,invalid_token,ligand_not_found(404: no such component in the index),record_not_found(404),ligands_pending(503: the structure file is still being read, ask again in a few seconds),structure_unavailable(502),ligand_rate_limited(429: searches and sites, 30 at once and one more a second for each client). Answers are cached for 30 seconds (a record's: 60 seconds from the index, 15 seconds otherwise).
MCP: ligand_search (the catalog: q, class, element, min_weight,
max_weight, accession, sort, limit), ligand_sites (a component's
binding sites: comp, accession, collection, limit, cursor) and
molecule_ligands (a record's ligands). An agent can go from a protein to
what binds it (ligand_search with accession), from a cofactor to every
pocket that holds it (ligand_sites), and from a record to its ligands and
their residues (molecule_ligands), then on to the structures
(structure_search) and datasets (bio_dataset). → MCP
Limits #
- The index describes what the files deposit: a ligand modelled in part has the atoms that were modelled; a site where the ligand was not modelled is not one. Predicted models from AlphaFold DB have no ligands; a predicted model that held groups would have them indexed like any other, at predicted, not observed, positions.
- Only the first model of a structure is read: in an NMR ensemble, the first conformer. Only the first alternate location of a ligand is read.
- Contacts are distances, not interactions; there is no docking, no binding affinity and no pocket detection without a ligand.
- A ligand bonded to a residue (a glycan on an asparagine, a covalent inhibitor) is still a ligand here, its closest contact at bond length; the bond itself is listed among the structure's modifications.
- Components are named by the files; the catalog does not fetch the PDB's
Chemical Component Dictionary, so a component a PDB file names without a
HETNAMrecord has its id and formula only, or its id alone. - Classes come from component lists and a few rules: an unusual buffer may be a ligand, a metal-containing cluster (an iron-sulfur cluster, SF4) is a ligand, not a metal.
- Ligand B-factors are not indexed; occupancy is a mean over a ligand's heavy atoms.
References #
- Berman HM, Westbrook J, Feng Z, et al. (2000) The Protein Data Bank. Nucleic Acids Res 28:235–242.
- Hill EA (1900) On a system of indexing chemical literature; adopted by the Classification Division of the U.S. Patent Office. J Am Chem Soc 22:478–494.
- Prohaska T, Irrgeher J, Benefield J, et al. (2022) Standard atomic weights of the elements 2021 (IUPAC Technical Report). Pure Appl Chem 94:573–600.
- Sehnal D, Bittrich S, Deshpande M, et al. (2021) Mol* Viewer: modern web app for 3D visualization and analysis of large biomolecular structures. Nucleic Acids Res 49:W431–W437.
- Varadi M, Anyango S, Deshpande M, et al. (2022) AlphaFold Protein Structure Database: massively expanding the structural coverage of protein-sequence space with high-accuracy models. Nucleic Acids Res 50:D439–D444.
- Westbrook JD, Shao C, Feng Z, Zhuravleva M, Velankar S, Young J (2015) The chemical component dictionary: complete descriptions of constituent molecules in experimentally determined 3D macromolecules in the Protein Data Bank. Bioinformatics 31:1274–1278.
- Yang J, Roy A, Zhang Y (2013) BioLiP: a semi-manually curated database for biologically relevant ligand–protein interactions. Nucleic Acids Res 41:D1096–D1103.
- Zhang C, Zhang X, Freddolino PL, Zhang Y (2024) BioLiP2: an updated structure database for biologically relevant ligand–protein interactions. Nucleic Acids Res 52:D404–D412.