INNER CODE UNIT · Rust
test_paired_end_retention_stream
mbhall88/rasusa · src/alignment/mod.rs:387
fn test_paired_end_retention_stream() {
let input_path = PathBuf::from("tests/cases/test.paired.bam");
let target_depth: u32 = 2;
let output = NamedTempFile::new().unwrap();
// subsample to 2x depth
let mut align = Alignment {
aln: input_path,
output: Some(output.path().to_path_buf()),
output_format: Some(Format::Bam),
coverage: target_depth,
seed: Some(2109),
strategy: SubsamplingStrategy::Stream,
swap_distance: 5,
step_size: 100,
batch_size: 1000,
threads: NonZeroUsize::new(1).unwrap(),