Struct fibertools_rs::fiber::FiberseqData
source · pub struct FiberseqData {
pub record: Record,
pub msp: Ranges,
pub nuc: Ranges,
pub m6a: Ranges,
pub cpg: Ranges,
pub base_mods: BaseMods,
pub ec: f32,
pub target_name: String,
pub rg: String,
pub center_position: Option<CenterPosition>,
}
Fields§
§record: Record
§msp: Ranges
§nuc: Ranges
§m6a: Ranges
§cpg: Ranges
§base_mods: BaseMods
§ec: f32
§target_name: String
§rg: String
§center_position: Option<CenterPosition>
Implementations§
source§impl FiberseqData
impl FiberseqData
pub fn new( record: Record, target_name: Option<&String>, filters: &FiberFilters, ) -> Self
pub fn dict_from_head_view(head_view: &HeaderView) -> HashMap<i32, String>
pub fn target_name_from_tid( tid: i32, target_dict: &HashMap<i32, String>, ) -> Option<&String>
pub fn from_records( records: Vec<Record>, head_view: &HeaderView, filters: &FiberFilters, ) -> Vec<Self>
pub fn get_rq(&self) -> Option<f32>
pub fn get_hp(&self) -> String
sourcepub fn center(&self, center_position: &CenterPosition) -> Option<Self>
pub fn center(&self, center_position: &CenterPosition) -> Option<Self>
Center all coordinates on the read using the offset attribute.
pub fn write_msp(&self, reference: bool) -> String
pub fn write_nuc(&self, reference: bool) -> String
pub fn write_m6a(&self, reference: bool) -> String
pub fn write_cpg(&self, reference: bool) -> String
pub fn to_bed12( &self, reference: bool, starts: &[Option<i64>], lengths: &[Option<i64>], color: &str, ) -> String
pub fn all_header(simplify: bool, quality: bool) -> String
pub fn write_all(&self, simplify: bool, quality: bool) -> String
Trait Implementations§
source§impl Clone for FiberseqData
impl Clone for FiberseqData
source§fn clone(&self) -> FiberseqData
fn clone(&self) -> FiberseqData
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 FiberseqData
impl Debug for FiberseqData
source§impl PartialEq for FiberseqData
impl PartialEq for FiberseqData
impl StructuralPartialEq for FiberseqData
Auto Trait Implementations§
impl Freeze for FiberseqData
impl RefUnwindSafe for FiberseqData
impl Send for FiberseqData
impl Sync for FiberseqData
impl Unpin for FiberseqData
impl UnwindSafe for FiberseqData
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<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.