Skip to main content

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

AI Usage

AI-DECLARATION: assist

This project is developed using AI-assisted technologies. Please review our AI Declaration for full transparency on automated pipelines.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

viprs-0.1.4.tar.gz (73.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

viprs-0.1.4-cp313-cp313-win_amd64.whl (408.8 kB view details)

Uploaded CPython 3.13Windows x86-64

viprs-0.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

viprs-0.1.4-cp313-cp313-macosx_11_0_arm64.whl (311.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

viprs-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl (414.6 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

viprs-0.1.4-cp312-cp312-win_amd64.whl (410.2 kB view details)

Uploaded CPython 3.12Windows x86-64

viprs-0.1.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

viprs-0.1.4-cp312-cp312-macosx_11_0_arm64.whl (313.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

viprs-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl (416.4 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

viprs-0.1.4-cp311-cp311-win_amd64.whl (405.2 kB view details)

Uploaded CPython 3.11Windows x86-64

viprs-0.1.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

viprs-0.1.4-cp311-cp311-macosx_11_0_arm64.whl (312.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

viprs-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl (414.8 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

viprs-0.1.4-cp310-cp310-win_amd64.whl (404.8 kB view details)

Uploaded CPython 3.10Windows x86-64

viprs-0.1.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

viprs-0.1.4-cp310-cp310-macosx_11_0_arm64.whl (312.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

viprs-0.1.4-cp310-cp310-macosx_10_9_x86_64.whl (415.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file viprs-0.1.4.tar.gz.

File metadata

  • Download URL: viprs-0.1.4.tar.gz
  • Upload date:
  • Size: 73.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for viprs-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9f6ddce0d8724392fd273e343183b0a1766ab53d6cb8953e396795c3172a297a
MD5 2d5056f4e014771f5b27bd67c48bfdc6
BLAKE2b-256 eb48157adc709417178d28101240e182a7146829cf85aaf7efcb0fb43b2912f3

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: viprs-0.1.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 408.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for viprs-0.1.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 32f475fc7b427456542e915862ee2b68202ba6e45b0dd655d0f54346e8720ff4
MD5 ef80dc9a34d51e31672379366718e7da
BLAKE2b-256 5f83ff436d929b31a86d13eadb2382b83b42bded6794f439b2b8c1e54630faee

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 315d2fa3d5b23cb92ec5b2c7988fb134ebe803b875b4cd79c072cb02a33e654d
MD5 34382546566a9845c6592669cf745fa9
BLAKE2b-256 6277aa930d7acd9bba7af260d166858cc1ad38cdc866c996dd4624eac564c524

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45d00694841c2ecdceba60d3644dac1359f2945573cc7d3905f5e94d8455d0d9
MD5 09393123898f9a6bdd6e030291120164
BLAKE2b-256 d9e9ccff9d633c8a1b1292c4c7d64a31ee40e6fcaebfd0bb79a21e92e9747e20

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 36f3534cdc34b787e18d5e4c40cf9807605d5069a3bd3153a69cdaed7eeecb27
MD5 2b2c384cd504fe9a378f4014a088bf9e
BLAKE2b-256 93d1da3178f62feac3107b349c06198bf061e1b60d1d70dc1379245753c2bbb3

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: viprs-0.1.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 410.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for viprs-0.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a319a444784b9b1f6f173c07b8486d050e36df2d7e4ac6d7a83796f372fb0ed7
MD5 c6f0345c18ce4d6c14b0ecbe98da430f
BLAKE2b-256 e38635bd98562ffd207f6bf105b50a2be6bdd2e91e1b3088e1174bafae4538d7

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dc03a543e3e6348a1a5c607a55eb76ca95e865ba9a836602ed77fae012701f92
MD5 7a822858d3d1ed5ca73297329ec2065c
BLAKE2b-256 94e1acf9460a5a200f7f3b1fccf77b7602b7b5350578f7337aabcd295c7cb1c0

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a0d8f8129331f74d6aaaeeb53ea28886f777985544c002fecea699418afcd12
MD5 5ad5ecdbddbec28c84c9d26589b49d88
BLAKE2b-256 0d68553fa4bcc825d3c12f0ff1ae7b743ce5538c3b6ab544d50788c429e4a229

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f4bc1351ec34805b2f1e952f0469cb912730a6808d0bee15373c2b5379eb84f1
MD5 4f09c5f98d7a0f7c12dc9694e6203549
BLAKE2b-256 5adb78a12fe17fb2aa370d6e1318894bb7d12f768130614e365de3b479e58faf

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: viprs-0.1.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 405.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for viprs-0.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 34d09de5873c571e0e6a2f9414c4184bbadba616875fa950102f60908b0c2f15
MD5 651e1e74a78cad7d2ed8f69443a6cf1c
BLAKE2b-256 1f97c9b2242f144fc0dbf4c1be60e009554c00aa851a1de39db7adfe275b9cac

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3df135c5777fd9a61524fb5f7b12ce9c2242c85fad05a847bbca1032c43c5475
MD5 17c44b36d14322d8702740d75d687380
BLAKE2b-256 8c6043e7362f6f76fdabaa6db761e2821f2075b1c14d80f81a997ae94778bda7

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfcb57ebf91ac4e003e16e3da428f5fdf44ac4c55bb371185ad8b913816ea81f
MD5 a9b03770e74b880da133ba80df682c7a
BLAKE2b-256 9eef0c0178dc37ae4aa133a89beefd0265d3a9d91502d0e7669cc42e05fad359

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4e2bb6411727606e1a324977a3ec17915190eba6b56e296f0f5d95b087c4f756
MD5 d1f0c1593f5337cd4170c48554d55aba
BLAKE2b-256 e4f8ed0417450764a760814a324bff9ef12ea7b3dac3f2750df0022a8f741c94

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: viprs-0.1.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 404.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for viprs-0.1.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bdc2cc6ea80eb2d601d5ce4430fb8e971f21f669c1848728a200fdbfdfd1b4e5
MD5 8ec16c5f2dcc47bee5b86ab638040512
BLAKE2b-256 1335361928637e274146cb16f432501489c503bbcdcf24471611540ff3cb0e60

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e33935569688755e50d9795243e22a323e0dc4dc8e00075e801631788d9b9d07
MD5 5ffe41dc79912da2b9bb9001cf3ef484
BLAKE2b-256 49184dc0cab866fef76909f97204376e3dcb1e931c09907304095a35142a8fcd

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14ed7589a80107c3d2a8d1e8f9008f3f371d7783d3dc981e8cac5b665a321d83
MD5 358c66c79a8875d5df578f850f9ffc24
BLAKE2b-256 de1811153095b3f5f5f4c7463959ed9e55ee1fdbe170f6593a8a84c13a914476

See more details on using hashes here.

File details

Details for the file viprs-0.1.4-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for viprs-0.1.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e4ca476383bc728c03b8256c5073c6265ff71ef7c0c3ebc5509d745c1e3817a4
MD5 6d060d645f449a6ab8ff0ae5dc8c88a8
BLAKE2b-256 8096cc9cd37ccbd8dd8f06fe27f300772d02a166b4e940fe438b295c9eccee92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page