pub struct CleanConfig {
pub remove_water: bool,
pub remove_ions: bool,
pub remove_hydrogens: bool,
pub remove_hetero: bool,
pub remove_residue_names: HashSet<String>,
pub keep_residue_names: HashSet<String>,
}Expand description
Configuration switches describing which components should be removed during cleaning.
Every flag maps to a different biological filter (water, ions, heterogens, etc.), and the string sets allow explicit whitelist/blacklist overrides to preserve ligands of interest.
Fields§
§remove_water: boolStrip crystallographic waters (HOH) when true.
remove_ions: boolStrip ionic residues (category Ion) when true.
remove_hydrogens: boolRemove hydrogen atoms before structural refinement.
remove_hetero: boolRemove heterogen residues (category Hetero).
remove_residue_names: HashSet<String>Case-sensitive residue names to always remove, regardless of category.
keep_residue_names: HashSet<String>Case-sensitive residue names to always keep, overriding other rules.
Implementations§
Source§impl CleanConfig
impl CleanConfig
Sourcepub fn water_only() -> Self
pub fn water_only() -> Self
Convenience constructor that only removes waters.
Useful for workflows that only need to strip solvent boxes before further processing.
§Returns
A CleanConfig with remove_water enabled and all other fields at their defaults.
Sourcepub fn water_and_ions() -> Self
pub fn water_and_ions() -> Self
Convenience constructor that removes waters and ions simultaneously.
Often used for preparing apo structures prior to topology generation.
§Returns
A CleanConfig enabling remove_water and remove_ions.
Trait Implementations§
Source§impl Clone for CleanConfig
impl Clone for CleanConfig
Source§fn clone(&self) -> CleanConfig
fn clone(&self) -> CleanConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CleanConfig
impl Debug for CleanConfig
Source§impl Default for CleanConfig
impl Default for CleanConfig
Source§fn default() -> CleanConfig
fn default() -> CleanConfig
Auto Trait Implementations§
impl Freeze for CleanConfig
impl RefUnwindSafe for CleanConfig
impl Send for CleanConfig
impl Sync for CleanConfig
impl Unpin for CleanConfig
impl UnwindSafe for CleanConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.