pub struct MapperOptions {
pub error_rate: f32,
pub strata_rate: f32,
pub strata_count: Option<u32>,
pub sensitivity: Sensitivity,
pub threads: usize,
pub secondary_mode: SecondaryMode,
pub align_secondary: bool,
pub verify_matches: bool,
pub verbose: u32,
pub library_length: u32,
pub library_dev: u32,
}Expand description
Configuration options for the YARA mapper.
Use MapperOptions::default() for sensible defaults matching YARA’s
command-line defaults, then override individual fields as needed.
Fields§
§error_rate: f32Maximum error rate as a fraction of read length (default 0.05 = 5%).
strata_rate: f32Strata rate — fraction of additional errors beyond the best alignment to report (default 0.00).
strata_count: Option<u32>Fixed strata count (alternative to strata_rate). Set to None to
use strata_rate instead.
sensitivity: SensitivitySensitivity level (default High).
threads: usizeNumber of threads for OpenMP parallelism (default: available cores).
secondary_mode: SecondaryModeHow to report secondary alignments (default Tag).
align_secondary: boolWhether to align secondary matches (compute CIGAR). Only meaningful
when secondary_mode is Tag or Record.
verify_matches: boolWhether to verify mate-pair matches (paired-end rescue). Default true.
verbose: u32Verbosity level (0 = silent, 1 = stats, 2 = detailed).
library_length: u32Expected library (insert) length. 0 = auto-estimate from the data.
library_dev: u32Expected library standard deviation. 0 = auto-estimate.
Trait Implementations§
Source§impl Clone for MapperOptions
impl Clone for MapperOptions
Source§fn clone(&self) -> MapperOptions
fn clone(&self) -> MapperOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more