tests/testthat/test_motif_info.R

context("motif_info")

test_that("All positions are included",{
  expect_equal(length(intersect(unlist(lapply(1:44, function(x) motif_info(x, link = FALSE))), 1:148)), 148)
})

test_that("All positions occur exactly once",{
  expect_equal(all(table(unlist(lapply(1:44, function(x) motif_info(x, link = FALSE)))) == 1), TRUE)
})

Try the bmotif package in your browser

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

bmotif documentation built on Sept. 13, 2020, 5:10 p.m.