pub struct BlastAligner { /* private fields */ }Expand description
Seed-and-extend aligner with a validated configuration.
Implementations§
Source§impl BlastAligner
impl BlastAligner
Sourcepub fn new(config: BlastConfig) -> SeqResult<Self>
pub fn new(config: BlastConfig) -> SeqResult<Self>
Construct a new aligner, validating the configuration.
§Errors
SeqError::InvalidConfigurationifkmer_len == 0.SeqError::InvalidParameterifx_drop <= 0.
Sourcepub fn config(&self) -> &BlastConfig
pub fn config(&self) -> &BlastConfig
Borrow the validated configuration.
Sourcepub fn search<T: Eq + Hash>(
&self,
query: &[T],
subject: &[T],
) -> SeqResult<Vec<Hsp>>
pub fn search<T: Eq + Hash>( &self, query: &[T], subject: &[T], ) -> SeqResult<Vec<Hsp>>
Search subject for high-scoring segment pairs anchored by exact
k-mer seeds shared with query.
Returned HSPs are deduplicated (segments subsumed by a longer HSP on the same diagonal are dropped) and sorted by descending score, then by position for determinism.
§Errors
SeqError::EmptyInput if either sequence is empty. Non-empty
sequences shorter than one seed simply yield an empty result.
Trait Implementations§
Source§impl Clone for BlastAligner
impl Clone for BlastAligner
Source§fn clone(&self) -> BlastAligner
fn clone(&self) -> BlastAligner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlastAligner
impl RefUnwindSafe for BlastAligner
impl Send for BlastAligner
impl Sync for BlastAligner
impl Unpin for BlastAligner
impl UnsafeUnpin for BlastAligner
impl UnwindSafe for BlastAligner
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