This function generates a pseudo-reference by taking the geometric mean of
each peptide across all samples. Each peptide in each sample is then divided
by the pseudo-reference. Then, the median ratio of all ratios is used as an
estimate to use for normalizing differences in loading concentration. All
features in each sample is then divided by their corresponding estimate.
All estimates are based on features without missing values.
For details see anders2010differential;textualbaldur.
data frame with normalized values if load_info=FALSE, if it is TRUE
then it returns a list with two tibbles. One tibble containing the
normalized data and one containing the loading info as well as the
estimated normalization factors.
Arguments
data
data.frame
id_col
a character for the name of the column containing the
name of the features in data (e.g., peptides, proteins, etc.)
log
boolean variable indicating if the data should be log transformed
after normalization
load_info
logical; should the load information be output?
target
target columns to normalize, supports
tidyselect-package syntax. By default, all numerical
columns will be used in the normalization if not specified.