tests/testthat/test-CRAN-features.R

library(testthat)
context("feature computation")
library(PeakSegJoint)
data(H3K27ac.TDH.MMM4)

profile.list <- ProfileList(H3K27ac.TDH.MMM4)
profile.list$empty <-
  data.frame(chromStart=integer(),
             chromEnd=integer(),
             count=integer())

test_that("feature computation works for sample with no coverage rows", {
  fmat <- featureMatrixJoint(profile.list)
  expect_identical(rownames(fmat), names(profile.list))
})

Try the PeakSegJoint package in your browser

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

PeakSegJoint documentation built on April 25, 2023, 9:12 a.m.