View source: R/phyloseq_transform.R
phyloseq_transform_css | R Documentation |
Cumulative sum scaling (CSS) normalization of OTU abundance table.
phyloseq_transform_css(physeq, norm = TRUE, log = TRUE, ...)
physeq |
A phyloseq-class object |
norm |
Logical, return normalized counts |
log |
Logical, apply a logarithmic transform (log2) to the normalized count data |
... |
Additional arguments will be passed to |
Median scaling factor across samples will be used as default.
Phyloseq object with transformed counts in OTU table.
Paulson et al. Nature Methods 10, 1200–1202 (2013) doi:10.1038/nmeth.2658. http://www.nature.com/nmeth/journal/v10/n12/full/nmeth.2658.html
phyloseq_transform_vst_blind
, phyloseq_transform_rlog_blind
, rlog
, varianceStabilizingTransformation
data("GlobalPatterns")
gp_tr <- phyloseq_transform_css(GlobalPatterns)
head(otu_table(gp_tr))
# Ordination on CSS-transformed data
plot_ordination(physeq = gp_tr, ordination = ordinate(gp_tr, method = "PCoA", distance = "bray"), color = "SampleType")
# Ordination on raw data
plot_ordination(physeq = GlobalPatterns, ordination = ordinate(GlobalPatterns, method = "PCoA", distance = "bray"), color = "SampleType")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.