[][src]Struct d4_hts::alignment::BamFile

pub struct BamFile { /* fields omitted */ }

A BAM/CRAM/SAM File

Implementations

impl BamFile[src]

pub fn set_required_fields(&mut self, flag: u32)[src]

pub fn reference_path<P: AsRef<Path>>(&self, path: P)[src]

Set the path to the reference FAI file. Only used for CRAM

pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, AlignmentError>[src]

Open a BAM/CRAM/SAM file on the disk

pub fn chroms(&self) -> &[(String, usize)][src]

pub fn range(
    &mut self,
    chrom: &str,
    from: usize,
    to: usize
) -> Result<Ranged<'_>, AlignmentError>
[src]

Trait Implementations

impl<'a> AlignmentReader<'a> for &'a BamFile[src]

impl Drop for BamFile[src]

Auto Trait Implementations

impl !RefUnwindSafe for BamFile

impl !Send for BamFile

impl !Sync for BamFile

impl Unpin for BamFile

impl UnwindSafe for BamFile

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.