Skip to contents

Extract 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 FineMappingRow or FineMappingResult.

...

Class-specific selection arguments.

study

Character (length 1) or NULL. Restrict the selection to this study; NULL matches all studies.

context

Character (length 1) or NULL. Restrict the selection to this context; NULL matches all contexts.

trait

Character (length 1) or NULL. Restrict the selection to this trait; NULL matches all traits.

method

Character (length 1) or NULL. Restrict the selection to this fine-mapping / weight method; NULL matches all methods.

Value

A list (the CV payload) or NULL.

Examples

data(qtlFineMappingExample)
getCvResult(qtlFineMappingExample)
#> NULL