{ "info": { "author": "['Rahul Pisupati']", "author_email": "rahul.pisupati@gmi.oeaw.ac.at", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Programming Language :: Python :: 3.4", "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "# SNPmatch\n\nSNPmatch is a Python toolkit which can be used to genotype a sample from as-low-as as 4000 markers from the database lines. SNPmatch can genotype samples efficiently and economically using a simple likelihood approach.\n\n## Installation & Usage\n\nThe below steps deal with running SNPmatch on a local machine. This package is only tested in Python 2.\n\n### Installation using pip\n\nSNPmatch can be easily installed with the help of pip. SNPmatch uses various python packages (NumPy, pandas, [PyGWAS](https://github.com/timeu/PyGWAS), [scikit-allel](https://github.com/cggh/scikit-allel)), which are automatically downloaded and installed while using pip. Follow the commands below for successful installation.\n\n```bash\n## installing SNPmatch from git hub repository\npip install git+https://github.com/Gregor-Mendel-Institute/SNPmatch.git\n## or PyPi\npip install SNPmatch\n```\nSNPmatch can be installed either from the git repo or through PyPi. In case of installation errors, please install these dependencies using the commands below (for a Debian based system).\n```bash\nsudo apt-get install python-dev libfreetype6-dev libxft-dev libblas-dev liblapack-dev libatlas-base-dev libhdf5-dev gfortran\nsudo pip install NumPy\n```\nMac users can install these packages using [Homebrew](https://brew.sh/). These packages should be enough to install SNPmatch correctly. Please raise an issue in the Github repo if you still have trouble installing.\n\n### Database files\n\nDatabase files containing the known genotype information for many strains have to be provided as HDF5 formatted file. These can be generated with given markers or variants present in a VCF file. The database files can be generated with the functions given in SNPmatch. They are generated using the commands given below.\n\nThe below commands require BCFtools executable in the path environment. The database files are read using PyGWAS package. So the VCF files need to have biallelic SNPs only for now.\n\n```bash\nsnpmatch makedb -i input_database.vcf -o db\n```\n\nThe above command generates three files,\n * db.csv\n * db.hdf5\n * db.acc.hdf5\n\nThe two hdf5 files are the main database files used for further analysis. The files have the same information but are chunked for better efficiency. The files db.hdf5 and db.acc.hdf5 are given to the SNPmatch command under -d and -e options respectively.\n\nFor *Arabidopsis thaliana* users, we have made SNP database files for the `RegMap` and `1001Genomes` panel available and can be downloaded [here](https://gmioncloud-my.sharepoint.com/personal/uemit_seren_gmi_oeaw_ac_at/_layouts/15/guestaccess.aspx?folderid=0ca806e676c154094992a9e89e5341d43&authkey=AXJPl6GkD8vNPDZJwheb6uk).\n\n### Input file\n\nAs the input file, SNPmatch takes genotype information in two file formats (BED and VCF). Example input files are given in the folder [sample_files](https://github.com/Gregor-Mendel-Institute/SNPmatch/tree/master/sample_files). Briefly, BED files should be three tab-separated column with chromosome, position and genotype shown below.\n\n```\n1 125 0/0\n1 284 0/0\n1 336 0/0\n1 346 1/1\n1 353 0/0\n1 363 0/0\n1 465 0/0\n1 471 0/1\n1 540 0/0\n1 564 0/0\n1 597 0/0\n1 612 1/1\n1 617 0/1\n```\nVCF file in a default format in the [link](http://gatkforums.broadinstitute.org/gatk/discussion/1268/what-is-a-vcf-and-how-should-i-interpret-it). The main arguments required for SNPmatch are CHROM and POS in header and GT in the INFO column. PL (Normalized Phred-scaled likelihoods of the possible genotypes), if present improves the efficiency of SNPmatch.\n\n### Usage\n\nSNPmatch can be run as bash commands given below. A detailed manual for each command with -h.\n\n```bash\nsnpmatch inbred -i input_file -d db.hdf5 -e db.acc.hdf5 -o output_file\n# or\nsnpmatch parser -i input_file -o input_npz\nsnpmatch inbred -i input_npz -d db.hdf5 -e db.acc.hdf5 -o output_file\n```\n\n### AraGeno\n\nSNPmatch can be run directly for *A. thaliana* researchers as a web tool, [AraGeno](http://arageno.gmi.oeaw.ac.at)\n\n## Genotyping a hybrid\n\nSNPmatch can be used to identify hybrid individuals when parental strains are present in database. For such individuals, SNPmatch can be run in windows across the genome. The commands used to run are given below\n\n```bash\nsnpmatch cross -d db.hdf5 -e db.acc.hdf5 -i input_file -b window_size_in_bp -o output_file\n#to get a genetic map for the hybrid\nsnpmatch genotype_cross -e db.acc.hdf5 -p parent1xparent2 -i input_file -o output_file\n# or if parents have VCF files individually\nsnpmatch genotype_cross -p parent1.vcf -q parent2.vcf -i input_file -o output_file\n```\n\nThese scripts are implemented based on the *A. thaliana* genome sizes. But the global variable in csmatch [script](https://github.com/Gregor-Mendel-Institute/SNPmatch/blob/master/snpmatch/core/csmatch.py#L19) can be modified to the corresponding genome sizes.\n\n\n## Contributing\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## History\n\n- 1.9.2: Stable version, 24-08-2017\n- 2.0.0: Stable version, 26-01-2018\n- 2.1.0: Stable version, 09-08-2018\n\n\n## Credits\n\n- Rahul Pisupati (rahul.pisupati[at]gmi.oeaw.ac.at)\n- \u00dcmit Seren (uemit.seren[at]gmi.oeaw.ac.at)\n\n## Citation\n\nPisupati, R. *et al.*. Verification of *Arabidopsis* stock collections using SNPmatch, a tool for genotyping high-plexed samples. *Nature Scientific Data* **4**, 170184 (2017).\n[doi:10.1038/sdata.2017.184](https://www.nature.com/articles/sdata2017184)\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Gregor-Mendel-Institute/SNPmatch", "keywords": "Genotyping Low Coverage sequencing data", "license": "GMI", "maintainer": "", "maintainer_email": "", "name": "SNPmatch", "package_url": "https://pypi.org/project/SNPmatch/", "platform": "", "project_url": "https://pypi.org/project/SNPmatch/", "project_urls": { "Homepage": "https://github.com/Gregor-Mendel-Institute/SNPmatch" }, "release_url": "https://pypi.org/project/SNPmatch/2.2.0/", "requires_dist": [ "scipy (>=0.17.0)", "numpy (>=1.9.0)", "PyGWAS", "scikit-allel", "pandas" ], "requires_python": "", "summary": "A simple python library to identify the most likely strain given the SNPs for a sample", "version": "2.2.0" }, "last_serial": 4177207, "releases": { "1.2": [ { "comment_text": "", "digests": { "md5": "e75e3d2ed91abd3c807d1dea931aacfe", "sha256": "f8d1584e22f8da6df17e4b31905cade8d4daa1a9832865fbc22281fdf017bdc8" }, "downloads": -1, "filename": "SNPmatch-1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e75e3d2ed91abd3c807d1dea931aacfe", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9881, "upload_time": "2016-08-24T11:04:21", "url": "https://files.pythonhosted.org/packages/0f/f8/ff2fe7cf6fdfc43d4395302360c1feb3809f3f8028bcd84c9cc7cf983bea/SNPmatch-1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fdfbf91ba27f29b99571d50a06520728", "sha256": "8a11202d1ca97739fe40d3e911bbbbf1b88e3bda7e77396b54c5f65348a619e1" }, "downloads": -1, "filename": "SNPmatch-1.2.tar.gz", "has_sig": false, "md5_digest": "fdfbf91ba27f29b99571d50a06520728", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6330, "upload_time": "2016-08-24T11:04:18", "url": "https://files.pythonhosted.org/packages/7c/01/d0c50d5cfc75f1a2b0dd9a5be4ecc89c8ae74f59c6e2cea382814ba4afc1/SNPmatch-1.2.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "0f645dda8a1ffd06b63ee8d14f91f8e7", "sha256": "9ba83d8c9667974b8d6fbd8ac978370e3b1db8d522d48cb440731c6c58d393a4" }, "downloads": -1, "filename": "SNPmatch-1.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0f645dda8a1ffd06b63ee8d14f91f8e7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10174, "upload_time": "2016-09-13T12:49:06", "url": "https://files.pythonhosted.org/packages/3a/52/a5052fb4df0c419e68f64b6df9c6392186c03a27b661d8edaff30e78cea4/SNPmatch-1.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c57e91cd06bdc7ef82f12689336d9d5e", "sha256": "3eae20bd5b5924c64121ac775dac823b5844ed6d1701f189c4655fa0837036e1" }, "downloads": -1, "filename": "SNPmatch-1.2.1.tar.gz", "has_sig": false, "md5_digest": "c57e91cd06bdc7ef82f12689336d9d5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6546, "upload_time": "2016-09-13T12:49:09", "url": "https://files.pythonhosted.org/packages/1a/37/8b320fb8a91bad80f48a60521ed08ba93441f959564a8e3ce971f5c404b2/SNPmatch-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "3917fac2462595714da42400c276f2b9", "sha256": "29b9830b9aa683963ec7dd8c6c79e55da6bdce11b1ad4ca0faa60a793bb20f35" }, "downloads": -1, "filename": "SNPmatch-1.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3917fac2462595714da42400c276f2b9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10217, "upload_time": "2016-10-14T14:49:13", "url": "https://files.pythonhosted.org/packages/b4/bc/cfec2fc214b314221a82f004b8ca8cc6ca1ece764c991b005205b3de1179/SNPmatch-1.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ed4f32aa2e378462dab5ca78df676b75", "sha256": "d0292a5cc92334a9ba7fb3c09340807b00ffa26220cecda5a91279d8dc8df2e7" }, "downloads": -1, "filename": "SNPmatch-1.2.2.tar.gz", "has_sig": false, "md5_digest": "ed4f32aa2e378462dab5ca78df676b75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6590, "upload_time": "2016-10-14T14:49:10", "url": "https://files.pythonhosted.org/packages/c0/42/5f4fc7a5c411246ca1883a81fbf2c12e0017a23e9831379c276e73770beb/SNPmatch-1.2.2.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "fab582b3e673546a0206d2d20811dbff", "sha256": "7549ced68bdccf8bc60ff69e023c243fc88f00d286e4acefa144fdf38801c11c" }, "downloads": -1, "filename": "SNPmatch-1.4.tar.gz", "has_sig": false, "md5_digest": "fab582b3e673546a0206d2d20811dbff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8138, "upload_time": "2016-11-16T09:55:36", "url": "https://files.pythonhosted.org/packages/ee/7c/edb04485ba359ebce3c7c2752eb12b4077d77ab92728b69fda9b87dd66e4/SNPmatch-1.4.tar.gz" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "f2ef6f53141f46ce82ab5668e569b672", "sha256": "54672b8a84cc8befb4ceb28e7256d4974d880041bd4d02c8aaaab172fca57018" }, "downloads": -1, "filename": "SNPmatch-1.5.0.tar.gz", "has_sig": false, "md5_digest": "f2ef6f53141f46ce82ab5668e569b672", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8183, "upload_time": "2016-11-16T16:55:28", "url": "https://files.pythonhosted.org/packages/59/b7/7b2fd98864384dbd97ef48ab09a82d153cc1110084e5d74cd3a17365042f/SNPmatch-1.5.0.tar.gz" } ], "1.6.1": [ { "comment_text": "", "digests": { "md5": "8eff600d4106e7c087ce2bcce328fc1e", "sha256": "a0b54f2bf9c6e7325fffaf866dfcf2a1dda64881a6619a3b03a90daec4b61da0" }, "downloads": -1, "filename": "SNPmatch-1.6.1.tar.gz", "has_sig": false, "md5_digest": "8eff600d4106e7c087ce2bcce328fc1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10428, "upload_time": "2016-11-24T17:49:17", "url": "https://files.pythonhosted.org/packages/46/36/d16ee0d735dc7a9bc7520dd7c14558ace9f29cebf04d7d13d70aa176f38f/SNPmatch-1.6.1.tar.gz" } ], "1.7.0": [ { "comment_text": "", "digests": { "md5": "5ed9faea3d7e874d107b706e9d8a00e7", "sha256": "c391af27ab409724248d9e1850d9d521622ea2230dc211e3155e9f7c6fd8d54b" }, "downloads": -1, "filename": "SNPmatch-1.7.0.tar.gz", "has_sig": false, "md5_digest": "5ed9faea3d7e874d107b706e9d8a00e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10517, "upload_time": "2016-12-14T10:31:02", "url": "https://files.pythonhosted.org/packages/c9/86/ac638c7d00b983d4ef6143b61dfb82eed44c0cf18e9fc577f2dcd6127268/SNPmatch-1.7.0.tar.gz" } ], "1.7.1": [ { "comment_text": "", "digests": { "md5": "3b1d8b4fd1294aed03076f0fe86caee6", "sha256": "e61bb07867fd65cabdf8bb04a2ba94599a2453a8150c0ba4afd96df465cec75f" }, "downloads": -1, "filename": "SNPmatch-1.7.1.tar.gz", "has_sig": false, "md5_digest": "3b1d8b4fd1294aed03076f0fe86caee6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10700, "upload_time": "2016-12-15T11:57:00", "url": "https://files.pythonhosted.org/packages/1d/56/7c57553497e3f574de7cbb5fd98869de5278738692886cc9f7aeaf98b421/SNPmatch-1.7.1.tar.gz" } ], "1.7.2": [ { "comment_text": "", "digests": { "md5": "355744a57deee76bcd8a083b1756e49e", "sha256": "b91eb403458f9428137299b9bc7881b0884ec44412c9d7b106296fd4bf0a7ef9" }, "downloads": -1, "filename": "SNPmatch-1.7.2.tar.gz", "has_sig": false, "md5_digest": "355744a57deee76bcd8a083b1756e49e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10805, "upload_time": "2016-12-15T14:43:28", "url": "https://files.pythonhosted.org/packages/74/ce/61af4e387243f6e64371c5fd860295e316e2a435f16d4f31354f0744b0fe/SNPmatch-1.7.2.tar.gz" } ], "1.9.1": [ { "comment_text": "", "digests": { "md5": "d677ca723fa40051469fca3541a195fd", "sha256": "8588f8f56e91d65fcff34722f0d39b7ae785950b909c620e7e49b88714707791" }, "downloads": -1, "filename": "SNPmatch-1.9.1.tar.gz", "has_sig": false, "md5_digest": "d677ca723fa40051469fca3541a195fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14565, "upload_time": "2017-08-24T09:42:49", "url": "https://files.pythonhosted.org/packages/12/2a/c6c69ac18694e2f02f13581b5924b01e3e6d23c17468905cc1fe7f665566/SNPmatch-1.9.1.tar.gz" } ], "1.9.2": [ { "comment_text": "", "digests": { "md5": "62ea72765a7b70f052f10b4eb7081a46", "sha256": "15123b8eb954ab528e028422dccd75086b37c806deab630132aef6840ce416f6" }, "downloads": -1, "filename": "SNPmatch-1.9.2.tar.gz", "has_sig": false, "md5_digest": "62ea72765a7b70f052f10b4eb7081a46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17002, "upload_time": "2017-09-01T12:26:39", "url": "https://files.pythonhosted.org/packages/82/ea/4550e5222122f5b3a6f514151658228dbb448f447b007bd1e16e9249a690/SNPmatch-1.9.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "8cf388f3eb2798c6ed415f8b39cdf1e5", "sha256": "852f537de09c4f9f3f1293ac7a81ac5b85f426aaa9bc65cc329de6ead12d86db" }, "downloads": -1, "filename": "SNPmatch-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8cf388f3eb2798c6ed415f8b39cdf1e5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 23183, "upload_time": "2018-08-08T13:02:56", "url": "https://files.pythonhosted.org/packages/6b/31/f43004291b4b4457a553aa285442ead4790caee38178bf636211fb3b8e4d/SNPmatch-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "103d900cdb52becffa22878d3709432a", "sha256": "53f026000b40ed37db1305ca5e77b2184d9fa3b14df80518a4aea6a616e80adf" }, "downloads": -1, "filename": "SNPmatch-2.0.0.tar.gz", "has_sig": false, "md5_digest": "103d900cdb52becffa22878d3709432a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19215, "upload_time": "2018-08-08T13:02:58", "url": "https://files.pythonhosted.org/packages/03/e2/9c7fc8d2ac8cf6b57a256a8bcb9af3d40f4e89bfda0ae8f14edd23f49580/SNPmatch-2.0.0.tar.gz" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "d9a38de759078f0fe669846f60ac9871", "sha256": "0527ba1618c4e216a062317bf9e54229aa54adaaf48102cac06e182ba615f769" }, "downloads": -1, "filename": "SNPmatch-2.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d9a38de759078f0fe669846f60ac9871", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20510, "upload_time": "2018-08-16T16:22:03", "url": "https://files.pythonhosted.org/packages/b9/6a/125a37f33a1673e3e23549eb8ffbcc60ec176a7ff35c9390fc84d5fceb55/SNPmatch-2.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f1dcdd254d9d740b1a5300ab37efdbf", "sha256": "08cf90565d2734c5a03d4dc82b5ac3ab857554f79fc394d28c358e64251388c1" }, "downloads": -1, "filename": "SNPmatch-2.2.0.tar.gz", "has_sig": false, "md5_digest": "0f1dcdd254d9d740b1a5300ab37efdbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19418, "upload_time": "2018-08-16T16:22:05", "url": "https://files.pythonhosted.org/packages/90/ee/73aa30324a2bccadc6ee62f863b72fd1f45657b6ca63ef8d7abebd60af41/SNPmatch-2.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d9a38de759078f0fe669846f60ac9871", "sha256": "0527ba1618c4e216a062317bf9e54229aa54adaaf48102cac06e182ba615f769" }, "downloads": -1, "filename": "SNPmatch-2.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d9a38de759078f0fe669846f60ac9871", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20510, "upload_time": "2018-08-16T16:22:03", "url": "https://files.pythonhosted.org/packages/b9/6a/125a37f33a1673e3e23549eb8ffbcc60ec176a7ff35c9390fc84d5fceb55/SNPmatch-2.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f1dcdd254d9d740b1a5300ab37efdbf", "sha256": "08cf90565d2734c5a03d4dc82b5ac3ab857554f79fc394d28c358e64251388c1" }, "downloads": -1, "filename": "SNPmatch-2.2.0.tar.gz", "has_sig": false, "md5_digest": "0f1dcdd254d9d740b1a5300ab37efdbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19418, "upload_time": "2018-08-16T16:22:05", "url": "https://files.pythonhosted.org/packages/90/ee/73aa30324a2bccadc6ee62f863b72fd1f45657b6ca63ef8d7abebd60af41/SNPmatch-2.2.0.tar.gz" } ] }