Function pdbtbx::save_mmcif_gz
source · pub fn save_mmcif_gz(
pdb: &PDB,
filename: impl AsRef<str>,
level: StrictnessLevel,
compression_level: Option<Compression>
) -> Result<(), Vec<PDBError>>
Expand description
Save the given PDB struct to the given file as mmCIF or PDBx and compresses to .gz
Errors
It validates the PDB. It fails if the validation fails with the given level
, or if the file could not be opened.
If validation gives rise to problems, use the save_raw
function.