Skip to contents

Extract the cross-validation payload stored on a FineMappingEntry (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 'FineMappingEntry'
getCvResult(x, ...)

# S4 method for class 'QtlFineMappingResult'
getCvResult(x, study = NULL, context = NULL, trait = NULL, method = NULL, ...)

# S4 method for class 'TwasWeightsEntry'
getCvResult(x, ...)

# S4 method for class 'TwasWeights'
getCvResult(x, study = NULL, context = NULL, trait = NULL, method = NULL, ...)

Arguments

x

A FineMappingEntry or FineMappingResult.

...

Class-specific selection arguments.

Value

A list (the CV payload) or NULL.