Renormalize Fine-Mapping PIPs to a Variant Subset
Source:R/AllGenerics.R, R/AllClasses.R, R/FineMappingEntry.R
adjustPips.RdRe-derive a FineMappingEntry's PIPs (and the
topLoci table) after restricting to a kept variant subset.
For each effect the lbf_variable row is subset to the kept
variants, renormalized via lbfToAlpha(), and the per-variant
PIPs are recomputed as 1 - prod_l(1 - alpha[l, p]).
The two scenarios this supports:
The user declined to impute missing variants in a GWAS
SumStats, so a downstream fine-mapping result needs PIPs restricted to the GWAS-covered intersection.Colocalization between a GWAS
FineMappingResultand a QTLFineMappingResultcomputed on different variant sets — the GWAS PIPs (or QTL PIPs) get renormalized to the common variant set.
Usage
adjustPips(x, keepVariants, ...)
# S4 method for class 'FineMappingResultBase'
adjustPips(x, keepVariants, ...)
# S4 method for class 'FineMappingEntry'
adjustPips(x, keepVariants, ...)