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

Add SparseDC tests

parent 08d72c78
No related branches found
No related tags found
No related merge requests found
context("SparseDC simulation")
test_that("SparseDC simulation output is valid", {
expect_true(validObject(sparseDCSimulate()))
})
context("sparseDCEstimate")
library(scater)
data("sc_example_counts")
test_that("sparseDCEstimate works", {
conditions <- sample(1:2, ncol(sc_example_counts), replace = TRUE)
params <- sparseDCEstimate(sc_example_counts, conditions,
nclusters = 3)
expect_true(validObject(params))
})
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