View source: R/calculate_mean_sd_trends.R
calculate_mean_sd_trends | R Documentation |
Calculates the mean and standard deviation of each row (peptide) and adds them as new columns. Assumes that the condition names are the names in the design matrix.
calculate_mean_sd_trends(data, design_matrix)
data |
A |
design_matrix |
A design matrix for the data (see example). |
A tibble
or data.frame
with the mean and sd vectors
# Setup model matrix
design <- model.matrix(~ 0 + factor(rep(1:2, each = 3)))
colnames(design) <- paste0("ng", c(50, 100))
yeast %>%
# Normalize data
psrn("identifier") %>%
# Get mean-variance trends
calculate_mean_sd_trends(design)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.