pub enum FilterResult {
Pass,
InsufficientReads,
ExcessiveErrorRate,
LowQuality,
TooManyNoCalls,
}Expand description
Result of filtering a consensus read
Variants§
Pass
Read passed all filters
InsufficientReads
Read failed minimum reads threshold
ExcessiveErrorRate
Read failed maximum error rate threshold
LowQuality
Read failed minimum mean base quality threshold
TooManyNoCalls
Read failed maximum no-call fraction threshold
Implementations§
Source§impl FilterResult
impl FilterResult
Sourcepub fn to_rejection_reason(&self) -> Option<RejectionReason>
pub fn to_rejection_reason(&self) -> Option<RejectionReason>
Converts a FilterResult to a RejectionReason, if rejected.
Returns None if the result is Pass, otherwise returns the corresponding
rejection reason for tracking in metrics and logging.
Trait Implementations§
Source§impl Clone for FilterResult
impl Clone for FilterResult
Source§fn clone(&self) -> FilterResult
fn clone(&self) -> FilterResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilterResult
impl Debug for FilterResult
Source§impl PartialEq for FilterResult
impl PartialEq for FilterResult
impl Copy for FilterResult
impl Eq for FilterResult
impl StructuralPartialEq for FilterResult
Auto Trait Implementations§
impl Freeze for FilterResult
impl RefUnwindSafe for FilterResult
impl Send for FilterResult
impl Sync for FilterResult
impl Unpin for FilterResult
impl UnsafeUnpin for FilterResult
impl UnwindSafe for FilterResult
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
Mutably borrows from an owned value. Read more
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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 more