[−][src]Struct d4_hts::alignment::BamFile
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]
&mut self,
chrom: &str,
from: usize,
to: usize
) -> Result<Ranged<'_>, AlignmentError>
Trait Implementations
impl<'a> AlignmentReader<'a> for &'a BamFile[src]
fn start(&self) -> (u32, u32)[src]
fn get_file(&self) -> &'a BamFile[src]
fn next(
&self,
buf: *mut bam1_t
) -> Result<Option<Alignment<'a>>, AlignmentError>[src]
&self,
buf: *mut bam1_t
) -> Result<Option<Alignment<'a>>, AlignmentError>
fn to_alignment_iter(self) -> AlignmentIter<'a, Self>ⓘNotable traits for AlignmentIter<'a, R>
impl<'a, R: AlignmentReader<'a>> Iterator for AlignmentIter<'a, R> type Item = Result<Alignment<'a>, AlignmentError>; where
Self: Sized, [src]
Notable traits for AlignmentIter<'a, R>
impl<'a, R: AlignmentReader<'a>> Iterator for AlignmentIter<'a, R> type Item = Result<Alignment<'a>, AlignmentError>;Self: Sized,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,