INNER CODE UNIT · Rust
run_aln_get_reads_result
mbhall88/rasusa · src/alignment/mod.rs:220
fn run_aln_get_reads_result(
input: &Path,
seed: Option<u64>,
strategy: SubsamplingStrategy,
) -> Vec<String> {
run_aln_get_reads_result_with_threads(input, seed, strategy, NonZeroUsize::new(1).unwrap())
}
// as above, but with a configurable thread count - used to check that `--threads` doesn't
// change which records get selected, only how the BAM is (de)compressed.
fn run_aln_get_reads_result_with_threads(
input: &Path,
seed: Option<u64>,
strategy: SubsamplingStrategy,
threads: NonZeroUsize,
) -> Vec<String> {
let target_depth = 3;
let out = NamedTempFile::new().unwrap();