View source: R/functions-MSnSet.R
featureCV | R Documentation |
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
combineFeatures()
data(msnset)
msnset <- msnset[1:4]
gb <- factor(rep(1:2, each = 2))
featureCV(msnset, gb)
featureCV(msnset, gb, suffix = "2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.