ChemPal Documentation - v1.12.0
    Preparing search index...

    Module utils/molecule/sdf

    Minimal parser for MDL SDF / molfile V2000 records, producing the atom and bond lists needed to draw a ball-and-stick model.

    Types - Utils

    MoleculeAtom

    A single atom from an SDF atom block.

    MoleculeBond

    A single bond from an SDF bond block, with zero-based atom indices (the record itself is one-based).

    Molecule

    A parsed molecular structure.

    Parsers - Utils

    parseSdf

    Parses an MDL SDF / molfile V2000 record into atoms and bonds.

    stripHydrogens

    Returns a copy of a molecule with every hydrogen removed, along with the bonds that touched them, reindexing the surviving bonds. Hiding hydrogens makes the carbon skeleton legible at small render sizes.