Import SNP-wise prior probabilities pre-computed from many UK Biobank traits.
This function handles finding the intersection of SNPS that exist in the
input GWAS summary stats dat and the pre-computed priors that come
shipped with PolyFun. Then, it saves this subset as a new file for PolyFun
(or other fine-mapping tools) to use as input.
Uses the extract_snpvar.py script from PolyFun.
Usage
POLYFUN_import_priors(
locus_dir,
dat = NULL,
polyfun = NULL,
force_new_priors = TRUE,
remove_tmps = FALSE,
nThread = 1,
conda_env = "echoR_mini",
verbose = TRUE
)