swh:1:snp:0c004a03453a29b80f921a24433f7e780b9ceb53
Tip revision: a372342eccfe3d36bceee43e38b2db79dce05c8a authored by vobencha on 30 October 2018, 15:42:08 UTC
bump x.y.z versions to even y prior to creation of RELEASE_3_8 branch
bump x.y.z versions to even y prior to creation of RELEASE_3_8 branch
Tip revision: a372342
testgseaPlot.R
context("GSEA plot")
library(jsonlite)
library(Biobase)
test_that("gseaPlot works", {
load(file = system.file("testdata/GSE27112-GPL6103.rda", package="phantasus"))
set.seed(42)
fData(es)$t <- rnorm(nrow(es))
f <- fromJSON(gseaPlot(es, rankBy = "t", selectedGenes = sample.int(nrow(es), 10),
width=6, height=4))
expect_true(file.exists(f))
f <- fromJSON(gseaPlot(es, rankBy = "t", selectedGenes = sample.int(nrow(es), 10),
width=6, height=4, vertical = TRUE))
expect_true(file.exists(f))
f <- fromJSON(gseaPlot(es, rankBy = "t", selectedGenes = sample.int(nrow(es), 10),
width=6, height=4, vertical = TRUE,
addHeatmap = TRUE, showAnnotation = "time"))
expect_true(file.exists(f))
f <- fromJSON(gseaPlot(es, rankBy = "t", selectedGenes = sample.int(nrow(es), 10),
width=6, height=4, vertical = FALSE,
addHeatmap = TRUE, showAnnotation = "time"))
expect_true(file.exists(f))
f <- fromJSON(gseaPlot(es, rankBy = "t", selectedGenes = sample.int(nrow(es), 10),
width=6, height=4, vertical = FALSE,
addHeatmap = TRUE))
expect_true(file.exists(f))
})