clr_trans: The centered log-ratio transformation

View source: R/clr_trans.R

clr_transR Documentation

The centered log-ratio transformation

Description

The centered log-ratio transformation

Usage

clr_trans(eBay.comps)

Arguments

eBay.comps

the estimated microbial compositions by empirical Bayes.

Value

Returns the clr transfromation of microbial compositions.

Examples

library(phyloseq)
otu_tab <- t(combo.phyloseq.obj@otu_table@.Data)
tree <- phy_tree(combo.phyloseq.obj)
eBay.comps <- eBay_comps(otu_tab,prior = "Dirichlet", tree=NULL)
eBay.comps.clr <- clr_trans(eBay.comps)

liudoubletian/phyloMDA documentation built on April 28, 2022, 6:51 p.m.