viprs

Variational Inference of Polygenic Risk Scores (VIPRS)


Keywords
gwas, medicine, polygenic-risk-scores, prs, variational-inference
License
MIT
Install
pip install viprs==0.1.0

Documentation

viprs: Variational Inference of Polygenic Risk Scores

PyPI pyversions PyPI version fury.io License: MIT

Linux CI MacOS CI Windows CI Docs Build Binary wheels

Downloads Downloads

viprs is a python package that implements variational inference techniques to estimate the posterior distribution of variant effect sizes conditional on the GWAS summary statistics. The package is designed to be fast and accurate, and to provide a variety of options for the user to customize the inference process. Highlighted features:

  • The coordinate ascent algorithms are written in C/C++ and cython for improved speed and efficiency.
  • The code is written in object-oriented form, allowing the user to extend and experiment with existing implementations.
  • Different priors on the effect size: Spike-and-slab, Sparse mixture, etc.
  • We also provide scripts for different hyperparameter tuning strategies, including: Grid search, Bayesian optimization, Bayesian model averaging.
  • Easy and straightforward interfaces for computing PRS from fitted models.
  • Implementation for a wide variety of evaluation metrics for both binary and continuous phenotypes.

Helpful links