context('columnContribution function')
test_that('Column Contribution ratio is correct', {
col <- colnames(dat)[1]
res <- ActivePathways(dat, gmt, significant = 1)
res.just.column <- ActivePathways(dat[, 1, drop = FALSE], gmt, significant = 1)
expect_equal(res.just.column$overlap, res[[paste0("Genes_", col)]])
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.