Invntr
Source

All instruments

lddt_score

lDDT (local distance difference test, Mariani et al. 2013) of a model against a reference structure, per residue and overall, without superposition: the fraction of reference atom pairs of different residues within 15 Å whose distance the model keeps within 0.5, 1, 2 and 4 Å, averaged over the four thresholds. CA atoms or all heavy atoms; PDB or mmCIF text or files, or bare coordinate lists. Atoms are matched by chain, residue number, insertion code and atom name (no sequence alignment, no swap of equivalent side-chain atoms, no stereochemistry check); a reference atom the model lacks loses all its pairs.

Field
Structural biology
Version
0.1.0
Runs as
Compiled (Rust)
Typical run
0.1 s

Compiled from source: run sh packs/install.sh once before admitting it.

Known answers it must pass

Admission replaylddt_score 0.1.0 · files 9f2c10045e89…4599
  1. r0001identical structures (6 CA of an ideal helix): lDDT = 1 by definition, C(6,2) = 15 pairs (Mariani 2013); abs 1e-9, a ratio of countspassed

    lddt1 ± 1e-091lockedunder 0.01 % of the tolerance used
    pairs_total= 1515lockedexact match
    min_residue_lddt1 ± 1e-091lockedunder 0.01 % of the tolerance used
    preserved_fraction.0{"value": 1.0, "abs_tol": 1e-09}
  2. r0002rigid copy, all heavy atoms (3 residues x N,CA,C,O; 90 deg turn about z + shift): distances are invariant, lDDT = 1; pairs = C(12,2) - 3*C(4,2) = 48; abs 1e-9passed

    lddt1 ± 1e-091lockedunder 0.01 % of the tolerance used
    pairs_total= 4848lockedexact match
    mean_residue_lddt1 ± 1e-091lockedunder 0.01 % of the tolerance used
    preserved_fraction.0{"value": 1.0, "abs_tol": 1e-09}
  3. r0003one residue moved 100 A (5 CA on a line, 3.8 A apart; the 15.2 A end pair is outside 15 A so 9 pairs; residue 3 owns 4): lDDT = 5/9, per residue 2/3, 3/4, 0, 3/4, 2/3 (counted by hand); abs 1e-9passed

    lddt0.555556 ± 1e-090.555556lockedunder 0.01 % of the tolerance used
    pairs_total= 99lockedexact match
    residue_lddt.0{"value": 0.6666666666666666, "abs_tol": 1e-09}
    residue_lddt.1{"value": 0.75, "abs_tol": 1e-09}
    residue_lddt.2{"value": 0.0, "abs_tol": 1e-09}
    residue_lddt.3{"value": 0.75, "abs_tol": 1e-09}
    residue_lddt.4{"value": 0.6666666666666666, "abs_tol": 1e-09}
    min_residue= A:3 ALAA:3 ALAlockedexact match
  4. r0004every distance off by 0.75 A (regular tetrahedron, edge e against e + 0.75): fails 0.5 A, passes 1, 2, 4 A, lDDT = 3/4 exactly; abs 1e-9passed

    lddt0.75 ± 1e-090.75lockedunder 0.01 % of the tolerance used
    pairs_total= 66lockedexact match
    preserved_fraction.0{"value": 0.0, "abs_tol": 1e-09}
    preserved_fraction.1{"value": 1.0, "abs_tol": 1e-09}
    preserved_fraction.2{"value": 1.0, "abs_tol": 1e-09}
    preserved_fraction.3{"value": 1.0, "abs_tol": 1e-09}
    residue_lddt.3{"value": 0.75, "abs_tol": 1e-09}
  5. r0005model lacks residue 3 of the 5-residue line: its 4 of 9 pairs stay in the count and are lost, lDDT = 5/9 (counted by hand); abs 1e-9passed

    lddt0.555556 ± 1e-090.555556lockedunder 0.01 % of the tolerance used
    pairs_total= 99lockedexact match
    residues_missing_in_model= 11lockedexact match
    residue_lddt.2{"value": 0.0, "abs_tol": 1e-09}
    residue_lddt.4{"value": 0.6666666666666666, "abs_tol": 1e-09}
    complete= falsefalselockedexact match
  6. r0006all atoms, pairs inside a residue excluded (2 residues x 2 atoms on a line: 4 pairs, not 6); one atom 3 A out breaks its 2 pairs at 0.5, 1, 2 A only: (2+2+2+4)/16 = 0.625 (counted by hand); abs 1e-9passed

    lddt0.625 ± 1e-090.625lockedunder 0.01 % of the tolerance used
    pairs_total= 44lockedexact match
    preserved_fraction.0{"value": 0.5, "abs_tol": 1e-09}
    preserved_fraction.3{"value": 1.0, "abs_tol": 1e-09}
    residue_lddt.0{"value": 0.625, "abs_tol": 1e-09}
  7. r0007the same two residues, CA only: one pair, 5 A against 8 A, kept at 4 A only: lDDT = 1/4; abs 1e-9passed

    lddt0.25 ± 1e-090.25lockedunder 0.01 % of the tolerance used
    pairs_total= 11lockedexact match
  8. r0008inclusion radius 4 A on the 5-residue line keeps only the 4 neighbour pairs (3.8 A); end residue moved 100 A loses 1: lDDT = 3/4, residue 4 = 1/2, residue 5 = 0 (counted by hand); abs 1e-9passed

    lddt0.75 ± 1e-090.75lockedunder 0.01 % of the tolerance used
    pairs_total= 44lockedexact match
    residue_lddt.3{"value": 0.5, "abs_tol": 1e-09}
    residue_lddt.4{"value": 0.0, "abs_tol": 1e-09}
    residue_lddt.0{"value": 1.0, "abs_tol": 1e-09}
