Calculates coeffivient of variation for features
This function calculates the column-wise coefficient of variation
(CV), i.e. the ration between the standard deviation and the
mean, for the features in an MSnSet
. The CVs are calculated
for the groups of features defined by groupBy
. For groups
defined by single features, NA
is returned.
featureCV(x, groupBy, na.rm = TRUE, norm = "none", suffix = NULL)
x |
An instance of class |
groupBy |
An object of class |
na.rm |
A |
norm |
One of normalisation methods applied prior to CV
calculation. See |
suffix |
A |
A matrix
of dimensions length(levels(groupBy))
by
ncol(x)
with the respecive CVs. The column names are formed
by pasting CV.
and the sample names of object x
, possibly
suffixed by .suffix
.
Laurent Gatto and Sebastian Gibb
data(msnset) msnset <- msnset[1:4] gb <- factor(rep(1:2, each = 2)) featureCV(msnset, gb) featureCV(msnset, gb, suffix = "2")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.