pub struct CramReader { /* private fields */ }Implementations§
Source§impl CramReader
impl CramReader
pub fn open( path: &str, index_path: Option<&str>, reference: Option<&str>, parallel: i64, block_size: Option<u64>, max_blocks: Option<usize>, ) -> Result<Self>
pub fn header(&self) -> &SamHeader
pub fn chr_sizes(&self) -> &ChrMap
pub fn index_error(&self) -> &str
pub fn is_indexed(&self) -> bool
pub fn is_closed(&self) -> bool
pub fn path(&self) -> &str
pub fn parallel(&self) -> usize
Sourcepub fn reference_path(&self) -> Option<&str>
pub fn reference_path(&self) -> Option<&str>
The reference in use, or None when none resolved.
Sourcepub fn reference_error(&self) -> &str
pub fn reference_error(&self) -> &str
Why there is no reference, when there is none. Empty when one resolved.
pub fn close(&mut self)
Sourcepub fn read_entries(&self, req: &EntriesRequest) -> Result<Vec<Vec<BamRecord>>>
pub fn read_entries(&self, req: &EntriesRequest) -> Result<Vec<Vec<BamRecord>>>
One list per locus, in the order the loci were given.
Sourcepub fn read_all_entries(&self, req: &EntriesRequest) -> Result<Vec<BamRecord>>
pub fn read_all_entries(&self, req: &EntriesRequest) -> Result<Vec<BamRecord>>
Every alignment on the named references, in reference then coordinate order.
Sourcepub fn iter_entries(&self, req: &EntriesRequest) -> Result<LocusEntries<'_>>
pub fn iter_entries(&self, req: &EntriesRequest) -> Result<LocusEntries<'_>>
Per-locus, lazily.
Sourcepub fn iter_all_entries(
&self,
req: &EntriesRequest,
window: i64,
) -> Result<WindowEntries<'_>>
pub fn iter_all_entries( &self, req: &EntriesRequest, window: i64, ) -> Result<WindowEntries<'_>>
Successive windows over whole references.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CramReader
impl !RefUnwindSafe for CramReader
impl !UnwindSafe for CramReader
impl Send for CramReader
impl Sync for CramReader
impl Unpin for CramReader
impl UnsafeUnpin for CramReader
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