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
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 usedpairs_total= 1515lockedexact matchmin_residue_lddt1 ± 1e-091lockedunder 0.01 % of the tolerance usedpreserved_fraction.0{"value": 1.0, "abs_tol": 1e-09}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 usedpairs_total= 4848lockedexact matchmean_residue_lddt1 ± 1e-091lockedunder 0.01 % of the tolerance usedpreserved_fraction.0{"value": 1.0, "abs_tol": 1e-09}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 usedpairs_total= 99lockedexact matchresidue_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 matchr0004every 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 usedpairs_total= 66lockedexact matchpreserved_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}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 usedpairs_total= 99lockedexact matchresidues_missing_in_model= 11lockedexact matchresidue_lddt.2{"value": 0.0, "abs_tol": 1e-09}residue_lddt.4{"value": 0.6666666666666666, "abs_tol": 1e-09}complete= falsefalselockedexact matchr0006all 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 usedpairs_total= 44lockedexact matchpreserved_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}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 usedpairs_total= 11lockedexact matchr0008inclusion 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 usedpairs_total= 44lockedexact matchresidue_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}
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
| Name | Unit | Default | Meaning |
|---|---|---|---|
reference_text | The reference structure as PDB or mmCIF text (coordinates in Å). | ||
reference_file | The reference structure as a PDB or mmCIF file of the lab. | ||
model_text | The model as PDB or mmCIF text, numbered like the reference. | ||
model_file | The 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. | |
atoms | ca | ca: one CA per residue. all: every heavy atom (hydrogens are left out). | |
chain | Score this chain of the reference only (and of the model, unless model_chain is set). | ||
model_chain | The model's chain letter when it differs from the reference's. | ||
include_hetatm | false | Also score HETATM residues (modified residues, ligands; never water). | |
inclusion_radius_A | Å | 15.0 | Reference 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
| Name | Unit | Meaning |
|---|---|---|
lddt | 1 | Global lDDT, 0 to 1: preserved pairs over all pairs, averaged over the thresholds. |
mean_residue_lddt | 1 | Mean of the per-residue scores (not the same number as lddt). |
min_residue_lddt | 1 | |
min_residue | The residue with the lowest score. | |
pairs_total | 1 | Reference atom pairs of different residues inside the radius. |
preserved_pairs | 1 | Preserved pairs, one count per threshold. |
preserved_fraction | 1 | Preserved fraction, one per threshold. |
thresholds_A | Å | |
threshold_table | ||
inclusion_radius_A | Å | |
reference_residues | 1 | |
residues_scored | 1 | |
residues_missing_in_model | 1 | |
reference_atoms | 1 | |
atoms_missing_in_model | 1 | |
model_atoms_not_in_reference | 1 | |
residue_name_mismatches | 1 | |
residue_names | ||
residue_lddt | 1 | Per residue, in reference order; null for a residue with no pair inside the radius. |
residue_pairs | 1 | |
lowest_residues | ||
residues | ||
complete | true when the model has every scored reference atom. | |
warnings | ||
residue_lddt.csv | One row per reference residue: atoms, pairs, lDDT and the preserved fraction per threshold. | |
thresholds.csv | Preserved 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.