YangLabHKUST / LPM

Efficient statistical approach to characterize relationship among complex traits using summary statistics from multiple GWASs and functional annotations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LPM

LPM (Latent Probit Model), is an efficient statistical approach to characterize relationship among complex traits using summary statistics from multiple GWASs and functional annotations. 'LPM' package provides model parameter estimation as well as statistical inference.

To make LPM scalable to millions of SNPs and hundreds of traits, instead of working with a bruteforce algorithm to handle all the data simultaneously, we develope an efficient parameter-expanded EM (PX-EM) algorithm for pair-wise analysis and implement a dynamic threading strategy to enhance its parallel property. This pairwise strategy is guaranteed to give consistent results by our theoretical analysis from the perspective of the composite likelihood approach.

Installation

To install the development version of LPM, it's easiest to use the 'devtools' package. Note that LPM depends on the 'Rcpp' package, which also requires appropriate setting of Rtools and Xcode for Windows and Mac OS/X, respectively.

#install.packages("devtools")
library(devtools)
install_github("mingjingsi/LPM")

Windows users need to download local323, unzip it in C:/local323 and set the Windows parameter LIB-GSL to be C:\local323. Mac users need to install GNU Scientific Library (GSL).

Usage

The 'LPM' vignette will provide a good start point for the genetic analysis using LPM package. The following help page will also provide quick references for LPM package and the example command lines:

library(LPM)
package?LPM

References

Jingsi Ming, Tao Wang, Can Yang, LPM: a latent probit model to characterize the relationship among complex traits using summary statistics from multiple GWASs and functional annotations, Bioinformatics, , btz947, https://doi.org/10.1093/bioinformatics/btz947

Supplementary Document

Reproducibility

All the simulation results can be reproduced by using the code at LPM-sim. Real data sets used in the paper have been made publicly available, including functional annotations (link) and summary statistics from GWAS (link).

Development

This R package is developed by Jingsi Ming and Can Yang (macyang@ust.hk)

About

Efficient statistical approach to characterize relationship among complex traits using summary statistics from multiple GWASs and functional annotations


Languages

Language:R 50.9%Language:C++ 49.1%