pub struct Reference { /* private fields */ }Expand description
Reference sequence storage
Loads and stores reference sequences from .3.rai and .4.rai RustAlign index files. The reference is stored in bit-packed format (2 bits per nucleotide).
Implementations§
Source§impl Reference
impl Reference
Sourcepub fn load<P: AsRef<Path>>(path_base: P) -> AlignResult<Self>
pub fn load<P: AsRef<Path>>(path_base: P) -> AlignResult<Self>
Load reference from .3.rai and .4.rai files
§Arguments
path_base- Path to the index base (without extensions)
Sourcepub fn approx_len(&self, tidx: u32) -> u64
pub fn approx_len(&self, tidx: u32) -> u64
Get the approximate length of a reference sequence
Sourcepub fn get_stretch(
&self,
buf: &[u8],
tidx: u32,
toff: u64,
count: usize,
) -> AlignResult<Vec<Nuc>>
pub fn get_stretch( &self, buf: &[u8], tidx: u32, toff: u64, count: usize, ) -> AlignResult<Vec<Nuc>>
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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