View source: R/dada_phyloseq.R
normalize_prop_pq | R Documentation |
This function implement the method proposed by McKnight et al. 2018 (\Sexpr[results=rd]{tools:::Rd_expr_doi("doi:10.5061/dryad.tn8qs35")})
normalize_prop_pq(physeq, base_log = 2, constante = 10000, digits = 4)
physeq |
(required): a |
base_log |
(integer, default 2) the base for log-transformation. If set to NULL or NA, no log-transformation is compute after normalization. |
constante |
a constante to multiply the otu_table values |
digits |
(default = 2) integer indicating the number of decimal places
to be used (see |
A new phyloseq-class
object with otu_table count
normalize and log transformed (if base_log is an integer)
Adrien Taudière
taxa_sums(data_fungi_mini)
data_f_norm <- normalize_prop_pq(data_fungi_mini)
taxa_sums(data_f_norm)
ggplot(data.frame(
"norm" = scale(taxa_sums(data_f_norm)),
"raw" = scale(taxa_sums(data_fungi_mini)),
"name_otu" = taxa_names(data_f_norm)
)) +
geom_point(aes(x = raw, y = norm))
data_f_norm <- normalize_prop_pq(data_fungi_mini, base_log = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.