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
Installing Using Pip
snipar currently supports Python 3.8 and 3.9 on Linux, Windows, and Mac OSX. We recommend using a python distribution such as Anaconda 3 (https://store.continuum.io/cshop/anaconda/).
The easiest way to install is using pip:
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
Virtual Environment
You may encounter problems with the installation due to Python version incompatability or package conflicts with your existing Python environment. 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 From Source
To install from source, clone the git repository, and in the directory containing the snipar source code, at the shell type:
pip 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.9-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 430cfde067f9dffe651c5a8a79cd083cafdf57e311ecc4b13d821439b90a1e59 |
|
MD5 | d2cdfe21a3c56f99ae43c6639506940d |
|
BLAKE2b-256 | 511002d36d633c5208e2fa7dde9e2972d3c2a885b243f13ed14defe9531df63d |
Hashes for snipar-0.0.9-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13c7a93e6a0432b848d49b437f434c2f6e2577f96562cc62b2b889ed000e519d |
|
MD5 | 88d8e46ee7ba0ab8be689eefca003580 |
|
BLAKE2b-256 | 9ae5f5072652a57c2929eec2b06a07a026a183f52c873cc3429f2dd87958ca0a |
Hashes for snipar-0.0.9-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63edcf8a017c70e58074300b52376abf897add342be809edc0cbcacecaa11ad |
|
MD5 | af98331c5dca80f9b5f0ff22b67fc580 |
|
BLAKE2b-256 | 5bc8363a365b3ab2b72966ecf9e6d073e9198a5cb294fdc2e6afee66815e605f |
Hashes for snipar-0.0.9-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38b34f8a34ec5285ae8e9be5f14bd3d0d057af3c8271d8834d534c1a69c8cdd3 |
|
MD5 | d137c5525861592189ef37e9e08cb290 |
|
BLAKE2b-256 | 88ed1f7c4dcc877c25ef49a94aa49b3e0747372323c87933d73af1f256c05584 |
Hashes for snipar-0.0.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fd80ec07dcae31bb49527265663d427f7893ad7deeb74f1b444a4df4dc182f0 |
|
MD5 | 53ede7654004195939cc8dc34723d69b |
|
BLAKE2b-256 | 130320b54388959e2f790350cfe1599695f9d1c31869d281fefa64989cf100f6 |
Hashes for snipar-0.0.9-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9148548cf1e9a9a9cfbd4ce14b951c5950dfa323261c6c014bc94b57b76ddcde |
|
MD5 | 8686b84f5c6548312dcb8254f1248956 |
|
BLAKE2b-256 | b1d10d6b89f67d0a07230520410489481e7f69080d06e376c80bc0e2e6eb512f |
Hashes for snipar-0.0.9-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 150753c290364e204e798659095ecd9d6f37f7c68c1cef4e9bdacc66a354ee90 |
|
MD5 | 4d1c2704bd42e44581d9bb97a49b1580 |
|
BLAKE2b-256 | fedfa39c9155d07df489dc90c094c90a82488ff6eafc3cc3d2a938fe9463e754 |
Hashes for snipar-0.0.9-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab9e62210dbdce0d04b137d915a1c1b37ddf882b2713591c78c003f9094a9367 |
|
MD5 | 1e4dad9407c7a2768e925afa00fec3bb |
|
BLAKE2b-256 | 93b340990ba35cc782467dd243d8ae2cc8469e4f576d3fc513c81f23aa5c217b |
Hashes for snipar-0.0.9-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3180dc2b7f2efad8a8a4b3a413180e079edd9aac2eca262e51c3d581b706245 |
|
MD5 | fa1b95d367dacc77a6ff6049bbdc4c0e |
|
BLAKE2b-256 | ebb44789659b3e4fc6942b171ac7db4bd40579edddfe08f7a7817db2725491c6 |
Hashes for snipar-0.0.9-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ed6518383c3cdffdab049fdd4d6d7f033b8b0db42788f96e2199aeaa0d97235 |
|
MD5 | ee2fc34c166ebf855f291da73e553c49 |
|
BLAKE2b-256 | c95d564e36276ed8188ed6bc1110a3a94a5a6452d8ee1f25a3c0ab3540c84ffc |
Hashes for snipar-0.0.9-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d26d2b3f315c689bd3aa9b0c97f2a3f685b60f5af51ef6fd35fbc6c803b647de |
|
MD5 | d4ae248022a47a6d5f72ab21f7cabaa2 |
|
BLAKE2b-256 | 1f7809483d736304dbe15e19752f10b44cbddd8ff5b53e8113377c088141d7ef |
Hashes for snipar-0.0.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b860b4346b127f37ba428473893fc04be5b3e18cb1f945e14af7c76ec863e15 |
|
MD5 | 53af130fce8b3c7b7afb65c2eeb7b6a4 |
|
BLAKE2b-256 | 4acaedb9b55bc1db9a6c69651b91bafb4d1279c6e2ec3766564270d70946745e |
Hashes for snipar-0.0.9-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eede1351552e261605273946e5090042eeca7165c19247c2fbaafe38a4351f93 |
|
MD5 | 5ee53e44e9f7e684332e626dbdf75152 |
|
BLAKE2b-256 | 8989bfb9796d110190bcd2487962381dcc51dd6535590b7cea676b20d37cf9a4 |
Hashes for snipar-0.0.9-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46562fa90239b2a1d1f39be62cdb39ffd4d5ef2f0b98bf0e3f2f606da35a31e7 |
|
MD5 | 2a9a467ce1fb65dbdbed4ffc02086a5e |
|
BLAKE2b-256 | cbe5917c1fe80ec0f48c5e4a2a419874d44f735273d65e4de19ea0c286da6f14 |
Hashes for snipar-0.0.9-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b7206e236ea715675cd3691fc88df4ecabe93068db6671d37597229b454519f |
|
MD5 | ec53039baf2d4212003d0f053d7e2f53 |
|
BLAKE2b-256 | de6d90a0e72bc61eafa6a0571f9b4b616328e089c36adc2a7b0ed2ecbd9af803 |
Hashes for snipar-0.0.9-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d7e443e128a319ff5613a876f373a5e43a4c17cb91f3771bce3b6beb7293df3 |
|
MD5 | fbdc7ca14b51dd7a38527a5ee6833ea0 |
|
BLAKE2b-256 | 04192f39d68f97c96eb7b10595b07ea441ae803a0501bfd0acfdafdc48e27b4d |
Hashes for snipar-0.0.9-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c6f4d9152bab8be69d6c8fd62fe77acca733b740e3216dcecf51fc6382bb95a |
|
MD5 | cfeb45e0ba2f44ce30d4ac91834077a2 |
|
BLAKE2b-256 | b83439a0bbcf527c1baa3311a432656570f94ebc50bcfda507e9f88a6c47e360 |
Hashes for snipar-0.0.9-cp37-cp37m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbce8e0966b94fa4e0ed0b80f2b26a890cc167247ce9ff076b20b2d5d25e359b |
|
MD5 | 1685d792f0d2049f9f6f68e8510aeab6 |
|
BLAKE2b-256 | 0540de0a9172c18a7eb8d03269ad8aeeb2c6a7e07ef865d5e4429fb3bf00ae0b |
Hashes for snipar-0.0.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8976d15844c88f1ef5736124489f23de48c576be7baba82cd4a44fe223fb9d2 |
|
MD5 | 13063a7b1e8a29c65658cb8e94a37add |
|
BLAKE2b-256 | f24a20381f63816fc52617fa9d908379a46ead252b6011489dd6c0cf80a2d38e |
Hashes for snipar-0.0.9-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0217ba91a977f6ce5a29fbbbe20dca7b0929cdb689922d8cc139bbbbb30c6b71 |
|
MD5 | 09752098e496301c64caec602bf43ddd |
|
BLAKE2b-256 | 42c5de2fe3bd43984755657d02302aeb4afd9c12ef71d90ba862f4f55b347327 |
Hashes for snipar-0.0.9-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bded3e38f81eaaf6a6a4ba058b9800efacfa592fef32c1a458d44b929aeca6ec |
|
MD5 | bc2518b0913c705ddfe57fb95ce03137 |
|
BLAKE2b-256 | 4c9a0e484c0c349363fb1d9927898838859696a627925f3e4a1ec169e3803515 |