pub struct FiberAnnotations {
pub annotations: Vec<FiberAnnotation>,
pub seq_len: i64,
pub reverse: bool,
}Fields§
§annotations: Vec<FiberAnnotation>§seq_len: i64§reverse: boolImplementations§
Source§impl FiberAnnotations
impl FiberAnnotations
Sourcepub fn from_annotations(
annotations: Vec<FiberAnnotation>,
seq_len: i64,
reverse: bool,
) -> Self
pub fn from_annotations( annotations: Vec<FiberAnnotation>, seq_len: i64, reverse: bool, ) -> Self
Create FiberAnnotations from a vector of FiberAnnotation items
Sourcepub fn new(
record: &Record,
forward_starts: Vec<i64>,
forward_ends: Option<Vec<i64>>,
lengths: Option<Vec<i64>>,
) -> Self
pub fn new( record: &Record, forward_starts: Vec<i64>, forward_ends: Option<Vec<i64>>, lengths: Option<Vec<i64>>, ) -> Self
starts and ends are [) intervals.
pub fn set_qual(&mut self, forward_qual: Vec<u8>)
pub fn starts(&self) -> Vec<i64>
pub fn ends(&self) -> Vec<i64>
pub fn lengths(&self) -> Vec<i64>
pub fn option_starts(&self) -> Vec<Option<i64>>
pub fn option_ends(&self) -> Vec<Option<i64>>
pub fn option_lengths(&self) -> Vec<Option<i64>>
pub fn qual(&self) -> Vec<u8> ⓘ
pub fn reference_starts(&self) -> Vec<Option<i64>>
pub fn reference_ends(&self) -> Vec<Option<i64>>
pub fn reference_lengths(&self) -> Vec<Option<i64>>
Sourcepub fn get_molecular(&self) -> Vec<Option<(i64, i64, i64)>>
pub fn get_molecular(&self) -> Vec<Option<(i64, i64, i64)>>
get the molecular coordinates of the ranges, taking into account the alignment orientation
pub fn forward_starts(&self) -> Vec<i64>
pub fn get_forward_quals(&self) -> Vec<u8> ⓘ
pub fn filter_by_qual(&mut self, min_qual: u8)
Sourcepub fn filter_starts_at_read_ends(&mut self, strip: i64)
pub fn filter_starts_at_read_ends(&mut self, strip: i64)
filter out ranges that are within the first or last X bp of the read
pub fn to_strings(&self, reference: bool, skip_none: bool) -> Vec<String>
Sourcepub fn get_reference(&self) -> Vec<Option<(i64, i64, i64)>>
pub fn get_reference(&self) -> Vec<Option<(i64, i64, i64)>>
get the reference coordinates of the ranges, taking into account the alignment orientation
pub fn merge_ranges(multiple_ranges: Vec<&Self>) -> Self
Sourcepub fn apply_offset(&mut self, offset: i64, ref_offset: i64, strand: char)
pub fn apply_offset(&mut self, offset: i64, ref_offset: i64, strand: char)
Apply offset to all molecular coordinates in the annotations
Create FiberAnnotations from BAM tags with configurable tag names
Sourcepub fn overlapping_annotations(&self, range_start: i64, range_end: i64) -> Self
pub fn overlapping_annotations(&self, range_start: i64, range_end: i64) -> Self
Create FiberAnnotations containing only annotations that overlap with the given range
Write annotations to BAM record as auxiliary tags
Trait Implementations§
Source§impl Clone for FiberAnnotations
impl Clone for FiberAnnotations
Source§fn clone(&self) -> FiberAnnotations
fn clone(&self) -> FiberAnnotations
Returns a duplicate 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 FiberAnnotations
impl Debug for FiberAnnotations
Source§impl<'a> IntoIterator for &'a FiberAnnotations
impl<'a> IntoIterator for &'a FiberAnnotations
Source§impl Ord for FiberAnnotations
impl Ord for FiberAnnotations
Source§fn cmp(&self, other: &FiberAnnotations) -> Ordering
fn cmp(&self, other: &FiberAnnotations) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FiberAnnotations
impl PartialEq for FiberAnnotations
Source§impl PartialOrd for FiberAnnotations
impl PartialOrd for FiberAnnotations
impl Eq for FiberAnnotations
impl StructuralPartialEq for FiberAnnotations
Auto Trait Implementations§
impl Freeze for FiberAnnotations
impl RefUnwindSafe for FiberAnnotations
impl Send for FiberAnnotations
impl Sync for FiberAnnotations
impl Unpin for FiberAnnotations
impl UnwindSafe for FiberAnnotations
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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> 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>
Converts
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>
Converts
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> 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.