Get Cross-Validation Result
Source:R/AllGenerics.R, R/QtlFineMappingResult.R, R/fineMappingRow.R, and 2 more
cvResult.RdExtract the cross-validation payload stored on a
FineMappingRow (or the matching entry of a
QtlFineMappingResult). 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.
Usage
cvResult(x, ...)
# S4 method for class 'QtlFineMappingResult'
cvResult(x, studyName = NULL, context = NULL, trait = NULL, method = NULL)
# S4 method for class 'FineMappingRow'
cvResult(x)
# S4 method for class 'TwasWeights'
cvResult(x, studyName = NULL, context = NULL, trait = NULL, method = NULL)
# S4 method for class 'TwasWeightsRow'
cvResult(x)Arguments
- x
A
FineMappingRoworQtlFineMappingResult.- ...
Class-specific selection arguments.
- studyName
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)
cvResult(qtlFineMappingExample)
#> NULL