Function pdbtbx::open_mmcif

source ·
pub fn open_mmcif(
    filename: impl AsRef<str>,
    level: StrictnessLevel
) -> Result<(PDB, Vec<PDBError>), Vec<PDBError>>
Expand description

Parse the given mmCIF file into a PDB struct. Returns a PDBError if a BreakingError is found. Otherwise it returns the PDB with all errors/warnings found while parsing it.

If you want to open a file from memory see open_mmcif_raw. There is also a function to open a PDB file directly see crate::open_pdb. If you want to open a general file with no knowledge about the file type see crate::open.