precisionPathwaysTrain | R Documentation |
Precision pathways allows the evaluation of various permutations of multiomics or multiview data. Samples are predicted by a particular assay if they were consistently predicted as a particular class during cross-validation. Otherwise, they are passed onto subsequent assays/tiers for prediction. Balanced accuracy is used to evaluate overall prediction performance and sample-specific accuracy for individual-level evaluation.
## S4 method for signature 'MultiAssayExperimentOrList'
precisionPathwaysTrain(
measurements,
class,
useFeatures = NULL,
maxMissingProp = 0,
topNvariance = NULL,
fixedAssays = "clinical",
confidenceCutoff = 0.8,
minAssaySamples = 10,
nFeatures = 20,
selectionMethod = setNames(c("none", rep("t-test", length(measurements))),
c("clinical", names(measurements))),
classifier = setNames(c("elasticNetGLM", rep("randomForest", length(measurements))),
c("clinical", names(measurements))),
nFolds = 5,
nRepeats = 20,
nCores = 1
)
## S4 method for signature 'PrecisionPathways,MultiAssayExperimentOrList'
precisionPathwaysPredict(pathways, measurements, class)
measurements |
Either a |
class |
Same as |
useFeatures |
Default: |
maxMissingProp |
Default: 0.0. A proportion less than 1 which is the maximum tolerated proportion of missingness for a feature to be retained for modelling. |
topNvariance |
Default: NULL. An integer number of most variable features per assay to subset to. Assays with less features won't be reduced in size. |
fixedAssays |
A character vector of assay names specifying any assays which must be at the beginning of the pathway. |
confidenceCutoff |
The minimum confidence of predictions for a sample to be predicted by a particular issue
. If a sample was predicted to belong to a particular class a proportion |
minAssaySamples |
An integer specifying the minimum number of samples a tier may have. If a subsequent tier would have less than this number of samples, the samples are incorporated into the current tier. |
nFeatures |
Default: 20. The number of features to consider during feature selection, if feature selection is done. |
selectionMethod |
A named character vector of feature selection methods to use for the assays, one for each. The names must correspond to names of |
classifier |
A named character vector of modelling methods to use for the assays, one for each. The names must correspond to names of |
nFolds |
A numeric specifying the number of folds to use for cross-validation. |
nRepeats |
A numeric specifying the the number of repeats or permutations to use for cross-validation. |
nCores |
A numeric specifying the number of cores used if the user wants to use parallelisation. |
pathways |
A set of pathways created by |
An object of class PrecisionPathways
which is basically a named list that other plotting and
tabulating functions can use.
# To be determined.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.