pub enum Alignments {
Bam(BamReader),
Cram(CramReader),
}Expand description
A BAM or a CRAM, opened for reading.
Variants§
Bam(BamReader)
Cram(CramReader)
Implementations§
Source§impl Alignments
impl Alignments
pub fn header(&self) -> &SamHeader
pub fn chr_sizes(&self) -> &ChrMap
pub fn is_indexed(&self) -> bool
pub fn index_error(&self) -> &str
pub fn is_closed(&self) -> bool
pub fn path(&self) -> &str
pub fn parallel(&self) -> usize
pub fn close(&mut self)
Sourcepub fn reference_path(&self) -> Option<&str>
pub fn reference_path(&self) -> Option<&str>
The reference FASTA in use. Always None for a BAM, which needs none.
Sourcepub fn reference_error(&self) -> &str
pub fn reference_error(&self) -> &str
Why there is no reference, when there is none and one was wanted.
pub fn read_entries(&self, req: &EntriesRequest) -> Result<Vec<Vec<BamRecord>>>
pub fn read_all_entries(&self, req: &EntriesRequest) -> Result<Vec<BamRecord>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Alignments
impl !RefUnwindSafe for Alignments
impl !UnwindSafe for Alignments
impl Send for Alignments
impl Sync for Alignments
impl Unpin for Alignments
impl UnsafeUnpin for Alignments
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> 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 more