inst/unitTests/test_agg.R

test_agg <- function() {
    data(mpraSetExample)
    data(mpraSetAggExample)
    agg_manual <- getRNA(mpraSetExample, aggregate = TRUE)
    agg_pre <- getRNA(mpraSetAggExample)
    stopifnot(identical(dim(agg_manual), dim(agg_pre)))
    agg_pre <- agg_pre[rownames(agg_manual),]
    colnames(agg_pre) <- gsub("cond_sample_", "", colnames(agg_pre))
    checkEquals(agg_manual, agg_pre)
}

test_data <- function() {
    data(mpraSetExample)
    checkTrue(validObject(mpraSetExample))
}

Try the mpra package in your browser

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

mpra documentation built on Feb. 28, 2021, 2:01 a.m.