pub struct RestrictModCalledStrand(/* private fields */);Expand description
Struct to mark if we want data only from the +
or the - mod-called strand.
NOTE: this doesn’t mean the strand from the alignment,
but the strand from the modification data i.e. the strand
in the MM tag e.g. T+T, T-a where the strand is + and -
respectively. This denotes if mod data is from the basecalled
strand or the complementary strand. To not confuse users of the
command line interface, we allow creation of this from a string
bc or bc_comp i.e. basecalled or basecalled complement instead
of + and -, which may be mistaken for the alignment strand.
Trait Implementations§
Source§impl Clone for RestrictModCalledStrand
impl Clone for RestrictModCalledStrand
Source§fn clone(&self) -> RestrictModCalledStrand
fn clone(&self) -> RestrictModCalledStrand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RestrictModCalledStrand
impl Debug for RestrictModCalledStrand
Source§impl Default for RestrictModCalledStrand
default mod strand restriction is +
impl Default for RestrictModCalledStrand
default mod strand restriction is +
Source§impl<'de> Deserialize<'de> for RestrictModCalledStrand
impl<'de> Deserialize<'de> for RestrictModCalledStrand
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 Display for RestrictModCalledStrand
Prints the true state as + and the false state as -
impl Display for RestrictModCalledStrand
Prints the true state as + and the false state as -
use nanalogue_core::RestrictModCalledStrand;
use std::fmt::Display;
use std::str::FromStr;
assert_eq!("+", format!("{}",RestrictModCalledStrand::from_str("bc")?));
assert_eq!("-", format!("{}",RestrictModCalledStrand::from_str("bc_comp")?));Source§impl From<RestrictModCalledStrand> for char
Converts the true state to the + character, and false to -
impl From<RestrictModCalledStrand> for char
Converts the true state to the + character, and false to -
use nanalogue_core::RestrictModCalledStrand;
use std::str::FromStr;
assert_eq!('+', char::from(RestrictModCalledStrand::from_str("bc")?));
assert_eq!('-', char::from(RestrictModCalledStrand::from_str("bc_comp")?));Source§fn from(val: RestrictModCalledStrand) -> char
fn from(val: RestrictModCalledStrand) -> char
converts to char
Source§impl FromStr for RestrictModCalledStrand
Set states according to if we receive bc or bc_comp
impl FromStr for RestrictModCalledStrand
Set states according to if we receive bc or bc_comp
use nanalogue_core::RestrictModCalledStrand;
use std::str::FromStr;
assert_eq!('+', char::from(RestrictModCalledStrand::from_str("bc")?));
assert_eq!('-', char::from(RestrictModCalledStrand::from_str("bc_comp")?));Source§impl PartialEq for RestrictModCalledStrand
impl PartialEq for RestrictModCalledStrand
Source§impl Serialize for RestrictModCalledStrand
impl Serialize for RestrictModCalledStrand
impl Copy for RestrictModCalledStrand
impl Eq for RestrictModCalledStrand
impl StructuralPartialEq for RestrictModCalledStrand
Auto Trait Implementations§
impl Freeze for RestrictModCalledStrand
impl RefUnwindSafe for RestrictModCalledStrand
impl Send for RestrictModCalledStrand
impl Sync for RestrictModCalledStrand
impl Unpin for RestrictModCalledStrand
impl UnwindSafe for RestrictModCalledStrand
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 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.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.