Skip to contents

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

...

Class-specific selection arguments.

studyName

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)
cvResult(qtlFineMappingExample)
#> NULL