Learn R Programming

LorMe (version 2.0.1)

Trans_to_phylo: Convert a LorMe object to a phyloseq object

Description

Convert a LorMe object to a phyloseq object

Usage

Trans_to_phylo(taxobj, use_reads = TRUE)

Value

A phyloseq object containing otu_table, sample_data, tax_table and optionally phy_tree (only if taxobj has a tree).

Arguments

taxobj

A LorMe object (usually generated by tax_summary).

use_reads

Logical. FALSE (default) uses relative abundance (Base_percent); TRUE uses raw counts (Base).

Examples

Run this code
if (FALSE) {
data("Two_group")

Two_group_phylo=Trans_to_phylo(taxobj = Two_group,use_reads = F)

plot_bar(Two_group_phylo,fill="Phylum") #Just to show it can be used for analysis
}

Run the code above in your browser using DataLab