-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.Rmd
83 lines (57 loc) · 2.19 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Flashfm
<!-- badges: start -->
[![DOI](https://zenodo.org/badge/267086751.svg)](https://zenodo.org/badge/latestdoi/267086751)
<!-- badges: end -->
The goal of flashfm is to use GWAS summary statistics to jointly fine-map genetic associations for several
related quantitative traits in a Bayesian framework that leverages information between the traits.
Website available at: https://jennasimit.github.io/flashfm/.
Details available in https://rdcu.be/czYpf .
Hernandez, N., Soenksen, J., Newcombe, P., Sandhu, M., Barroso, I.,
Wallace, C., Asimit, J. The flashfm approach for fine-mapping multiple
quantitative traits. Nat Commun 12, 6147 (2021).
https://doi.org/10.1038/s41467-021-26364-y
## System Requirements
Flashfm could be installed with ease on versions of R > 3.6.0.
If installing on a Windows machine, Rtools must be installed.
Installation time is estimated as 2 minutes.
## Installation Guide
## Short version
``` r
# install.packages("devtools")
devtools::install_github("jennasimit/flashfm")
```
## Longer version (if above fails)
The following packages from CRAN and Bioconductor are required:
``` r
install.packages("Rcpp")
install.packages("RcppArmadillo")
install.packages("parallel")
install.packages("data.table")
install.packages("gtools")
install.packages("rlist")
install.packages("MASS")
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("snpStats")
```
as well as the following dependencies from GitHUb
``` r
# install and load R2BGLiMS
remotes::install_github("pjnewcombe/R2BGLiMS")
```
NB: Must have a Java JDK installed in order to install and run R2BGLiMS. This is only needed if you need to run single-trait fine-mapping using JAM.
If single-trait fine-mapping results are available, then it is not necessary to have Java JDK installed.
``` r
remotes::install_github("jennasimit/flashfm")
library(flashfm)
library(R2BGLiMS) # if running internal JAM functions for single-trait fine-mapping
```