makeTreeSummarizedExperimentFromPhyloseq {mia} | R Documentation

## Coerce a `phyloseq` object to a `TreeSummarizedExperiment`

### Description

`makeTreeSummarizedExperimentFromPhyloseq` converts `phyloseq` objects into `TreeSummarizedExperiment` objects.

### Usage

    makeTreeSummarizedExperimentFromPhyloseq(obj)

### Arguments

`obj` | a `phyloseq` object

### Details

All data stored in a `phyloseq` object is transfered.

### Value

An object of class `TreeSummarizedExperiment`

### See Also

`makeSummarizedExperimentFromBiom` `makeTreeSummarizedExperimentFromDADA2` `loadFromQIIME2` `loadFromMothur`

### Examples

    if (requireNamespace("phyloseq")) {
        data(GlobalPatterns, package="phyloseq")
        makeTreeSummarizedExperimentFromPhyloseq(GlobalPatterns)
        data(enterotype, package="phyloseq")
        makeTreeSummarizedExperimentFromPhyloseq(enterotype)
        data(esophagus, package="phyloseq")
        makeTreeSummarizedExperimentFromPhyloseq(esophagus)
    }

[Package mia version 1.2.7 Index]