tests/testthat/test-zFactor.R

context("Test calculation of z factor")

test_that("Correct calculation of z factor", {
  res <- zFactor(exampleDat, negativeCon = "scrambled control si1",
    positiveCon = "PLK1 si1")
  expect_equal(as.numeric(res[1, ]), c(-10.63422, -41.36317), tolerance = 1e-3)
})

Try the synlet package in your browser

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

synlet documentation built on Nov. 8, 2020, 6:48 p.m.