Normalize SummarizedExperiment object using single normalization methods or specified combinations of normalization methods
Source:R/NormalizationMethods.R
normalize_se.Rd
Normalize SummarizedExperiment object using single normalization methods or specified combinations of normalization methods
Usage
normalize_se(
se,
methods,
combination_pattern = "_on_",
on_raw = NULL,
gamma.0 = 0.1,
reduce_correlation_by = 1,
NormicsVSN_quantile = 0.8,
top_x = 50,
VSN_quantile = 0.9
)
Arguments
- se
SummarizedExperiment containing all necessary information of the proteomics data set
- methods
Vector of normalization methods to apply for normalizing the proteomics data of the SummarizedExperiment object (identifier of normalization methods can be retrieved using get_normalization_methods())
- combination_pattern
String specifying how normalization methods are combined. For instance, methods = c("IRS", "Median_on_IRS"), combination_pattern = "_on_".
- on_raw
Logical indicating if the normalization should be performed on the raw data or on log2-transformed data. If on_raw = NULL(default), the normalization is performed on the default method specific on_raw setting (suggestion based on publications).
- gamma.0
Numeric representing the exponent of the weighted density of RobNorm normalization. When the sample size is small, the fitted population of some proteins could be locally trapped such that the variance of those proteins was very small under a large gamma. To avoid this, a small gamma is recommended. When sample size smaller than 40, then set gamma to 0.5 or 0.1.
- reduce_correlation_by
If the data is too big for the computation of the params, increase this parameter by 2,3,4.... The whole data will still be normalized, but the params are calculated on every second row etc.
- NormicsVSN_quantile
The quantile that is used for the resistant least trimmed sum of squares regression. A value of 0.8 means focusing on the central 80% of the data, reducing the influence of outliers.
- top_x
Number of reference proteins extracted for the calculation of parameters
- VSN_quantile
Numeric of length 1. The quantile that is used for the resistant least trimmed sum of squares regression (see vsn2 lts.quantile)
Examples
data(tuberculosis_TMT_se)
tuberculosis_TMT_se <- normalize_se(tuberculosis_TMT_se,
methods = c("IRS_on_GlobalMedian", "IRS_on_Median",
"limBE_on_NormicsVSN"), on_raw = NULL,
combination_pattern = "_on_", gamma.0 = 0.1,
reduce_correlation_by = 1, NormicsVSN_quantile = 0.8, top_x = 50,
VSN_quantile = 0.9)
#> GlobalMedian normalization not yet performed. Single GlobalMedian normalization performed now.
#> GlobalMedian completed.
#> IRS normalization performed on GlobalMedian-normalized data completed.
#> IRS normalization performed on Median-normalized data completed.
#> NormicsVSN normalization not yet performed. Single NormicsVSN normalization performed now.
#> NormicsVSN completed.
#> Warning: Partial NA coefficients for 114 probe(s)
#> limBE normalization performed on NormicsVSN-normalized data completed.