context("sparseDCEstimate")
library(scuttle)
set.seed(1)
counts <- counts(mockSCE())
test_that("sparseDCEstimate works", {
skip_if_not_installed("SparseDC")
set.seed(1)
conditions <- sample(1:2, ncol(counts), replace = TRUE)
params <- sparseDCEstimate(counts, conditions, nclusters = 3)
expect_true(validObject(params))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.