pub struct SketchParams {
pub alg: SketchAlg,
pub rc: bool,
pub k: usize,
pub s: usize,
pub b: usize,
pub filter_empty: bool,
}
Fields§
§alg: SketchAlg
Sketch algorithm to use. Defaults to bucket because of its much faster comparisons.
rc: bool
When set, use forward instead of canonical k-mer hashes.
k: usize
k-mer size.
s: usize
Bottom-s sketch, or number of buckets.
b: usize
For bucket-sketch, store only the lower b bits.
filter_empty: bool
For bucket-sketch, store a bitmask of empty buckets, to increase accuracy on small genomes.
Implementations§
Source§impl SketchParams
impl SketchParams
pub fn build(&self) -> Sketcher
Sourcepub fn default(k: usize) -> Self
pub fn default(k: usize) -> Self
Default sketcher that very fast at comparisons, but 20% slower at sketching. Use for >= 50000 seqs, and safe default when input sequences are > 500’000 characters.
When sequences are < 100’000 characters, inaccuracies may occur due to empty buckets.
Sourcepub fn default_fast_sketching(k: usize) -> Self
pub fn default_fast_sketching(k: usize) -> Self
Default sketcher that is fast at sketching, but somewhat slower at comparisons. Use for <= 5000 seqs, or when input sequences are < 100’000 characters.
Trait Implementations§
Source§impl Args for SketchParams
impl Args for SketchParams
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for SketchParams
impl Clone for SketchParams
Source§fn clone(&self) -> SketchParams
fn clone(&self) -> SketchParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SketchParams
impl Debug for SketchParams
Source§impl FromArgMatches for SketchParams
impl FromArgMatches for SketchParams
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.impl Copy for SketchParams
Auto Trait Implementations§
impl Freeze for SketchParams
impl RefUnwindSafe for SketchParams
impl Send for SketchParams
impl Sync for SketchParams
impl Unpin for SketchParams
impl UnwindSafe for SketchParams
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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