tests/testthat/test_demult.R

context("icetea")

test_that("De-multiplexing results in expected No. of reads", {
    cs <- exampleCSobject()
    cs2 <- demultiplexFASTQ(cs, outdir = ".", max_mismatch = 1)
    # producs non-empty files?
    r1 <- sampleInfo(cs2)$demult_R1
    r2 <- sampleInfo(cs2)$demult_R2
    expect_true(all(file.exists(r1)))
    expect_true(all(file.exists(r2)))
    # expected No. of reads?
    expect_equal(sampleInfo(cs)$demult_reads, sampleInfo(cs2)$demult_reads)
})

Try the icetea package in your browser

Any scripts or data that you put into this service are public.

icetea documentation built on Nov. 8, 2020, 6:57 p.m.