View source: R/consensusCalculations.R
consensusCalculation | R Documentation |
This function calculates a single consensus from given individual data, optionally first calibrating the individual data to make them comparable.
consensusCalculation(
individualData,
consensusOptions,
useBlocks = NULL,
randomSeed = NULL,
saveCalibratedIndividualData = FALSE,
calibratedIndividualDataFilePattern = "calibratedIndividualData-%a-Set%s-Block%b.RData",
# Return options: the data can be either saved or returned but not both.
saveConsensusData = NULL,
consensusDataFileNames = "consensusData-%a-Block%b.RData",
getCalibrationSamples= FALSE,
# Internal handling of data
useDiskCache = NULL, chunkSize = NULL,
cacheDir = ".",
cacheBase = ".blockConsModsCache",
# Behaviour
collectGarbage = FALSE,
verbose = 1, indent = 0)
individualData |
Individual data from which the consensus is to be calculated. It can be either a list or a
|
consensusOptions |
A list of class |
useBlocks |
When |
randomSeed |
If non- |
saveCalibratedIndividualData |
Logical: should calibrated individual data be saved? |
calibratedIndividualDataFilePattern |
Pattern from which file names for saving calibrated individual data are determined. The conversions
|
saveConsensusData |
Logical: should final consensus be saved ( |
consensusDataFileNames |
Pattern from which file names for saving the final consensus are determined. The conversions
|
getCalibrationSamples |
When calibration method in the |
useDiskCache |
Logical: should disk cache be used for consensus calculations? The disk cache can be used to sture chunks of
calibrated data that are small enough to fit one chunk from each set into memory (blocks may be small enough
to fit one block of one set into memory, but not small enogh to fit one block from all sets in a consensus
calculation into memory at the same time). Using disk cache is slower but lessens the memry footprint of
the calculation.
As a general guide, if individual data are split into blocks, we
recommend setting this argument to |
chunkSize |
Integer giving the chunk size. If left |
cacheDir |
Directory in which to save cache files. The files are deleted on normal exit but persist if the function terminates abnormally. |
cacheBase |
Base for the file names of cache files. |
collectGarbage |
Logical: should garbage collection be forced after each major calculation? |
verbose |
Integer level of verbosity of diagnostic messages. Zero means silent, higher values make the output progressively more and more verbose. |
indent |
Indentation for diagnostic messages. Zero means no indentation, each unit adds two spaces. |
Consensus is defined as the element-wise (also known as "parallel") quantile of the individual data at
probability given by the consensusQuantile
element of consensusOptions
. Depending on the value
of component calibration
of consensusOptions
, the individual data are first calibrated. For
consensusOptions$calibration="full quantile"
, the individual data are quantile normalized using
normalize.quantiles
. For
consensusOptions$calibration="single quantile"
, the individual data are raised to a power such that
the quantiles at probability consensusOptions$calibrationQuantile
are the same.
For consensusOptions$calibration="none"
, the individual data are not calibrated.
A list with the following components:
consensusData |
A |
nSets |
Number of input data sets. |
saveCalibratedIndividualData |
Copy of the input |
calibratedIndividualData |
If input |
calibrationSamples |
If |
originCount |
A vector of length |
Peter Langfelder
Consensus network analysis was originally described in Langfelder P, Horvath S. Eigengene networks for studying the relationships between co-expression modules. BMC Systems Biology 2007, 1:54 https://bmcsystbiol.biomedcentral.com/articles/10.1186/1752-0509-1-54
normalize.quantiles
for quantile normalization.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.