Skip to contents

Extract fitted model objects.

Usage

getFits(x, ...)

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

# S4 method for class 'TwasWeightsRow'
getFits(x, ...)

Arguments

x

A TwasWeightsRow or TwasWeights.

...

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

Method-specific (typically a list).

Examples

data(ctwasWeightsExample)
# NULL unless the pipeline was run with `retainFit = TRUE`
getFits(ctwasWeightsExample)
#> NULL