tests/testthat/test-outliers.R

context("outliers")

test_that("get_outlier_cutoff works", {
  plate <- new_plate(sample_data_dir())
  
  expect_identical(
    plate %>% get_outlier_cutoff,
    list(HEX = 7510, FAM = 9671.5)
  )

  expect_identical(
    plate %>% subset("A05") %>% get_outlier_cutoff,
    list(HEX = 7314, FAM = 9647)
  )
})
daattali/ddpcr documentation built on March 27, 2024, 6:50 a.m.