importMothur | R Documentation |
TreeSummarizedExperiment
This method creates a TreeSummarizedExperiment
object from Mothur
files provided as input.
importMothur(
assay.file = sharedFile,
sharedFile,
taxonomyFile = NULL,
row.file = taxonomyFile,
designFile = NULL,
col.file = designFile
)
assay.file |
|
sharedFile |
Deprecated. Use |
taxonomyFile |
Deprecated. Use |
row.file |
|
designFile |
Deprecated. Use |
col.file |
|
Results exported from Mothur can be imported as a
SummarizedExperiment
using importMothur
. Except for the
assay.file
, the other data types, row.file
, and
col.file
, are optional, but are highly encouraged to be provided.
A
TreeSummarizedExperiment
object
https://mothur.org/ https://mothur.org/wiki/shared_file/ https://mothur.org/wiki/taxonomy_file/ https://mothur.org/wiki/constaxonomy_file/ https://mothur.org/wiki/design_file/
convertFromPhyloseq
convertFromBIOM
convertFromDADA2
importQIIME2
# Abundance table
counts <- system.file("extdata", "mothur_example.shared", package = "mia")
# Taxa table (in "cons.taxonomy" or "taxonomy" format)
taxa <- system.file("extdata", "mothur_example.cons.taxonomy", package = "mia")
#taxa <- system.file("extdata", "mothur_example.taxonomy", package = "mia")
# Sample meta data
meta <- system.file("extdata", "mothur_example.design", package = "mia")
# Creates se object from files
se <- importMothur(assay.file = counts, row.file = taxa, col.file = meta)
# Convert SE to TreeSE
tse <- as(se, "TreeSummarizedExperiment")
tse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.