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)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.