pub struct MatchSequence {
pub hash: BTreeMap<RangePos, String>,
}Expand description
Matching sequence, return a genomic range and associated sequence
use extended_htslib::bam::ext::MatchSequence;
let test = MatchSequence::default();
for (range, sequence) in test.gethash() {
println!("SEQ: {} for {}-{}",sequence,range.start,range.end);
}Fields§
§hash: BTreeMap<RangePos, String>Implementations§
Source§impl MatchSequence
impl MatchSequence
pub fn new(range: RangePos, text: String) -> Self
pub fn gethash(&self) -> &BTreeMap<RangePos, String>
Sourcepub fn isfullymatched(&self, range: RangeInclusive<i64>) -> Option<String>
pub fn isfullymatched(&self, range: RangeInclusive<i64>) -> Option<String>
Check if a range of genomic position is completely aligned with the read. Return the sequence if yes else return None
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchSequence
impl RefUnwindSafe for MatchSequence
impl Send for MatchSequence
impl Sync for MatchSequence
impl Unpin for MatchSequence
impl UnwindSafe for MatchSequence
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