pub struct BamFile { /* private fields */ }
Expand description
A BAM/CRAM/SAM File
Implementations§
Source§impl BamFile
impl BamFile
pub fn set_required_fields(&mut self, flag: u32)
Sourcepub fn reference_path<P: AsRef<Path>>(&self, path: P)
pub fn reference_path<P: AsRef<Path>>(&self, path: P)
Set the path to the reference FAI file. Only used for CRAM
Sourcepub fn open<P: AsRef<Path>>(path: P) -> Result<Self, AlignmentError>
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, AlignmentError>
Open a BAM/CRAM/SAM file on the disk
pub fn chroms(&self) -> &[(String, usize)]
pub fn range( &mut self, chrom: &str, from: usize, to: usize, ) -> Result<Ranged<'_>, AlignmentError>
Trait Implementations§
Source§impl<'a> AlignmentReader<'a> for &'a BamFile
impl<'a> AlignmentReader<'a> for &'a BamFile
Auto Trait Implementations§
impl !Freeze for BamFile
impl !RefUnwindSafe for BamFile
impl !Send for BamFile
impl !Sync for BamFile
impl Unpin for BamFile
impl UnwindSafe for BamFile
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