8 of 8 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.

Inputs

NameUnitDefaultMeaning
reference_textThe reference structure as PDB or mmCIF text (coordinates in Å).
reference_fileThe reference structure as a PDB or mmCIF file of the lab.
model_textThe model as PDB or mmCIF text, numbered like the reference.
model_fileThe model as a PDB or mmCIF file of the lab.
reference_xyzÅInstead of structures: one [x, y, z] per residue of the reference.
model_xyzÅOne [x, y, z] per residue of the model, in the same order; null where the model has no residue.
atomscaca: one CA per residue. all: every heavy atom (hydrogens are left out).
chainScore this chain of the reference only (and of the model, unless model_chain is set).
model_chainThe model's chain letter when it differs from the reference's.
include_hetatmfalseAlso score HETATM residues (modified residues, ligands; never water).
inclusion_radius_AÅ15.0Reference pairs closer than this are scored (strictly less). lDDT is defined with 15.
thresholds_AÅ[0.5, 1.0, 2.0, 4.0]A pair is preserved at a threshold when its distance changes by strictly less. lDDT is defined with 0.5, 1, 2, 4.

Readings

NameUnitMeaning
lddt1Global lDDT, 0 to 1: preserved pairs over all pairs, averaged over the thresholds.
mean_residue_lddt1Mean of the per-residue scores (not the same number as lddt).
min_residue_lddt1
min_residueThe residue with the lowest score.
pairs_total1Reference atom pairs of different residues inside the radius.
preserved_pairs1Preserved pairs, one count per threshold.
preserved_fraction1Preserved fraction, one per threshold.
thresholds_AÅ
threshold_table
inclusion_radius_AÅ
reference_residues1
residues_scored1
residues_missing_in_model1
reference_atoms1
atoms_missing_in_model1
model_atoms_not_in_reference1
residue_name_mismatches1
residue_names
residue_lddt1Per residue, in reference order; null for a residue with no pair inside the radius.
residue_pairs1
lowest_residues
residues
completetrue when the model has every scored reference atom.
warnings
residue_lddt.csvOne row per reference residue: atoms, pairs, lDDT and the preserved fraction per threshold.
thresholds.csvPreserved pairs and fraction per threshold.

Try the call

Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.

Terminal
MCP call