Name | snipar JSON |
Version |
0.0.18
JSON |
| download |
home_page | http://github.com/alexTISYoung/snipar |
Summary | 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. |
upload_time | 2023-07-11 18:30:28 |
maintainer | |
docs_url | None |
author | Alexander I. Young, Moeen Nehzati |
requires_python | >=3.7 |
license | MIT |
keywords |
statistics
genetics
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# snipar
*snipar* (single nucleotide imputation of parents) is a Python package 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 using observed and/or imputed parental genotypes.
The imputation method and the family-based GWAS and polygenic score models are described in [Young et al. 2022](https://www.nature.com/articles/s41588-022-01085-0).
# 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
Documentation: https://snipar.rtfd.io/
It is recommended to read the guide: https://snipar.rtfd.io/en/latest/guide.html
And to work through the tutorial: https://snipar.rtfd.io/en/latest/tutorial.html
# Installing Using pip
*snipar* currently supports Python 3.7-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 .
# Python version incompatibility
*snipar* does not currently support Python 3.10 or higher due to version incompatibilities of dependencies.
To overcome this, create a Python3.9 environment using conda and install using pip in the conda environment:
conda create -n myenv python=3.9
conda activate myenv
pip install snipar
# Apple ARM processor machines
There can be difficulties install *snipar* on Apple ARM processor machines due to lack of available versions of scientific computing software made for these processors' architectures. A workaround for this is to use *snipar* in a docker (https://docs.docker.com/desktop/install/mac-install/) image. To create an appropriate docker image, use this command in the terminal:
docker run -it amd64/python:3.9.9-slim-buster /bin/bash
# Running tests
To check that the code is working properly and that the C modules have been compiled, you can run the tests using this command:
python -m unittest snipar.tests
Raw data
{
"_id": null,
"home_page": "http://github.com/alexTISYoung/snipar",
"name": "snipar",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "statistics genetics",
"author": "Alexander I. Young, Moeen Nehzati",
"author_email": "alextisyoung@gmail.com",
"download_url": "https://pypi.org/project/snipar/files",
"platform": null,
"description": "# snipar\r\n\r\n*snipar* (single nucleotide imputation of parents) is a Python package for inferring identity-by-descent (IBD) segments shared between siblings, imputing missing parental genotypes, and for performing\r\nfamily based genome-wide association and polygenic score analyses using observed and/or imputed parental genotypes. \r\n\r\nThe imputation method and the family-based GWAS and polygenic score models are described in [Young et al. 2022](https://www.nature.com/articles/s41588-022-01085-0).\r\n\r\n# Main features:\r\n\r\nInfer identity-by-descent segments shared between siblings (ibd.py). \r\n\r\nImpute missing parental genotypes given the observed genotypes in a nuclear family (impute.py).\r\n\r\nPerform family based GWAS using observed and imputed parental genotypes (gwas.py). \r\n\r\nCompute polygenic scores for probands, siblings, and parents from SNP weights using observed/imputed parental genotypes, and perform family\r\n based analysis of polygenic scores (pgs.py script). \r\n \r\n Compute genome-wide correlations between different effects estimated by gwas.py (correlate.py). \r\n\r\n# Documentation\r\n\r\nDocumentation: https://snipar.rtfd.io/\r\n\r\nIt is recommended to read the guide: https://snipar.rtfd.io/en/latest/guide.html\r\n\r\nAnd to work through the tutorial: https://snipar.rtfd.io/en/latest/tutorial.html\r\n\r\n# Installing Using pip\r\n\r\n*snipar* currently supports Python 3.7-3.9 on Linux, Windows, and Mac OSX. We recommend using a python distribution such as Anaconda 3 (https://store.continuum.io/cshop/anaconda/). \r\n\r\nThe easiest way to install is using pip:\r\n\r\n pip install snipar\r\n\r\nSometimes this may not work because the pip in the system is outdated. You can upgrade your pip using:\r\n\r\n pip install --upgrade pip\r\n\r\n# Virtual Environment\r\n\r\nYou 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:\r\n \r\n python -m venv path-to-where-you-want-the-virtual-environment-to-be\r\n\r\nYou can activate and use the environment using\r\n\r\n source path-to-where-you-want-the-virtual-environment-to-be/bin/activate\r\n\r\n# Installing From Source\r\nTo install from source, clone the git repository, and in the directory\r\ncontaining the *snipar* source code, at the shell type:\r\n\r\n pip install .\r\n\r\n# Python version incompatibility \r\n\r\n*snipar* does not currently support Python 3.10 or higher due to version incompatibilities of dependencies. \r\nTo overcome this, create a Python3.9 environment using conda and install using pip in the conda environment:\r\n\t\r\n conda create -n myenv python=3.9\r\n\tconda activate myenv\r\n\tpip install snipar\r\n\r\n# Apple ARM processor machines\r\n\r\nThere can be difficulties install *snipar* on Apple ARM processor machines due to lack of available versions of scientific computing software made for these processors' architectures. A workaround for this is to use *snipar* in a docker (https://docs.docker.com/desktop/install/mac-install/) image. To create an appropriate docker image, use this command in the terminal:\r\n\r\n\tdocker run -it amd64/python:3.9.9-slim-buster /bin/bash\r\n \r\n# Running tests\r\nTo check that the code is working properly and that the C modules have been compiled, you can run the tests using this command:\r\n\r\n python -m unittest snipar.tests\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "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.",
"version": "0.0.18",
"project_urls": {
"Download": "https://pypi.org/project/snipar/files",
"Homepage": "http://github.com/alexTISYoung/snipar"
},
"split_keywords": [
"statistics",
"genetics"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6039c71244adfa2c9bde510c8351b34f7184a1a36993a207b972a016009c2f88",
"md5": "f4d6584999287488f697f9dc239dd949",
"sha256": "f6e254144936fd2e3da5b3fb80d95f976604d2f82bc49c8bddf8044ec1644594"
},
"downloads": -1,
"filename": "snipar-0.0.18-cp37-cp37m-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "f4d6584999287488f697f9dc239dd949",
"packagetype": "bdist_wheel",
"python_version": "cp37",
"requires_python": ">=3.7",
"size": 53639314,
"upload_time": "2023-07-11T18:30:28",
"upload_time_iso_8601": "2023-07-11T18:30:28.669154Z",
"url": "https://files.pythonhosted.org/packages/60/39/c71244adfa2c9bde510c8351b34f7184a1a36993a207b972a016009c2f88/snipar-0.0.18-cp37-cp37m-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d78e6f7fb5ed7b68844de2a5fd8cb6284e8cdf58d4c955cf5d8cda70f02cd26b",
"md5": "10f95e12f0dee56af7f09a7cedd7dc45",
"sha256": "c8456da94f960706b2c52fa43adf73641650a84798180970bae7c138e0bec487"
},
"downloads": -1,
"filename": "snipar-0.0.18-cp37-cp37m-win32.whl",
"has_sig": false,
"md5_digest": "10f95e12f0dee56af7f09a7cedd7dc45",
"packagetype": "bdist_wheel",
"python_version": "cp37",
"requires_python": ">=3.7",
"size": 53238367,
"upload_time": "2023-07-11T18:29:27",
"upload_time_iso_8601": "2023-07-11T18:29:27.874293Z",
"url": "https://files.pythonhosted.org/packages/d7/8e/6f7fb5ed7b68844de2a5fd8cb6284e8cdf58d4c955cf5d8cda70f02cd26b/snipar-0.0.18-cp37-cp37m-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d5ad0ac6f56c97788bc3afc9f376d44ac6676766860b10f38654ae2c6317b1a9",
"md5": "8974a118e4f9d2a40b8846dbcfef39c9",
"sha256": "4e199735abec2f8e7b6266950a19ffaf746b0b7c48f58b7f025c5aa1aec90448"
},
"downloads": -1,
"filename": "snipar-0.0.18-cp37-cp37m-win_amd64.whl",
"has_sig": false,
"md5_digest": "8974a118e4f9d2a40b8846dbcfef39c9",
"packagetype": "bdist_wheel",
"python_version": "cp37",
"requires_python": ">=3.7",
"size": 53267852,
"upload_time": "2023-07-11T18:29:33",
"upload_time_iso_8601": "2023-07-11T18:29:33.524104Z",
"url": "https://files.pythonhosted.org/packages/d5/ad/0ac6f56c97788bc3afc9f376d44ac6676766860b10f38654ae2c6317b1a9/snipar-0.0.18-cp37-cp37m-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9a91c927448cb5e5a62cb7c50cdb3706e10c9eb505894781cd6a6c2c11f9d0e8",
"md5": "82659299635c43574bca3c3099d9a8d3",
"sha256": "f511d8da9d8ee701fb510e90d9495984ad71f89b59c17131c7551f4556332abb"
},
"downloads": -1,
"filename": "snipar-0.0.18-cp38-cp38-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "82659299635c43574bca3c3099d9a8d3",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.7",
"size": 53638012,
"upload_time": "2023-07-11T18:30:35",
"upload_time_iso_8601": "2023-07-11T18:30:35.380318Z",
"url": "https://files.pythonhosted.org/packages/9a/91/c927448cb5e5a62cb7c50cdb3706e10c9eb505894781cd6a6c2c11f9d0e8/snipar-0.0.18-cp38-cp38-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "18f95ccd46687dcae18be0ed86271ab30abbb4729cc6cf07142c4a705ae8e6f5",
"md5": "41f22e2025024e8c7dc4347c3ec5cf9f",
"sha256": "a92930c00c339a7563e0e6a8af70c77bb2f30c99410dbd1d35e14fe2ed8f3a7e"
},
"downloads": -1,
"filename": "snipar-0.0.18-cp38-cp38-win32.whl",
"has_sig": false,
"md5_digest": "41f22e2025024e8c7dc4347c3ec5cf9f",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.7",
"size": 53250897,
"upload_time": "2023-07-11T18:29:39",
"upload_time_iso_8601": "2023-07-11T18:29:39.976435Z",
"url": "https://files.pythonhosted.org/packages/18/f9/5ccd46687dcae18be0ed86271ab30abbb4729cc6cf07142c4a705ae8e6f5/snipar-0.0.18-cp38-cp38-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "898074e7490d0b506082e47a51c6cd5bc29752337d56f27060e4e05247695c27",
"md5": "cdaf0b8cd6d16b18defae4950836e31d",
"sha256": "69bfa4abc4a711a03cd0b90fc0af417516983cf261d853da14795af4ccb86809"
},
"downloads": -1,
"filename": "snipar-0.0.18-cp38-cp38-win_amd64.whl",
"has_sig": false,
"md5_digest": "cdaf0b8cd6d16b18defae4950836e31d",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.7",
"size": 53279931,
"upload_time": "2023-07-11T18:29:45",
"upload_time_iso_8601": "2023-07-11T18:29:45.212114Z",
"url": "https://files.pythonhosted.org/packages/89/80/74e7490d0b506082e47a51c6cd5bc29752337d56f27060e4e05247695c27/snipar-0.0.18-cp38-cp38-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b2daf01f15e746d7eeb7a6d3f170548c0bc22dbb8d993279007e038913062a2c",
"md5": "bcef2133f354e6078a448f609643ae0e",
"sha256": "ccbfc003d5e4d2b870b976e51b5a387fbc1fbae181022ccd0d4158fc44c22cd2"
},
"downloads": -1,
"filename": "snipar-0.0.18-cp39-cp39-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "bcef2133f354e6078a448f609643ae0e",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.7",
"size": 53640728,
"upload_time": "2023-07-11T18:30:43",
"upload_time_iso_8601": "2023-07-11T18:30:43.441578Z",
"url": "https://files.pythonhosted.org/packages/b2/da/f01f15e746d7eeb7a6d3f170548c0bc22dbb8d993279007e038913062a2c/snipar-0.0.18-cp39-cp39-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "563e53e605b39f2227c6d6e01f7c2ed9ede25bb00cd5504f59a8ea4e9b5d1d42",
"md5": "74f09ede303e3c2fc447837013e2e035",
"sha256": "4756657c45391ba0f34e1fa52cd2654c814a8460820969d14760425e714047bc"
},
"downloads": -1,
"filename": "snipar-0.0.18-cp39-cp39-win32.whl",
"has_sig": false,
"md5_digest": "74f09ede303e3c2fc447837013e2e035",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.7",
"size": 53246788,
"upload_time": "2023-07-11T18:29:51",
"upload_time_iso_8601": "2023-07-11T18:29:51.028092Z",
"url": "https://files.pythonhosted.org/packages/56/3e/53e605b39f2227c6d6e01f7c2ed9ede25bb00cd5504f59a8ea4e9b5d1d42/snipar-0.0.18-cp39-cp39-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ed5cb141bceaeec051e8d149bdac779422eda3119c3a245effd7181a997cde8b",
"md5": "7ecc9d57a4e689673d794af6b5cb8953",
"sha256": "269050a83abd46d44cefde292695e771575aca887bc75962480e10972df5ebe2"
},
"downloads": -1,
"filename": "snipar-0.0.18-cp39-cp39-win_amd64.whl",
"has_sig": false,
"md5_digest": "7ecc9d57a4e689673d794af6b5cb8953",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.7",
"size": 53276481,
"upload_time": "2023-07-11T18:29:56",
"upload_time_iso_8601": "2023-07-11T18:29:56.026913Z",
"url": "https://files.pythonhosted.org/packages/ed/5c/b141bceaeec051e8d149bdac779422eda3119c3a245effd7181a997cde8b/snipar-0.0.18-cp39-cp39-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-11 18:30:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "alexTISYoung",
"github_project": "snipar",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "snipar"
}