Struct rust_htslib::bam::pileup::Alignment
source · pub struct Alignment<'a> { /* private fields */ }
Expand description
An aligned read in a pileup.
Implementations§
source§impl<'a> Alignment<'a>
impl<'a> Alignment<'a>
pub fn new(inner: &'a bam_pileup1_t) -> Self
sourcepub fn qpos(&self) -> Option<usize>
pub fn qpos(&self) -> Option<usize>
Position within the read. None if either is_del
or is_refskip
.
sourcepub fn indel(&self) -> Indel
pub fn indel(&self) -> Indel
Insertion, deletion (with length) if indel starts at next base or None otherwise.
sourcepub fn is_refskip(&self) -> bool
pub fn is_refskip(&self) -> bool
Whether this position is marked as refskip in the CIGAR string.