pub enum OOBOption {
Truncate,
Skip,
}Expand description
Options used for dealing with out-of-boundary features Options for handling out-of-bounds (OOB) genomic coordinates.
This enumeration defines strategies for dealing with genomic features or intervals that extend beyond the boundaries of a reference sequence, such as a chromosome or contig. It’s commonly used in genomic data processing to determine how to handle intervals when extracting sequences or extending features beyond reference sequence limits.
§Variants
Truncate: Adjust out-of-bounds intervals to fit within the available sequence range. This can result in shorter sequences than originally specified but ensures that all returned sequences are valid within the context of the reference.Skip: Ignore any intervals that extend beyond the boundaries of the reference sequence. This can result in some data being omitted from the results but maintains the original size and integrity of the remaining sequences.
§Examples
Choosing to truncate sequences that extend beyond the reference:
let oob_option = OOBOption::Truncate;Choosing to skip any features that extend beyond the reference boundaries:
let oob_option = OOBOption::Skip;These handling strategies are vital for ensuring that genomic data analyses remain robust and adaptable to varying data qualities and reference sequence constraints.
Variants§
Trait Implementations§
impl Copy for OOBOption
impl Eq for OOBOption
impl StructuralPartialEq for OOBOption
Auto Trait Implementations§
impl Freeze for OOBOption
impl RefUnwindSafe for OOBOption
impl Send for OOBOption
impl Sync for OOBOption
impl Unpin for OOBOption
impl UnwindSafe for OOBOption
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more