tests/testthat/test_coverage.R

context("Testing motif coverage")

f <- system.file("files/meme.xml", package = "motiftools")
x <- readMEME(f)
cov <- getMotifCoverage(x)

test_that("getMotifCoverage works as expected", {
  expect_is(cov, "numeric")
  expect_equal(length(cov), 4)
})

totcov <- getMotifTotalCoverage(x)

test_that("getMotifTotalCoverage works as expected", {
  expect_is(totcov, "numeric")
  expect_equal(length(totcov), 1)
})
ddiez/motiftools documentation built on May 8, 2020, 11:38 a.m.