tests/testthat/test-multi_cor_heat.R

context("multi_cor_heat")

test_that("non vdiffr multiple heatmap", {
  pheno2.num <- apply(pheno2, 2, FUN=\(xx) as.numeric(as.factor(xx))) |>
    data.frame()
  pheno2.num[1, 1] <- NA
  rownames(pheno2.num) <- rownames(pheno2)
  mc.res <- ezlimma::multi_cor(M, pheno2.num)
  expect_silent(mch <- multi_cor_heat(tab=mc.res, object = M, pheno.tab = pheno2.num, p.thresh = 0.1, plot=FALSE))
  expect_true("gene1" %in% rownames(mch$grp$mat))
})
jdreyf/ezlimmaplot documentation built on Feb. 8, 2025, 2:25 a.m.