Skip to content
Preview.pdb@modelscript/pdb 10 diagnostic rules
Parser WASM GLR
Diagnostics 10 rules
DAE Arena Lowering
Simulation Co-sim / Export
Projections SBML, OWL2
Live ExampleAlphaHelixPeptide.pdb

WWPDB Alpha-Helical Peptide & Disulfide Bridge Record

Protein Data Bank macromolecular structure defining secondary structure HELIX ranges, ATOM coordinates, and CONECT records.

Playground
Source (10 lines)
1HEADER    DE NOVO PROTEIN                         01-JAN-26   1MSX
2TITLE     COMPUTATIONAL ALPHA-HELICAL PEPTIDE FRAGMENT
3HELIX    1  H1 ALA A    1  ALA A    5  1                                   5
4ATOM      1  N   ALA A   1      10.120  12.450   8.310  1.00 14.20           N
5ATOM      2  CA  ALA A   1      11.480  12.920   8.560  1.00 13.80           C
6ATOM      3  C   ALA A   1      12.460  11.750   8.620  1.00 14.10           C
7ATOM      4  O   ALA A   1      13.660  11.940   8.810  1.00 15.60           O
8ATOM      5  CB  ALA A   1      11.880  13.940   7.490  1.00 14.90           C
9TER       6      ALA A   1
10END
PDB Secondary Structure & Atomic Topology
covalent geometry QA «secondary structure» HELIX H1 «parameters» ALA A 1 .. ALA A 5 Right-handed alpha «atom 1..5» Backbone Coordinates «model» N-CA-C-O peptide B-factor = 14.2 A^2 «steric validation» Ramachandran Check «verification» phi/psi allowed no steric clashes
Drag to pan · Click % to reset

PDB & mmCIF 3D Macromolecular Structure (.pdb, .cif, .mmcif) ​

@modelscript/pdb (languages/pdb) provides native WebAssembly GLR parsing, backbone Ramachandran (ϕ,ψ) dihedral angle and steric clash verification, radius of gyration (Rg) calculation, Gaussian Network Model (GNM) elastic normal-mode fluctuation analysis, DAEBuilder lowering, and OpenSCAD / Modelica projections for Protein Data Bank (.pdb) and PDBx/mmCIF (.cif) 3D macromolecular structures.


Supported Extensions & Standards ​

ExtensionFormatDescription
.pdb, .entLegacy PDB FormatFixed-column records (HEADER, TITLE, SEQRES, HELIX, SHEET, SSBOND, ATOM, HETATM, CONECT, END)
.cif, .mmcifPDBx / mmCIFMacromolecular Crystallographic Information File (data_, loop_, _atom_site.*)

Key Capabilities ​

1. Atomic Coordinates, Secondary Structure & Disulfide Bridges ​

  • Extracts multi-chain 3D atomic coordinates (x,y,z), occupancy, isotropic temperature factors (B-factors), α-helices (HELIX), β-sheets (SHEET), disulfide bonds (SSBOND), and ligand connectivity (CONECT).
  • Computes backbone torsion angles (ϕ,ψ,ω), center of mass, and mass-weighted radius of gyration Rg.

2. Gaussian Network Model (GNM) Elastic Normal Modes ​

  • Constructs the Cα Kirchhoff contact matrix Γ (rc=7.0 \AA) to compute theoretical residue mean-square fluctuations ⟨(ΔRi)2⟩∝[Γ−1]ii and correlate them against crystallographic B-factors.

3. DAE Arena Lowering & 3D CSG / Modelica Export ​

  • Lowers coarse-grained Cα harmonic spring networks into @modelscript/runtime's DAEBuilder arena and projects structures into Modelica (pdbToModelica) and OpenSCAD 3D ball-and-stick CSG geometry (pdbToScad).

Pre-Flight Diagnostics ​

10 rules6 error4 warning

CodeRuleSeverityMessage
M9251steric-clasherrorSevere steric clash between non-bonded atoms '<atomA>' (serial '<serialA>') and '<atomB>' (serial '<serialB>') at distance '<distance>' Å (< 1.20 Å).
M9252broken-peptide-backbonewarningBroken peptide backbone in chain '<chainId>' between '<resA><seqA>' (C) and '<resB><seqB>' (N) at distance '<distance>' Å (> 2.00 Å).
M9253invalid-occupancyerrorAtom '<atomName>' (serial '<serial>') has invalid occupancy '<occupancy>' outside allowed bounds [0.0, 1.0].
M9254non-positive-b-factorwarningAtom '<atomName>' (serial '<serial>') has non-positive isotropic temperature factor (B-factor) '<bFactor>' Å^2 (<= 0.0).
M9255ramachandran-outlierwarningResidue '<resName><resSeq>' in chain '<chainId>' has Ramachandran backbone torsion angles (phi='<phi>' deg, psi='<psi>' deg) in a disallowed steric region.
M9256missing-backbone-atomserrorStandard amino acid residue '<resName><resSeq>' in chain '<chainId>' is missing required main-chain backbone atoms '<missingAtoms>'.
M9257invalid-disulfide-distancewarningDisulfide bond (SSBOND) between 'CYS<seq1>' (chain '<chain1>') and 'CYS<seq2>' (chain '<chain2>') has invalid SG-SG distance '<distance>' Å outside [1.80, 2.50] Å.
M9258unresolved-conect-serialerrorCONECT record for atom serial '<conectSerial>' references unresolved atom serial '<missingSerial>'.
M9259duplicate-atom-serialerrorDuplicate atom serial number '<serial>' declared on atom '<atomName>'.
M9260empty-pdb-structureerrorMacromolecular structure '<structureId>' contains zero atomic coordinate records.

Generated from languages/pdb/src/errors.ts. All languages →


CLI Usage ​

bash
# Validate steric clashes, peptide bond lengths, occupancy, and B-factors
msx lint CrambeTrypsinInhibitor.pdb

# Parse and inspect PDB or mmCIF macromolecular records
msx parse CrambeTrypsinInhibitor.pdb

Open-Core under the GNU AGPL v3 License; Enterprise Edition (ee/) under the ModelScript Enterprise License. • Pricing • Trademark Policy