finemaprfinemaprfinemapr is an R package that provides an interface to
fine-mapping tools:
By using finemapr, your input files are automatically
prepared for each tool, the analysis workflow is tool-independent; and
exploration of fine-mapping results is powered by R in
printing/plotting/data export.
# set up
options(finemapr_<tool> = "<path to fine-mapping tool>")
# read input files
my_zscores <- read_zscores("<my_scores.tab>")
my_ld <- read_ld("<my_ld.tab>")
# run analysis
out <- run_<tool>(my_zscores, my_ld, args = "<custom arguments>")
# explore results
print(out)
head(out$snp) # main table of results
plot(out)
# export results
write.table(out$snp, "<my_results.tab>")The user needs to download and install a fine-mapping tool before the
analysis. An example of installation commands used in
finemapr by default is given here.
After installing, for example, the FINEMAP tool, the user specify for
finemapr where the tool is located:
We load packages for the analysis conducted in this document.
We load example data copied from the FINEMAP website (http://www.christianbenner.com/). This simulated dataset
has two causal variants rs15 and rs47.
All three fine-mapping tools estimated the poterior causal
probabilities of the two variants, rs15 and
rs47, very close to 1.