Enum libradicl::rad_types::MappingType
source · pub enum MappingType {
Unmapped,
SingleMapped,
MappedFirstOrphan,
MappedSecondOrphan,
MappedPair,
}
Expand description
Represents the manner in which a fragment (read or read pair) may map to a target. This type does not encode orientation, but rather the mapping status.
Variants§
Implementations§
source§impl MappingType
impl MappingType
sourcepub fn from_u8(t: u8) -> Self
pub fn from_u8(t: u8) -> Self
convert from the u8 representation to the corresponding MappingType.
sourcepub fn get_mask(&self) -> u32
pub fn get_mask(&self) -> u32
Return the mask that is relevant given the current MappingType.
sourcepub fn is_orphan(&self) -> bool
pub fn is_orphan(&self) -> bool
Returns true
if the current MappingType is an orphan
(i.e. a fragment paired in sequencing for which only a single
end is mapped to the current target) and false
otherwise.
Trait Implementations§
source§impl Clone for MappingType
impl Clone for MappingType
source§fn clone(&self) -> MappingType
fn clone(&self) -> MappingType
Returns a copy 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 MappingType
impl Debug for MappingType
source§impl PartialEq for MappingType
impl PartialEq for MappingType
source§fn eq(&self, other: &MappingType) -> bool
fn eq(&self, other: &MappingType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MappingType
impl Eq for MappingType
impl StructuralPartialEq for MappingType
Auto Trait Implementations§
impl RefUnwindSafe for MappingType
impl Send for MappingType
impl Sync for MappingType
impl Unpin for MappingType
impl UnwindSafe for MappingType
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<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.