Skip to contents

This function calculates the robust summarisation for each feature (protein). Note that the function assumes that the intensities in input e are already log-transformed.

Usage

robustSummary(x, ...)

Arguments

x

A feature by sample matrix containing quantitative data with mandatory colnames and rownames.

...

Additional arguments passed to MASS::rlm().

Value

numeric() vector of length ncol(x) with robust summarised values.

See also

Other Quantitative feature aggregation: aggregate(), colCounts(), medianPolish()

Author

Adriaan Sticker, Sebastian Gibb and Laurent Gatto

Examples

x <- matrix(rnorm(30), nrow = 3)
colnames(x) <- letters[1:10]
rownames(x) <- LETTERS[1:3]
robustSummary(x)
#>          a          b          c          d          e          f          g 
#>  0.1994959 -0.1400639  0.2750197 -0.5072632  0.6196896 -0.3382310  0.1194165 
#>          h          i          j 
#>  0.5792385  0.3102234 -1.1505818