View source: R/normalizeIntensity-functions.R
normalizePQN | R Documentation |
Performs probabilistic quotient normalization (PQN) on a matrix-like object where rows present features and columns represent samples.
normalizePQN(x, ref_samples = NULL, min_frac = 0.5, type = c("median", "mean"))
x |
A matrix-like object. |
ref_samples |
A vector of sample names or column indices specifying
reference samples for the calculation of quotients. Must be a subset of
|
min_frac |
A numeric value between 0 and 1 specifying a minimum proportion of reference samples for features to be included in the calculation of a reference spectrum. |
type |
A method to compute a reference spectrum. Either "median" or "mean". |
For the calculation of quotients, a reference spectrum needs to be obtained from a median or mean spectrum based on all spectra of the study or a subset of the study. Feature intensities are normalized by the median of quotients. See Dieterle et al. (2006) for details.
A matrix of the same dimension as x
containing the normalized
intensities.
Dieterle F, Ross A, Schlotterbeck G, Senn H. Probabilistic quotient normalization as robust method to account for dilution of complex biological mixtures. Application in 1H NMR metabonomics. Anal Chem. 2006 Jul 1;78(13):4281-90. doi: 10.1021/ac051632c. PMID: 16808434.
See normalizeIntensity that provides a SummarizedExperiment-friendly wrapper for this function.
data(faahko_se)
m <- assay(faahko_se, "knn")
normalizePQN(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.