tests/testthat/test-as.data.frame.R

test_that("The function works", {
    data(zikv_align_reduced)
    data(zikv_tree_reduced)
    tr <- addMSA(tree = zikv_tree_reduced,
                 alignment = zikv_align_reduced)
    snp <- SNPsites(tr)
    expect_error(as.data.frame(snp), NA)
    p <- lineagePath(tr)
    fixedSites <- fixationSites(p)
    expect_error(as.data.frame(fixedSites), NA)
})

Try the sitePath package in your browser

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

sitePath documentation built on April 17, 2021, 6:05 p.m.