getCV function

getCV

getCV

Please refer to the file /inst/doc/readme.pdf.

getCV(data, cvNorm = TRUE)

Arguments

  • data: Please refer to the file /inst/doc/readme.pdf.
  • cvNorm: Please refer to the file /inst/doc/readme.pdf.

Examples

##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. ## The function is currently defined as function (data, cvNorm = TRUE) { if (!is.matrix(data)) data <- as.matrix(data) if (cvNorm) { rawCV <- apply(data, 1, function(x) { sd(log2(x[x != 0]))/mean(log2(x[x != 0])) }) (rawCV - min(rawCV))/(max(rawCV) - min(rawCV)) } else { apply(data, 1, function(x) { sd(x)/mean(x) }) } }
  • Maintainer: Shan Gao
  • License: Artistic-2.0
  • Last published: 2024-03-20

Useful links