Invntr
Source

All instruments

hbond_find

Hydrogen bonds and salt bridges in a protein from PDB/mmCIF by geometry: donor-acceptor distance and D-H...A angle, backbone amide H placed on the C(i-1)-N-CA bisector, counts by type (bb-bb, sc-bb, bb-sc, sc-sc), backbone i->i+4 helix pairs, Asp/Glu-Lys/Arg salt bridges.

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 replayhbond_find 0.1.0 · files ef990766de47…d2b6
  1. r0001N-H...O at D-A 3.49 A, just inside 3.5 A, angle 180 (exact construction): 1 bb-bb bond, H...A = 3.49 - 1.01 = 2.48 A; placed H = (-1.01, 0, 0) on the C(i-1)-N-CA bisector, in plane, C-N-H = 180 - atan(15/8) deg (closed form)passed

    hbond_count= 11lockedexact match
    hbond_bb_bb= 11lockedexact match
    amide_h_placed= 11lockedexact match
    hbonds.0.distance_DA_A{"value": 3.49, "abs_tol": 1e-09}
    hbonds.0.distance_HA_A{"value": 2.48, "abs_tol": 1e-09}
    hbonds.0.angle_DHA_deg{"value": 180.0, "abs_tol": 1e-06}
    placed_h.0.x_A{"value": -1.01, "abs_tol": 1e-09}
    placed_h.0.y_A{"value": 0.0, "abs_tol": 1e-09}
    placed_h.0.z_A{"value": 0.0, "abs_tol": 1e-12}
    placed_h.0.n_h_A{"value": 1.01, "rel_tol": 1e-09}
    placed_h.0.out_of_plane_A{"value": 0.0, "abs_tol": 1e-12}
    placed_h.0.angle_C_N_H_deg{"value": 118.07248693585296, "abs_tol": 1e-06}
    placed_h.0.angle_CA_N_H_deg{"value": 118.07248693585296, "abs_tol": 1e-06}
  2. r0002same donor, O at D-A 3.51 A, just outside 3.5 A (exact construction): no H-bondpassed

    hbond_count= 00lockedexact match
    amide_h_placed= 11lockedexact match
  3. r0003angle cutoff 120 deg: O at D-H...A = acos(-0.6) = 126.87 deg is kept, O at acos(-5/13) = 112.62 deg is dropped (Pythagorean constructions, exact); H...A = 2.0 A, D-A = sqrt(2.21^2 + 1.6^2)passed

    hbond_count= 11lockedexact match
    hbonds.0.acceptor= B 10 GLY Omisseddiffers
    hbonds.0.angle_DHA_deg{"value": 126.86989764584402, "abs_tol": 1e-06}
    hbonds.0.distance_HA_A{"value": 2.0, "abs_tol": 1e-09}
    hbonds.0.distance_DA_A{"value": 2.728387802347753, "abs_tol": 1e-09}
  4. r0004angle cutoff raised to 127 deg: the acos(-0.6) = 126.87 deg bond is now just outside, none keptpassed

    hbond_count= 00lockedexact match
  5. r0005salt bridge: Asp OD1 to Lys NZ at 3.0 A found, to Arg NE at 5.0 A not (cutoff 4.0 A, exact construction); the Lys NZ...OD1 pair is also 1 sc-sc H-bond on distance alonepassed

    salt_bridge_count= 11lockedexact match
    salt_bridges.0.base= B 20 LYSmisseddiffers
    salt_bridges.0.distance_A{"value": 3.0, "abs_tol": 1e-09}
    hbond_count= 11lockedexact match
    hbond_sc_sc= 11lockedexact match
    hbond_distance_only= 11lockedexact match
  6. r0006hand-built set, counts known by construction: 1 bb-bb (O1 to NH5, an i->i+4 pair), 1 sc-bb (Ser OG 2.8 A), 1 bb-sc (NH61 to Asp OD1 3.0 A), 1 sc-sc (Lys-Glu 3.0 A, also the one salt bridge); Pro N (no amide H) and Thr OG1 at 3.8 A give nonepassed

    hbond_count= 44lockedexact match
    hbond_bb_bb= 11lockedexact match
    hbond_sc_bb= 11lockedexact match
    hbond_bb_sc= 11lockedexact match
    hbond_sc_sc= 11lockedexact match
    hbond_distance_only= 22lockedexact match
    helix_i4_count= 11lockedexact match
    i4_pairs.0.acceptor_O= A 1 ALAmisseddiffers
    i4_pairs.0.donor_NH= A 5 GLYmisseddiffers
    salt_bridge_count= 11lockedexact match
    amide_h_placed= 22lockedexact match
  7. r0007counted once by construction: two Ser OG 2.8 A apart can each give or take, with no hydrogens that is 1 sc-sc bond (not 2); a Tyr OH 2.7 A from a His NE2 likewise 1; total 2, both on distance alonepassed

    hbond_count= 22lockedexact match
    hbond_sc_sc= 22lockedexact match
    hbond_distance_only= 22lockedexact match
    hbonds.0.distance_DA_A{"value": 2.8, "abs_tol": 1e-09}
    hbonds.1.distance_DA_A{"value": 2.7, "abs_tol": 1e-09}
    salt_bridge_count= 00lockedexact match
7 of 7 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
structure_textPDB (ATOM records) or mmCIF text. HETATM, water and ligands are not read.
structure_fileA PDB or mmCIF file, used when structure_text is empty.
chainOnly this chain; empty reads every chain.
dist_max_AÅ3.5Largest donor-acceptor distance for an H-bond.
angle_min_degdeg120.0Smallest D-H...A angle, applied where the donor's H is known (backbone N).
salt_bridge_max_AÅ4.0Largest carboxylate O to Lys/Arg N distance for a salt bridge.
nh_bond_AÅ1.01N-H length of a placed amide hydrogen.
peptide_bond_max_AÅ2.0C(i-1)-N(i) distance above which the chain is taken as broken (no H placed).
include_his_salt_bridgesfalseCount His ND1/NE2 as a base for salt bridges.

Readings

NameUnitMeaning
atoms_read1
residues1
chains1
donors1
acceptors1
amide_h_placed1
amide_h_from_file1
placed_h_bond_max_dev_AÅ
placed_h_out_of_plane_max_AÅ
hbond_count1
hbond_bb_bb1backbone N-H to backbone O
hbond_sc_bb1side-chain donor to backbone O
hbond_bb_sc1backbone N-H to side-chain acceptor
hbond_sc_sc1
hbond_distance_only1bonds from side-chain donors, judged on distance alone; a give-or-take pair (OH...OH, OH...His N) is counted once
helix_i4_count1backbone O(i) to N-H(i+4), same chain
turn_i3_count1backbone O(i) to N-H(i+3), same chain
salt_bridge_count1
mean_distance_DA_AÅ
mean_angle_DHA_degdeg
shortest_distance_DA_AÅ
warnings
hbonds
i4_pairs
salt_bridges
placed_h
hbonds.csv
salt_bridges.csv
amide_h.csv

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