tests/testthat/test-dnastring2dist.R

data(hiv)

test_that("compareCodons()", {
    myscore <- iupacMatrix()
    myscore[1,1] <- -1
    h <- hiv |> dnastring2dist(score=myscore)
    expect_true(h$sitesUsed[1,1] == 150)
    h <- hiv |> dnastring2dist(model="IUPAC")
    expect_true(h$sitesUsed[1,1] == 273)
    h <- hiv |> dnastring2dist(model="K80")
    expect_true(h$sitesUsed[1,1] == 273)
})
kullrich/distSTRING documentation built on Dec. 21, 2021, 8:42 a.m.