tests/testthat/test-enrichmentGraph.R

test_that("enrichment network is created", {
  enrich <- clusterProfilerGSEA()
  expect_no_error(p <- enrichmentNetwork(enrich@result))

  enrich <- clusterProfilerORA()
  suppressWarnings(expect_warning(p <- enrichmentNetwork(enrich@result, cluster = 'h', colorType = 'pval', drawEllipses = TRUE)))

  enrich <- customEnrichment()
  expect_no_error(p <- enrichmentNetwork(enrich, colorBy = 'nes', nodeSize = 'size'))
})

Try the aPEAR package in your browser

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

aPEAR documentation built on July 9, 2023, 6:16 p.m.