pub struct NormalizeConfig {
pub shuffle_direction: ShuffleDirection,
pub cross_boundaries: bool,
pub error_config: ErrorConfig,
pub window_size: u64,
pub prevent_overlap: bool,
}Expand description
Configuration for variant normalization
Fields§
§shuffle_direction: ShuffleDirectionDirection to shuffle variants (default: 3’)
cross_boundaries: boolWhether to allow crossing exon-intron boundaries
error_config: ErrorConfigError handling configuration (controls reference validation behavior)
window_size: u64Window size for reference sequence fetching
prevent_overlap: boolWhether to prevent overlaps in compound variant normalization
When true, normalization will check if variants in an allele would overlap after shifting and constrain the normalization to prevent collisions.
Implementations§
Source§impl NormalizeConfig
impl NormalizeConfig
Sourcepub fn strict() -> Self
pub fn strict() -> Self
Create a config with strict error handling (reject reference mismatches)
Sourcepub fn lenient() -> Self
pub fn lenient() -> Self
Create a config with lenient error handling (warn on reference mismatches)
Sourcepub fn silent() -> Self
pub fn silent() -> Self
Create a config with silent error handling (ignore reference mismatches)
Sourcepub fn with_direction(self, direction: ShuffleDirection) -> Self
pub fn with_direction(self, direction: ShuffleDirection) -> Self
Set shuffle direction
Sourcepub fn allow_crossing_boundaries(self) -> Self
pub fn allow_crossing_boundaries(self) -> Self
Allow crossing boundaries
Sourcepub fn with_error_mode(self, mode: ErrorMode) -> Self
pub fn with_error_mode(self, mode: ErrorMode) -> Self
Set error handling mode
Sourcepub fn with_error_override(
self,
error_type: ErrorType,
action: ErrorOverride,
) -> Self
pub fn with_error_override( self, error_type: ErrorType, action: ErrorOverride, ) -> Self
Set a specific error type override
Sourcepub fn skip_validation(self) -> Self
👎Deprecated since 0.2.0: Use with_error_mode(ErrorMode::Silent) instead
pub fn skip_validation(self) -> Self
Disable reference validation (sets RefSeqMismatch to SilentCorrect)
Sourcepub fn with_overlap_prevention(self, prevent: bool) -> Self
pub fn with_overlap_prevention(self, prevent: bool) -> Self
Enable overlap prevention in compound variants
Sourcepub fn ref_mismatch_action(&self) -> ResolvedAction
pub fn ref_mismatch_action(&self) -> ResolvedAction
Get the resolved action for reference sequence mismatch
Sourcepub fn should_reject_ref_mismatch(&self) -> bool
pub fn should_reject_ref_mismatch(&self) -> bool
Returns true if reference mismatches should be rejected
Sourcepub fn should_warn_ref_mismatch(&self) -> bool
pub fn should_warn_ref_mismatch(&self) -> bool
Returns true if reference mismatches should emit warnings
Trait Implementations§
Source§impl Clone for NormalizeConfig
impl Clone for NormalizeConfig
Source§fn clone(&self) -> NormalizeConfig
fn clone(&self) -> NormalizeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NormalizeConfig
impl Debug for NormalizeConfig
Source§impl Default for NormalizeConfig
impl Default for NormalizeConfig
Source§impl<'de> Deserialize<'de> for NormalizeConfig
impl<'de> Deserialize<'de> for NormalizeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for NormalizeConfig
impl PartialEq for NormalizeConfig
Source§impl Serialize for NormalizeConfig
impl Serialize for NormalizeConfig
impl Eq for NormalizeConfig
Auto Trait Implementations§
impl Freeze for NormalizeConfig
impl RefUnwindSafe for NormalizeConfig
impl Send for NormalizeConfig
impl Sync for NormalizeConfig
impl Unpin for NormalizeConfig
impl UnsafeUnpin for NormalizeConfig
impl UnwindSafe for NormalizeConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.