Function pdbtbx::save_pdb_gz
source · pub fn save_pdb_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, validating it beforehand, and use gzip compression.
Errors
It fails if the validation fails with the given level
.
If validation gives rise to problems, use the save_raw
function.
Known Problems
Saving SEQRES lines is experimental, as there are many nitpicky things to consider when generating SEQRES records, which are not all implemented (yet).