tests/testthat/test_switch_alph.R

context("switch_alph()")

test_that("motif alphabet switching works", {

  m1 <- create_motif()
  m2 <- switch_alph(m1)

  expect_s4_class(m2, "universalmotif")
  expect_equal(m2@alphabet, "RNA")

})

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.