tests/testthat/test-method.locked.R

context("Nearest neighbour methods for locked nucleic acids effect are OK")

test_that("tests for method.locked - DNA/DNA", {
  expect_equal(melting(sequence = "CCATTLGCTACC",
                       nucleic.acid.conc = 0.0001,
                       hybridisation.type = "dnadna",
                       Na.conc = 1)$Results$`Melting temperature (C)`,
               63.61426, tolerance = 1e-5, label = "DNA/DNA default")

  expect_equal(melting(sequence = "CCATTLGCTACC",
                       nucleic.acid.conc = 0.0001,
                       hybridisation.type = "dnadna",
                       Na.conc = 1,
                       method.locked = "mct04")$Results$`Melting temperature (C)`,
               63.61426, tolerance = 1e-5, label = "mct04")
})

Try the rmelting package in your browser

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

rmelting documentation built on Nov. 8, 2020, 5:19 p.m.