norm_tab,matrix,character-method {mina} | R Documentation |
Normalize the quantitative matrix.
## S4 method for signature 'matrix,character' norm_tab(x, method, depth = 1000, replace = TRUE, multi = 1, ...)
x |
A quantitative matrix with samples in columns and compositions in rows. |
method |
The method used for normalization. |
depth |
The depth for rarefying, 1000 by default. |
replace |
Whether to sample with replacement ( |
multi |
Rarefy the table for multiple times, 1 by default, indicate the times of rarefaction want to be repeated, only validate for rarefaction. |
... |
Additional parameters. |
The normalized quantitative matrix.
x_norm Normalized matrix of the quantitative table.
data(maize_asv2) maize_asv_norm <- norm_tab(maize_asv2, method = "total") maize_asv_norm <- norm_tab(maize_asv2, method = "raref", depth = 1000, replace = TRUE, multi = 3)