Library and command line scripts for inferring identity-by-descent (IBD) segments shared between siblings, imputing missing parental genotypes, and for performing family based genome-wide association and polygenic score analyses.
Project description
snipar
snipar (single nucleotide imputation of parents) is a python library for inferring identity-by-descent (IBD) segments shared between siblings, imputing missing parental genotypes from observed genotypes and IBD segments in a nuclear family, and for performing family based genome-wide association and polygenic score analyses using observed and/or imputed parental genotypes.
Main features:
Infer identity-by-descent segments shared between siblings (ibd.py).
Impute missing parental genotypes given the observed genotypes in a nuclear family (impute.py).
Perform family based GWAS using observed and imputed parental genotypes (gwas.py).
Compute polygenic scores for probands, siblings, and parents from SNP weights using observed/imputed parental genotypes, and perform family based analysis of polygenic scores (pgs.py script).
Compute genome-wide correlations between different effects estimated by gwas.py (correlate.py).
Documentation
It is recommended to work through the tutorial: https://snipar.readthedocs.io/en/latest/tutorial.html
Virtual Environment
We highly recommend using a python distribution such as Anaconda 3 (https://store.continuum.io/cshop/anaconda/). You may encounter problems with the installation due to package conflicts with your existing Python installation. To overcome this, you can try installing in a virtual environment. In a bash shell, this could be done by using the following commands in your directory of choice:
python -m venv path-to-where-you-want-the-virtual-environment-to-be
You can activate and use the environment using
source path-to-where-you-want-the-virtual-environment-to-be/bin/activate
Installing Using Pip
Just run:
pip install snipar
Sometimes this may not work because the pip in the system is outdated. You can upgrade your pip using:
pip install --upgrade pip
Installing From Source
To install from source, clone the git repository, and in the directory containing the snipar source code, at the shell type:
python setup.py install
Running tests
To check that the code is working properly and that the C modules have been compiled, you should run tests. To run the tests, after the installation run this command:
python -m unittest snipar.tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for snipar-0.0.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 985b69dc253e7ab3e073dd04bf6e3eb832ce83bd0f5a492a4bffeb9409428a3f |
|
MD5 | 665284e407b1a88cc69214c07eea55cb |
|
BLAKE2b-256 | d10c0d19dde23266639097db3f87805d322fd75fe0b65dd645e234d118b55a4d |
Hashes for snipar-0.0.5-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1faa0c675bd4b80626c057484b3055202b50ade6c35e7b1a824a2b0c1de8a8b |
|
MD5 | f5d87f6fe31a444a22586864c52cb8ca |
|
BLAKE2b-256 | ca642edcdb4d7873d66cec44ecd5813db720ad3d98ed46c7d3b18b642c334768 |
Hashes for snipar-0.0.5-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68fffcb50ad1ceadd1e75131e69cb6e6da00c6c6ba027c5996137b8c7e12d4dc |
|
MD5 | 4dbfb3b1c2a62c583c869a1098fa096d |
|
BLAKE2b-256 | 46126262f49740507a8edcc534a7bc2dec7b0fde66607544ae72843fd767ce54 |
Hashes for snipar-0.0.5-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47e5cdc1eb1f4f0b5a91435cc2437287cc2fb955f1b43db2b8cf799915ea0f13 |
|
MD5 | 0754d838045ecbe7f9af5d42113310ec |
|
BLAKE2b-256 | 59e71cc8e93abfc68f6f2b60dc4627468e78d7939877bcbf4655e64b04a71084 |
Hashes for snipar-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841b811f55e1e008ae269802c9d1660b56195b8c160f6f98c55e1e0118d7da3a |
|
MD5 | 08cb6d6fe787c6ec05fdc1b1ec16ca3a |
|
BLAKE2b-256 | d3f35df2b6b274269e1f2511707178a238b835fa83842fee302e18acaa9442c8 |
Hashes for snipar-0.0.5-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4120ec742f6a1c80031febbe854a37138a7b16c1397cf7799bc52c99433d9360 |
|
MD5 | afa270b73a2760661223c7b8c1d6ea09 |
|
BLAKE2b-256 | 763e2d61c4e0f50847871a8d4990e722bb43791164f9358c80ca7316ef8169ac |
Hashes for snipar-0.0.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4d05bc3db960e439abdc73c5e18c6221061544b6eafecc97780dafee4a10e6d |
|
MD5 | 4589bacc5499f8e343f0f856da559259 |
|
BLAKE2b-256 | 965bbf9e7a40eaf34e15fe3bb2a81661db7ef665b9fbeef87375ed2688784c20 |
Hashes for snipar-0.0.5-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20b124b472cb392ba0f8ebca353684bbfd9186822e12bd64b9737665a53c1692 |
|
MD5 | efaf2765688790e6c706f83a3cb25a76 |
|
BLAKE2b-256 | 27a24439f7446868000d5cbc1ad2e2255105dc85b15c9864dfd59165e2a93c69 |
Hashes for snipar-0.0.5-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47803d0bb71c416064fe3c2e7b2723ca0ace963d0a54985d3a3329e87a6746c9 |
|
MD5 | bbc9bfb0a36ef147106be258f1ba911c |
|
BLAKE2b-256 | 95f51810aa1c59f0681f9fa82ec3d72904297ea23795f50a2fc67fff3e42aa72 |
Hashes for snipar-0.0.5-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa1ff60f24ad5c81654e03dbd6f732dc446ae5d3f8ec7dd6fbd2ea6f6ed7217d |
|
MD5 | f2141404a659e84908cf9c26a538c509 |
|
BLAKE2b-256 | a46e42cb01d029f3b3741b4585f49ee9584c5a66ce760728357f8d1f4a332cc8 |
Hashes for snipar-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97080e64d33f5d1a9a36ffc7da003303091fddf88c6d1745b469cb299fb7ae1d |
|
MD5 | 45673dfd261c3d491d18bea223f780b4 |
|
BLAKE2b-256 | ffc54c4e06b3781c6684b46f1d1984e69a6f88840d2e693839eb4faa20e655b4 |
Hashes for snipar-0.0.5-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bf75d92a9cc6a7560879d329f5f677194756f67dfc03af9d2852393fad95cc1 |
|
MD5 | 6e67cac4b4ab5691edada76962c9c1a0 |
|
BLAKE2b-256 | 4b43b41c4cd77e34db8938e6859e0e6be614006f0e4451af318dc98aade8275e |
Hashes for snipar-0.0.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b08d2c55bd1f388d6a60dcfa43454190d017fb82c129f912567548e99527f8d4 |
|
MD5 | 240516cb50d9cef7cdd8d4c42d2658c4 |
|
BLAKE2b-256 | e97bbf08b71c740057774aaeb05e824afeaabfc4c1e4237cb53b329346b7fe68 |
Hashes for snipar-0.0.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1514f662ce377c9ca1f9c54aa8fc3bef07dac74aef30e58b5d948e4bf2c49b70 |
|
MD5 | 076bd6499b1de279d295cd8fcd04c3de |
|
BLAKE2b-256 | fbcbed8e609a8ff898d02dffdfd709a5d89896498452e10b1ad78ded7b3b2c2c |
Hashes for snipar-0.0.5-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea013ad52494a087d54aace632375a74d1f639ebf321c81d8cff41cde2907b0c |
|
MD5 | 8faffed90d213c198ecdf4adad5b46db |
|
BLAKE2b-256 | d3a6c0b1be616af7709dd5259ee63d014244b53d9988f17bc0260ab7a6c01a38 |
Hashes for snipar-0.0.5-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8595dac5eefe20ff3037e148a93aa82d65319662808a9a498f029fcedda29c0 |
|
MD5 | dd84ede541656c63746f0ff26b2add6c |
|
BLAKE2b-256 | 8398db6958cf4bb1b7dcb3d9e61381d643d597f15a51f352131f98fe028995c1 |
Hashes for snipar-0.0.5-cp37-cp37m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3518c1f4ffb93b7cc785fc1074a4845e2b358c95b9dd51151e2cb47f1567d7d4 |
|
MD5 | faa105b0fc8442152e3c8ad45249ff96 |
|
BLAKE2b-256 | 4de19def4a31860da4b94eec695975d996d92a7789b8856b285c8a2b95d9e78f |
Hashes for snipar-0.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bc1f212f6f9214e6354b9b619b9412c6ed41a1d0b35a0f17e1da2179673f8a6 |
|
MD5 | 1b5feea8b15fd71413c5f5b50b8da25f |
|
BLAKE2b-256 | 37a094b9d082c0114555f3482597cfaa4fd5a314267cb0f2122ab5e605204101 |
Hashes for snipar-0.0.5-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce0daaf2082c1614076b693fa4696d2a08c270bf9f79b3882c422e889320c1fc |
|
MD5 | f2a57fca7b38118d87255d888c92f7e5 |
|
BLAKE2b-256 | 77ac27e72afcce70ee9399f2b66e42339276c88dff593999a1fcdd31aa3a9002 |
Hashes for snipar-0.0.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 436a63486561f6da273878690e88be3ec07e582aca0941c4647c1b12dc1ac4a2 |
|
MD5 | fbf39523eca693f005006c0987d1db00 |
|
BLAKE2b-256 | 8fe053c56b8fd8b11ca4cedb7910ec48cf6077877cdd044cd624927ffcbc0d4e |