tests/testthat/test_filterDups.R

context("icetea")

test_that("De-duplication results in expected No. of reads", {
    cs <- exampleCSobject()
    cs2 <- filterDuplicates(cs, outdir = ".", keepPairs = FALSE)
    # producs non-empty files?
    filtbams <- sampleInfo(cs2)$filtered_file
    expect_true(all(file.exists(filtbams)))
    # expected No. of reads?
    expect_equal(sampleInfo(cs)$num_filtered, sampleInfo(cs2)$num_filtered)
})

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.