pub struct AlignerWithRef { /* private fields */ }Expand description
Aligner with reference sequence for proper SW scoring
This aligner extracts reference sequences from the index and uses them for Smith-Waterman alignment, giving accurate scores for matches/mismatches.
Implementations§
Source§impl AlignerWithRef
impl AlignerWithRef
Sourcepub fn new(index_with_ref: EbwtWithRef, params: AlignerParams) -> Self
pub fn new(index_with_ref: EbwtWithRef, params: AlignerParams) -> Self
Create a new aligner with reference
Sourcepub fn align(&self, read: &[Nuc], read_rc: &[Nuc]) -> AlignmentResult
pub fn align(&self, read: &[Nuc], read_rc: &[Nuc]) -> AlignmentResult
Align a single read using actual reference sequences
Searches both forward and reverse complement strands and returns all valid alignments with scores computed against actual reference.
Sourcepub fn index(&self) -> &EbwtWithRef
pub fn index(&self) -> &EbwtWithRef
Get the underlying EbwtWithRef
Auto Trait Implementations§
impl Freeze for AlignerWithRef
impl RefUnwindSafe for AlignerWithRef
impl Send for AlignerWithRef
impl Sync for AlignerWithRef
impl Unpin for AlignerWithRef
impl UnsafeUnpin for AlignerWithRef
impl UnwindSafe for AlignerWithRef
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