Resolve Per-Variant Weights From a Weight Source
Source:R/AllGenerics.R, R/AllClasses.R, R/twasWeights.R
resolveWeights.RdReturn an aligned (variantIds, weights) pair from a
single weight-source entry, so cTWAS and
causalInferencePipeline extract weights identically whether
the source is a TwasWeights collection (its learned weight vector)
or a FineMappingResult one (its topLoci posterior effect). The
selectors pin the single row the weights come from.
Usage
resolveWeights(x, ...)
# S4 method for class 'FineMappingResultBase'
resolveWeights(x, ...)
# S4 method for class 'TwasWeights'
resolveWeights(
x,
study = NULL,
context = NULL,
trait = NULL,
method = NULL,
...
)