View source: R/convertFromBIOM.R
importBIOM | R Documentation |
TreeSummarizedExperiment
object to/from ‘BIOM’
resultsFor convenience, a few functions are available to convert BIOM, DADA2 and
phyloseq objects to
TreeSummarizedExperiment
objects, and
TreeSummarizedExperiment
objects to phyloseq objects.
importBIOM(file, ...)
convertFromBIOM(
x,
prefix.rm = removeTaxaPrefixes,
removeTaxaPrefixes = FALSE,
rank.from.prefix = rankFromPrefix,
rankFromPrefix = FALSE,
artifact.rm = remove.artifacts,
remove.artifacts = FALSE,
...
)
convertToBIOM(x, assay.type = "counts", ...)
## S4 method for signature 'SummarizedExperiment'
convertToBIOM(x, assay.type = "counts", ...)
file |
BIOM file location |
... |
Additional arguments. Not used currently. |
x |
|
prefix.rm |
|
removeTaxaPrefixes |
Deprecated. Use |
rank.from.prefix |
|
rankFromPrefix |
Deprecated.Use |
artifact.rm |
|
remove.artifacts |
Deprecated. Use |
assay.type |
|
convertFromBIOM
coerces a biom
object to a
TreeSummarizedExperiment
object.
convertToBIOM
coerces a
TreeSummarizedExperiment
object to a biom
object.
importBIOM
loads a BIOM file and creates a
TreeSummarizedExperiment
object from the BIOM object contained in the loaded file.
convertFromBIOM
returns an object of class
TreeSummarizedExperiment
importBIOM
returns an object of class
TreeSummarizedExperiment
importQIIME2
importMothur
importMetaPhlAn
convertFromPhyloseq
convertFromBIOM
convertFromDADA2
importQIIME2
importMothur
importHUMAnN
# Convert BIOM results to a TreeSE
# Load biom file
library(biomformat)
biom_file <- system.file("extdata", "rich_dense_otu_table.biom",
package = "biomformat")
# Make TreeSE from BIOM object
biom_object <- biomformat::read_biom(biom_file)
tse <- convertFromBIOM(biom_object)
# Convert TreeSE object to BIOM
biom <- convertToBIOM(tse)
# 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)
# Get taxonomyRanks from prefixes and remove prefixes
tse <- importBIOM(
biom_file, rank.from.prefix = TRUE, prefix.rm = TRUE)
# Load another biom file
biom_file <- system.file(
"extdata", "Aggregated_humanization2.biom", package = "mia")
# Clean artifacts from taxonomic data
tse <- importBIOM(biom_file, artifact.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.