tests/testthat/test-gaps_critical_edges.R

skip_if_no_sma <- function() {
  if (!reticulate::py_module_available("sma")) {
    skip("sma not available for testing")
  }
}
test_that("error is given for gap test in open motif", {
  skip_if_no_sma()
  expect_error(identify_gaps(ml_net, motif = "1,2[I.C]"))
})
test_that("error is given for gap test in closed motif", {
  skip_if_no_sma()
  expect_error(critical_dyads(ml_net, motif = "1,2[II.C]"))
})

Try the motifr package in your browser

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

motifr documentation built on Dec. 15, 2020, 5:23 p.m.