tests/testthat/test_convert.R

context("dataframe to treedata")
test_that("dataframe to treedata",{
    library(phyloseq)
    dir <- system.file("extdata", package="phyloseq")
    richph <- import_biom(file.path(dir,"rich_dense_otu_table.biom"))
    taxda <- tax_table(richph)
    taxda <- MicrobiotaProcess:::fillNAtax(taxda)
    treeda <- convert_to_treedata(taxda)
    expect_true(is(treeda, "treedata"))
})

Try the MicrobiotaProcess package in your browser

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

MicrobiotaProcess documentation built on April 18, 2021, 6 p.m.