View source: R/makeTreeSummarizedExperimentFromBiom.R
makeTreeSEFromBiom | R Documentation |
For convenience a few functions are available to convert data from a
‘biom’ file or object into a
TreeSummarizedExperiment
importBIOM(file, ...)
makeTreeSEFromBiom(
obj,
removeTaxaPrefixes = FALSE,
rankFromPrefix = FALSE,
remove.artifacts = FALSE,
...
)
makeTreeSummarizedExperimentFromBiom(obj, ...)
file |
biom file location |
... |
additional arguments
|
obj |
object of type |
removeTaxaPrefixes |
|
rankFromPrefix |
|
remove.artifacts |
|
An object of class
TreeSummarizedExperiment
makeTreeSEFromPhyloseq
makeTreeSEFromDADA2
importQIIME2
importMothur
# Load biom file
library(biomformat)
biom_file <- system.file("extdata", "rich_dense_otu_table.biom",
package = "biomformat")
# Make TreeSE from biom file
tse <- importBIOM(biom_file)
# Make TreeSE from biom object
biom_object <- biomformat::read_biom(biom_file)
tse <- makeTreeSEFromBiom(biom_object)
# Get taxonomyRanks from prefixes and remove prefixes
tse <- importBIOM(biom_file,
rankFromPrefix = TRUE,
removeTaxaPrefixes = TRUE)
# Load another biom file
biom_file <- system.file("extdata/testdata", "Aggregated_humanization2.biom",
package = "mia")
# Clean artifacts from taxonomic data
tse <- importBIOM(biom_file,
remove.artifacts = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.