tests/testthat/test_denoised.R

context("DenoisedCounts/Rates")

test_that("DenoisedCounts and Rates require matching dimensions", {
  data <- makeExampleBASiCS_Data()
  chain <- run_MCMC(
    data,
    N = 10,
    Thin = 2,
    Burn = 4,
    Regression = FALSE,
    WithSpikes = TRUE
  )
  expect_error(
    BASiCS_DenoisedCounts(data, ChainSC),
    "Chain and Data are different dimensions"
  )
  expect_error(
    BASiCS_DenoisedRates(data, ChainSC),
    "Chain and Data are different dimensions"
  )
})

Try the BASiCS package in your browser

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

BASiCS documentation built on April 16, 2021, 6 p.m.