pub struct IndexConfig {
pub input_path: PathBuf,
pub kmer_length: usize,
pub window_size: usize,
pub output_path: Option<PathBuf>,
pub capacity_millions: usize,
pub threads: usize,
}Fields§
§input_path: PathBufPath to input fastx file
kmer_length: usizeK-mer length used for indexing
window_size: usizeMinimizer window size used for indexing
output_path: Option<PathBuf>Path to output file (None for stdout)
capacity_millions: usizeHash table pre-allocation capacity in millions
threads: usizeNumber of execution threads (0 = auto)
Implementations§
Source§impl IndexConfig
impl IndexConfig
Sourcepub fn new<P: AsRef<Path>>(input_path: P) -> Self
pub fn new<P: AsRef<Path>>(input_path: P) -> Self
Create a new index configuration with the specified input path
Sourcepub fn with_kmer_length(self, kmer_length: usize) -> Self
pub fn with_kmer_length(self, kmer_length: usize) -> Self
Set k-mer length
Sourcepub fn with_window_size(self, window_size: usize) -> Self
pub fn with_window_size(self, window_size: usize) -> Self
Set window size
Sourcepub fn with_output<P: AsRef<Path>>(self, output_path: P) -> Self
pub fn with_output<P: AsRef<Path>>(self, output_path: P) -> Self
Set output path
Sourcepub fn with_capacity_millions(self, capacity_millions: usize) -> Self
pub fn with_capacity_millions(self, capacity_millions: usize) -> Self
Set hash table capacity in millions
Sourcepub fn with_threads(self, threads: usize) -> Self
pub fn with_threads(self, threads: usize) -> Self
Set threads
Auto Trait Implementations§
impl Freeze for IndexConfig
impl RefUnwindSafe for IndexConfig
impl Send for IndexConfig
impl Sync for IndexConfig
impl Unpin for IndexConfig
impl UnwindSafe for IndexConfig
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> 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