tests/testthat/test-gm_clust.R

library("GSEAmining")
data(genesets_sel)

test_that("Test that gm_clust produces an hclust object", {

  gs.filt <- gm_filter(genesets_sel,
                       p.adj = 0.05,
                       neg_NES = 2.6,
                       pos_NES = 2)
  gs.cl <- gm_clust(gs.filt)

  expect_equal(class(gs.cl), 'hclust')
  expect_equal(length(gs.cl), 7)

})

Try the GSEAmining package in your browser

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

GSEAmining documentation built on Nov. 8, 2020, 5:52 p.m.