tests/testthat/test_shuffle_motifs.R

context("shuffle_motifs()")

test_that("motif shuffling works", {

  m1 <- create_motif("ATATCGGATACGGCTGTC")
  m2 <- shuffle_motifs(m1)

  expect_s4_class(m2, "universalmotif")
  expect_true(m1@consensus != m2@consensus)

})

Try the universalmotif package in your browser

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

universalmotif documentation built on April 8, 2021, 6 p.m.