context("getGroupGO")
library(org.Hs.eg.db)
data(CeTFdemo)
genes <- unique(c(as.character(NetworkData(CeTFdemo, "network1")[["gene1"]]),
as.character(NetworkData(CeTFdemo, "network1")[["gene2"]])))
test_that('getGroupGO throws an error when there are no keyType choice', {
expect_error(getGroupGO(genes = genes,
ont = 'BP',
annoPkg = org.Hs.eg.db))
})
test_that('getGroupGO throws an error when there are no annoPkg choice', {
expect_error(getGroupGO(genes = genes,
ont = 'BP',
keyType = 'ENSEMBL'))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.