pub struct FilterConfig {
pub minimizers_path: PathBuf,
pub input_path: String,
pub input2_path: Option<String>,
pub output_path: String,
pub output2_path: Option<String>,
pub match_threshold: MatchThreshold,
pub prefix_length: usize,
pub summary_path: Option<PathBuf>,
pub deplete: bool,
pub rename: bool,
pub threads: usize,
}Fields§
§minimizers_path: PathBufMinimizer index file path
input_path: StringPath to input fastx file (or - for stdin)
input2_path: Option<String>Path to optional second paired fastx file (or - for interleaved stdin)
output_path: StringPath to output fastx file (or - for stdout; detects .gz and .zst)
output2_path: Option<String>Path to optional second output fastx file for paired reads (detects .gz and .zst)
match_threshold: MatchThresholdMatch threshold for filtering sequences
prefix_length: usizeConsider only the first N nucleotides per sequence (0 = entire sequence)
summary_path: Option<PathBuf>Path to JSON summary file
deplete: boolDeplete mode (remove sequences WITH matches, original deacon behavior)
rename: boolReplace sequence headers with sequential numbers (1, 2, 3…)
threads: usizeNumber of execution threads (0 = auto)
Implementations§
Source§impl FilterConfig
impl FilterConfig
pub fn new<P: AsRef<Path>>(minimizers_path: P) -> Self
pub fn with_input<S: Into<String>>(self, input_path: S) -> Self
pub fn with_input2<S: Into<String>>(self, input2_path: S) -> Self
pub fn with_output<S: Into<String>>(self, output_path: S) -> Self
pub fn with_output2<S: Into<String>>(self, output2_path: S) -> Self
pub fn with_match_threshold(self, match_threshold: MatchThreshold) -> Self
pub fn with_prefix_length(self, prefix_length: usize) -> Self
pub fn with_summary<P: AsRef<Path>>(self, summary_path: P) -> Self
pub fn with_deplete(self, deplete: bool) -> Self
pub fn with_rename(self, rename: bool) -> Self
pub fn with_threads(self, threads: usize) -> Self
Auto Trait Implementations§
impl Freeze for FilterConfig
impl RefUnwindSafe for FilterConfig
impl Send for FilterConfig
impl Sync for FilterConfig
impl Unpin for FilterConfig
impl UnwindSafe for FilterConfig
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