pub struct EbwtWithRef {
pub ebwt: Ebwt,
pub reference: Reference,
/* private fields */
}Expand description
Combined structure for FM-index with reference
Fields§
§ebwt: EbwtThe FM-index
reference: ReferenceThe reference sequence metadata
Implementations§
Source§impl EbwtWithRef
impl EbwtWithRef
Sourcepub fn load<P: AsRef<Path>>(path_base: P) -> AlignResult<Self>
pub fn load<P: AsRef<Path>>(path_base: P) -> AlignResult<Self>
Load both FM-index and reference
Sourcepub fn get_reference(
&self,
chr_idx: u32,
pos: u64,
len: usize,
) -> AlignResult<Vec<Nuc>>
pub fn get_reference( &self, chr_idx: u32, pos: u64, len: usize, ) -> AlignResult<Vec<Nuc>>
Extract reference sequence for a given chromosome and position
Note: pos should be 0-based position within the chromosome
Auto Trait Implementations§
impl Freeze for EbwtWithRef
impl RefUnwindSafe for EbwtWithRef
impl Send for EbwtWithRef
impl Sync for EbwtWithRef
impl Unpin for EbwtWithRef
impl UnsafeUnpin for EbwtWithRef
impl UnwindSafe for EbwtWithRef
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