View source: R/total.peak.area.R
total.peak.area | R Documentation |
This function estimates total peak abundance|area for numeric data in a matrix, for (1) all features and (2) all features with complete data.
total.peak.area(wdata, feature_names_2_exclude = NA, ztransform = TRUE)
wdata |
the metabolite data matrix. samples in row, metabolites in columns |
feature_names_2_exclude |
A vector of feature|metabolite names to exclude from the tree building, independent feature identification process. |
ztransform |
should the feature data be z-transformed and absolute value minimum, mean shifted prior to summing the feature values. TRUE or FALSE. |
a data frame of estimates for (1) total peak abundance and (2) total peak abundance at complete features for each samples
set.seed(1110) ex_data = sapply(1:5, function(x){ rnorm(10, 40, 5) }) rownames(ex_data) = paste0("ind", 1:nrow(ex_data)) ex_data[ sample(1:50, 4) ] = NA tpa_est = total.peak.area(ex_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.