pub fn parse_quality_sample_range(s: &str) -> Result<usize, String>Expand description
Validates enrich --quality-sample.
Zero is ADMITTED and is not a degenerate case: status.rs treats
sample_n == 0 as “skip the quality sample entirely”, so the lower bound of
the shared parse_k_range would reject a documented, meaningful value.
The upper bound guards memory rather than the engine.
quality_sample::sample_entity_description_quality sizes a Vec<f64> from
this number before a single row is read, so an absurd value aborted the
process on allocation instead of returning the exit code this crate reserves
for memory pressure — the same failure related --limit had under
GAP-SG-213, in a field that gate could not see because it is declared as
Option<usize> rather than usize.