Skip to contents

Extract weights from a TwasWeightsEntry or from one entry of a TwasWeights collection.

Usage

getWeights(x, ...)

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

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

Arguments

x

A TwasWeightsEntry or TwasWeights.

...

Class-specific selection arguments.

Value

A numeric vector or matrix of weights.