tests/testthat/test_MEME.R

test_that("parseMEMEOutput", {
  memeOutput <- file.path(system.file("extdata", package="TFBSTools"),
                          "meme.output")
  ans <- parseMEMEOutput(memeOutput)
  expect_equal(length(ans$motifList), 5L)
  expect_equivalent(lengths(ans$motifList), c(17L, 5L, 2L, 5L, 2L))
  expect_equal(ans$motifEvalues, c(4.1e-09, 2.8e+02, 1.2e+03, 1.4e+03, 1.8e+03))
})

Try the TFBSTools package in your browser

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

TFBSTools documentation built on Nov. 8, 2020, 8:14 p.m.