nom-pdb

CI

PDB parser implemented in Rust using nom.

Features

Example (Last Updated 2020-10-17)

rust cargo run --example read 1a8o

json { "header": { "classification": "VIRAL PROTEIN", "deposition_date": "1998-03-27", "id_code": "1A8O" }, "title": "HIV CAPSID C-TERMINAL DOMAIN", "authors": [ "T.R.GAMBLE", "S.YOO", "F.F.VAJDOS", "U.K.VON SCHWEDLER", "D.K.WORTHYLAKE", "H.WANG", "J.P.MCCUTCHEON", "W.I.SUNDQUIST", "C.P.HILL" ], "experimental_techniques": [ "XRayDiffraction" ], "cryst1": { "a": 41.98, "b": 41.98, "c": 88.92, "alpha": 90.0, "beta": 90.0, "gamma": 90.0, "lattice_type": "Primitive", "space_group": [ [ 4, 3 ], [ 2, 1 ], [ 2, 1 ] ], "z": 8 }, "modres": { "MSE": { "standard_res": "Met", "description": "SELENOMETHIONINE", "occurence": [ [ "A", 151 ], [ "A", 185 ], [ "A", 214 ], [ "A", 215 ] ] } }, "seqres": [ [ "A", [ { "Custom": "MSE" }, "Asp", "Ile", "Arg", "Gln", "Gly", "Pro", // snip // ] ] ], "atoms": [ { "id": 9, "name": "N", "id1": " ", "residue": "Asp", "chain": "A", "sequence_number": 152, "insertion_code": " ", "x": 21.554, "y": 34.953, "z": 27.691, "occupancy": 1.0, "temperature_factor": 19.26, "element": "N", "charge": 0 }, // snip // ] "anisou": [ // snip // ] }

Notes

References

Roadmap

Note: Priority is, and should be placed on parsing structural information instead of metadata, since the latter is more or less disordered free-text and usually not of particular interest to users (even in cases where they are, users can examine the PDB file directly).

Title Section