Skip to contents

Return an aligned (variantIds, weights) pair from a single weight-source entry, so cTWAS and causalInferencePipeline extract weights identically whether the source is a TwasWeightsEntry (its learned weight vector) or a FineMappingEntry (its topLoci posterior effect).

Usage

resolveWeights(x, ...)

# S4 method for class 'FineMappingEntry'
resolveWeights(x, ...)

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

Arguments

x

A TwasWeightsEntry or FineMappingEntry.

...

Reserved for future use.

Value

A list with variantIds (character) and weights (numeric) of equal length; both empty when no usable weights are present.