jmvs

0004 Custom line-based mmCIF parser

Status: Accepted (fragile)

Superseded by ADR 0008.

Context

README (2022): “The molecular loader has been replaced with an all-new loader for the latest PDBx/mmCIF type and loads atoms, sheets and helices.” Earlier format support is not present in this repo.

Decision

CIFReader (behind MoleculeReader) scans line by line, tracking only _atom_site.*, _struct_conf.*, _struct_sheet_range.* loop columns, splits rows on whitespace, and dispatches to the private method named after the category via reflection (getDeclaredMethod). Helices/sheets are applied after atoms; then Molecule.finish() computes bounds and bonds. No third-party mmCIF library is used.

Consequences