Skip to content
Snippets Groups Projects
Commit bf373c55 authored by Luke Zappia's avatar Luke Zappia
Browse files

Test that splat output is a valid SCESet

parent 53246012
No related branches found
No related tags found
No related merge requests found
Package: splatter
Type: Package
Title: Simple Simulation of Single-cell RNA Sequencing Data
Version: 0.3.22
Version: 0.3.23
Date: 2016-10-12
Author: Luke Zappia
Authors@R: as.person(c(
......
context("splatter simulations")
test.params <- defaultParams()
test.params <- setParams(test.params, nGenes = 100, groupCells = c(5, 5),
lib.scale = 0)
test_that("splat output is valid", {
expect_true(validObject(splat(test.params, method = "single")))
expect_true(validObject(splat(test.params, method = "groups")))
expect_true(validObject(splat(test.params, method = "paths")))
})
test_that("one group switches to single mode", {
expect_warning(splat(method = "groups"),
expect_warning(splat(test.params, method = "groups", groupCells = c(10)),
"nGroups is 1, switching to single mode")
expect_silent(splat(method = "paths", verbose = FALSE))
expect_silent(splat(test.params, method = "paths", groupCells = c(10),
verbose = FALSE))
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment