tests/testthat/test_motif_rc.R

context("motif_rc()")

test_that("motif reverse complement works", {

  m1 <- create_motif("AAAAA")
  m2 <- motif_rc(m1)

  expect_equal(m2@consensus, "TTTTT")

})
bjmt/universalmotif documentation built on Sept. 15, 2024, 8:39 p.m.