Get Cross-Validation Result
Source:R/AllGenerics.R, R/QtlFineMappingResult.R, R/fineMappingRow.R, and 2 more
getCvResult.RdExtract the cross-validation payload stored on a
FineMappingRow (or the matching entry of a
FineMappingResult). The payload is a list with components
samplePartition (a data.frame of Sample/Fold
assignments), predictions (a named list of per-method out-of-fold
prediction matrices), and performance (a named list of per-method
metric matrices). NULL when fine-mapping was run without
cross-validation (cvFolds <= 1).
Usage
getCvResult(x, ...)
# S4 method for class 'QtlFineMappingResult'
getCvResult(x, study = NULL, context = NULL, trait = NULL, method = NULL, ...)
# S4 method for class 'FineMappingRow'
getCvResult(x, ...)
# S4 method for class 'TwasWeights'
getCvResult(x, study = NULL, context = NULL, trait = NULL, method = NULL, ...)
# S4 method for class 'TwasWeightsRow'
getCvResult(x, ...)Arguments
- x
A
FineMappingRoworFineMappingResult.- ...
Class-specific selection arguments.
- study
Character (length 1) or
NULL. Restrict the selection to this study;NULLmatches all studies.- context
Character (length 1) or
NULL. Restrict the selection to this context;NULLmatches all contexts.- trait
Character (length 1) or
NULL. Restrict the selection to this trait;NULLmatches all traits.- method
Character (length 1) or
NULL. Restrict the selection to this fine-mapping / weight method;NULLmatches all methods.
Examples
data(qtlFineMappingExample)
getCvResult(qtlFineMappingExample)
#> NULL