tests/testthat/test-sparseDCEstimate.R

context("sparseDCEstimate")

library(scater)
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))
})

Try the splatter package in your browser

Any scripts or data that you put into this service are public.

splatter documentation built on Dec. 3, 2020, 2:01 a.m.