pub struct InputModsBuilder<S: TagState + Args + FromArgMatches + Default> { /* private fields */ }Expand description
Builder for InputMods.
Implementations§
Source§impl<S: TagState + Args + FromArgMatches + Default + Clone> InputModsBuilder<S>
impl<S: TagState + Args + FromArgMatches + Default + Clone> InputModsBuilder<S>
Sourcepub fn mod_strand(&mut self, value: String) -> &mut Self
pub fn mod_strand(&mut self, value: String) -> &mut Self
modified strand, set this to bc or bc_comp, meaning
on basecalled strand or its complement. Some technologies
like PacBio or ONT duplex can call mod data on both a strand
and its complementary DNA and store it in the record corresponding
to the strand, so you can use this filter to select only for
mod data on a strand or its complement. Please note that this
filter is different from selecting for forward or reverse
aligned reads using the BAM flags.
Sourcepub fn mod_prob_filter(&mut self, value: ThresholdState) -> &mut Self
pub fn mod_prob_filter(&mut self, value: ThresholdState) -> &mut Self
Filter to reject mods before analysis. Specify as low,high where both are fractions to reject modifications where the probabilities (p) are in this range e.g. “0.4,0.6” rejects 0.4 <= p <= 0.6. You can use this to reject ‘weak’ modification calls before analysis i.e. those with probabilities close to 0.5. NOTE: (1) Whether this filtration is applied or not, mods < 0.5 are considered unmodified and >= 0.5 are considered modified by our program. (2) mod probabilities are stored as a number from 0-255 in the modBAM format, so we internally convert 0.0-1.0 to 0-255. Default: reject nothing.
Sourcepub fn trim_read_ends_mod(&mut self, value: usize) -> &mut Self
pub fn trim_read_ends_mod(&mut self, value: usize) -> &mut Self
Filter this many bp at the start and end of a read before any mod operations. Please note that the units here are bp and not units of base being queried.
Sourcepub fn base_qual_filter_mod(&mut self, value: u8) -> &mut Self
pub fn base_qual_filter_mod(&mut self, value: u8) -> &mut Self
Exclude bases whose base quality is below this threshold before any mod operation, defaults to 0 i.e. unused. NOTE: (1) This step is only applied before modification operations, and not before any other operations. (2) No offsets such as +33 are needed here. (3) Modifications on reads where base quality information is not available are all rejected if this is non-zero.
Sourcepub fn mod_region(&mut self, value: String) -> &mut Self
pub fn mod_region(&mut self, value: String) -> &mut Self
Only keep modification data from this region
Sourcepub fn region_bed3(&mut self, value: Bed3<i32, u64>) -> &mut Self
pub fn region_bed3(&mut self, value: Bed3<i32, u64>) -> &mut Self
Only keep modification data from this region. We do not expose this to the user, but infer it from the other options set by the user. We cannot populate this directly at the time of CLI parsing, as we need to look at the BAM header to convert a contig name into a numeric contig id.
Trait Implementations§
Source§impl<S: Clone + TagState + Args + FromArgMatches + Default> Clone for InputModsBuilder<S>
impl<S: Clone + TagState + Args + FromArgMatches + Default> Clone for InputModsBuilder<S>
Source§fn clone(&self) -> InputModsBuilder<S>
fn clone(&self) -> InputModsBuilder<S>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<S> Freeze for InputModsBuilder<S>where
S: Freeze,
impl<S> RefUnwindSafe for InputModsBuilder<S>where
S: RefUnwindSafe,
impl<S> Send for InputModsBuilder<S>where
S: Send,
impl<S> Sync for InputModsBuilder<S>where
S: Sync,
impl<S> Unpin for InputModsBuilder<S>where
S: Unpin,
impl<S> UnwindSafe for InputModsBuilder<S>where
S: UnwindSafe,
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> 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 moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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.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.