Struct fibertools_rs::utils::basemods::BaseMods
source · pub struct BaseMods {
pub base_mods: Vec<BaseMod>,
}Fields§
§base_mods: Vec<BaseMod>Implementations§
source§impl BaseMods
impl BaseMods
pub fn new(record: &Record, min_ml_score: u8) -> BaseMods
pub fn my_mm_ml_parser(record: &Record, min_ml_score: u8) -> BaseMods
pub fn hashmap_to_basemods( map: HashMap<(i32, i32, i32), Vec<(i64, u8)>>, record: &Record, ) -> BaseMods
sourcepub fn drop_forward(&mut self)
pub fn drop_forward(&mut self)
drop the forward stand of basemod calls
sourcepub fn drop_reverse(&mut self)
pub fn drop_reverse(&mut self)
drop the reverse strand of basemod calls
Example MM tag: MM:Z:C+m,11,6,10;A+a,0,0,0; Example ML tag: ML:B:C,157,30,2,164,118,255
Trait Implementations§
impl Eq for BaseMods
impl StructuralPartialEq for BaseMods
Auto Trait Implementations§
impl Freeze for BaseMods
impl RefUnwindSafe for BaseMods
impl Send for BaseMods
impl Sync for BaseMods
impl Unpin for BaseMods
impl UnwindSafe for BaseMods
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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
Compare self to
key and return true if they are equal.source§impl<T> Pointable for T
impl<T> Pointable for T
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.