INNER CODE UNIT · Rust

test_reproducibility_stream_same_seed

mbhall88/rasusa · src/alignment/mod.rs:270

    fn test_reproducibility_stream_same_seed() {
        let input_path = Path::new("tests/cases/test.bam");
        let seed = Some(2109);

        let names1 = run_aln_get_reads_result(input_path, seed, SubsamplingStrategy::Stream);
        let names2 = run_aln_get_reads_result(input_path, seed, SubsamplingStrategy::Stream);

        // comapre the length and the read names
        assert_eq!(names1.len(), names2.len(), "Different read count");
        assert_eq!(names1, names2, "Different reads selected")
    }

    #[test]
    fn threads_4_and_threads_1_yield_identical_decoded_records_stream() {
        let input_path = Path::new("tests/cases/test.bam");
        let seed = Some(2109);

        let mut names1 = run_aln_get_reads_result_with_threads(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…