{ "info": { "author": "John Lees and Nicholas Croucher", "author_email": "john@johnlees.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "# PopPUNK (POPulation Partitioning Using Nucleotide Kmers)\n\n[![Dev build Status](https://dev.azure.com/jlees/PopPUNK/_apis/build/status/johnlees.PopPUNK?branchName=master)](https://dev.azure.com/jlees/PopPUNK/_build/latest?definitionId=1&branchName=master)\n[![Stable build Status](https://travis-ci.org/johnlees/PopPUNK.svg?branch=v1.1.6)](https://travis-ci.org/johnlees/PopPUNK/)\n[![Documentation Status](https://readthedocs.org/projects/poppunk/badge/?version=latest)](https://poppunk.readthedocs.io/)\n[![PyPI version](https://badge.fury.io/py/poppunk.svg)](https://badge.fury.io/py/poppunk)\n[![Anaconda package](https://anaconda.org/bioconda/poppunk/badges/version.svg)](https://anaconda.org/bioconda/poppunk)\n\nStep 1) Use k-mers to calculate core and accessory distances\n\nStep 2) Use core and accessory distance distribution to define strains\n\nStep 3) Pick references from strains, which can be used to assign new\nquery sequences\n\nSee the [documentation](http://poppunk.readthedocs.io/en/latest/) and the\n[paper](https://doi.org/10.1101/gr.241455.118).\n\nIf you find PopPUNK useful, please cite as:\n\nLees JA, Harris SR, Tonkin-Hill G, Gladstone RA, Lo SW, Weiser JN, Corander J, Bentley SD, Croucher NJ.\nFast and flexible bacterial genomic epidemiology with PopPUNK. *Genome Research* **29**:304-316 (2019).\ndoi:[10.1101/gr.241455.118](https://doi.org/10.1101/gr.241455.118)\n\n## Installation\n\n### Through conda (recommended)\n\nThe easiest way is through conda, which is most easily accessed by first\ninstalling [miniconda](https://conda.io/miniconda.html). PopPUNK can then\nbe installed by running:\n```\nconda install poppunk\n```\nIf the package cannot be found you will need to add the necessary channels:\n```\nconda config --add channels defaults\nconda config --add channels bioconda\nconda config --add channels conda-forge\n```\n\n### Through pip\nIf you do not have conda you can also install through pip:\n```\npython3 -m pip install poppunk\n```\nYou will need to be using Python 3.\n\nUsing both of these methods command `poppunk` will then be directly executable.\nAlternatively clone this repository:\n```\ngit clone git@github.com:johnlees/PopPUNK.git\n```\nThen run with `python poppunk-runner.py`.\n\n## Quick usage\nEasy run mode, go from assemblies to clusters of strains:\n```\npoppunk --easy-run --r-files reference_list.txt --output poppunk_db\n```\n\nOr in two parts. First, create the database:\n```\npoppunk --create-db \\\n --r-files reference_list.txt \\\n --output poppunk_db \\\n --threads 2 \\\n --k-step 2 \\\n --min-k 9 \\\n --plot-fit 5\n```\n\nThen fit the model:\n```\npoppunk --fit-model \\\n --ref-db poppunk_db \\\n --distances poppunk_db/poppunk_db.dists \\\n --output poppunk_db \\\n --full-db \\\n --K 2\n```\n\nOnce fitted, new query sequences can quickly be assigned:\n```\npoppunk --assign-query \\\n --ref-db poppunk_db \\\n --q-files query_list.txt \\\n --output query_results \\\n --update-db\n```\n\nIf running without having installed through conda or pip,\nrun `python poppunk-runner.py` instead of `poppunk`.\n\nSee the [documentation](http://poppunk.readthedocs.io/en/latest/) for\nfull details.\n\n## Other installation notes\n\nInstalling via conda takes care of all dependencies. For other methods you will\nneed to install the packages listed under dependencies.\n\nIf you wish to use the [/scripts](https://poppunk.readthedocs.io/en/latest/scripts.html)\nyou will need to clone the github.\n\n### Dependencies\n\nYou will need a [mash](http://mash.readthedocs.io/en/latest/) installation\nwhich is v2.0 or higher.\n\nThe following python packages are required, which can be installed\nthrough `pip`. In brackets are the versions we used:\n\n* python3\n* `DendroPy` (4.3.0)\n* `hdbscan` (0.8.13)\n* `matplotlib` (2.1.2)\n* `networkx` (2.1)\n* `numba` (0.36.2)\n* `numpy` (1.14.1)\n* `pandas` (0.22.0)\n* `scikit-learn` (0.19.1)\n* `scipy` (1.0.0)\n* `sharedmem` (0.3.5)\n\nTo install `numba` through pip, you may need `gcc >=v4.8` for it to work correctly.\n\n### Test installation\nRun the following command:\n```\ncd test && python run_test.py\n```\n\nIf successful, you can clean the test data by running:\n```\ncd test && python clean_test.py\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/johnlees/PopPUNK", "keywords": "bacteria genomics population-genetics k-mer", "license": "Apache Software License", "maintainer": "", "maintainer_email": "", "name": "poppunk", "package_url": "https://pypi.org/project/poppunk/", "platform": "", "project_url": "https://pypi.org/project/poppunk/", "project_urls": { "Homepage": "https://github.com/johnlees/PopPUNK" }, "release_url": "https://pypi.org/project/poppunk/1.1.7/", "requires_dist": null, "requires_python": ">=3.4.0", "summary": "PopPUNK (POPulation Partitioning Using Nucleotide Kmers)", "version": "1.1.7" }, "last_serial": 5772095, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f88ceb158b1121775d70eae562e5a5e0", "sha256": "f2ae569b2900049f686edf5f2e9051dfdfd9bffcce90d32e8433481fd08df910" }, "downloads": -1, "filename": "poppunk-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f88ceb158b1121775d70eae562e5a5e0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 40551, "upload_time": "2018-06-04T21:53:58", "url": "https://files.pythonhosted.org/packages/ac/e1/dfaa3df8c0bf1b226e97fe0d232bba8742038f766ecaba16d0140dc5a611/poppunk-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6cc58f5b5117687b2d210be3ea92cdaa", "sha256": "49463af2e3ba692bac2acca0f18ab3b38b79d10f88d05d897e22c60a770eaebd" }, "downloads": -1, "filename": "poppunk-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6cc58f5b5117687b2d210be3ea92cdaa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34823, "upload_time": "2018-06-04T21:53:59", "url": "https://files.pythonhosted.org/packages/2d/c5/eeb0bfb623b9a924da3ffd3386232de3f4a3b65ee59af69c5d92b5306c30/poppunk-0.1.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "5d0b5cccd4837ae22c66005cef672b09", "sha256": "ff26973493b06ac585e064b76c9053311a89dcca335dfed088502d03115bd458" }, "downloads": -1, "filename": "poppunk-1.0.0.tar.gz", "has_sig": false, "md5_digest": "5d0b5cccd4837ae22c66005cef672b09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37355, "upload_time": "2018-06-13T18:19:49", "url": "https://files.pythonhosted.org/packages/f9/60/494d51dc56b4b1dd11fad32d37ec9852e8a45b11334b9334d9050361b52a/poppunk-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "4237871af0025baadc0039a98f1a3e75", "sha256": "2bce54d41796346ac2d2661890e98d386abf1deabe4adfa176021c52012c127e" }, "downloads": -1, "filename": "poppunk-1.0.1.tar.gz", "has_sig": false, "md5_digest": "4237871af0025baadc0039a98f1a3e75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39085, "upload_time": "2018-06-19T19:25:13", "url": "https://files.pythonhosted.org/packages/12/7c/339c84a4c6b233f3f05e2da8735725b476638dc1117940eba64a02a3f79e/poppunk-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "54b1ca290add36ec3ca8753e6bec5d75", "sha256": "2f2f94c5080307ba6233ec8df0db81e3390ab087eac78187052e8cb0be705377" }, "downloads": -1, "filename": "poppunk-1.0.2.tar.gz", "has_sig": false, "md5_digest": "54b1ca290add36ec3ca8753e6bec5d75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40135, "upload_time": "2018-06-25T19:30:46", "url": "https://files.pythonhosted.org/packages/d4/26/d02de990c6281dc3e80576dcde2642511697ea039cf495c563ab8b9f33c5/poppunk-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "db3e68e0a6fadfa400ccef4320130bd9", "sha256": "1ac6008181ed746671d1a150faca69fabd79f18d828ed37d8d666dd7e2e49d07" }, "downloads": -1, "filename": "poppunk-1.0.3.tar.gz", "has_sig": false, "md5_digest": "db3e68e0a6fadfa400ccef4320130bd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40398, "upload_time": "2018-07-05T16:15:43", "url": "https://files.pythonhosted.org/packages/a0/dd/29876df3b1561d8c46d5d9a1060c54a10770362b55a0299603105efe9bbf/poppunk-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "871d8cbedf6c4ed133bc3012841896d1", "sha256": "612469180ca11930b12c0daca92f3b99e714528e33fdf1c7d22ac8312c974faa" }, "downloads": -1, "filename": "poppunk-1.0.4.tar.gz", "has_sig": false, "md5_digest": "871d8cbedf6c4ed133bc3012841896d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40388, "upload_time": "2018-08-01T14:27:32", "url": "https://files.pythonhosted.org/packages/7e/b6/0ad46261cbe249e0a0d9e2ba0c6b508e9246010cf295a101d39215f1e4f8/poppunk-1.0.4.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "bc4eb3a1fe6d44499db4f6a952231d3f", "sha256": "6195e32db86e97e5c144b2ac5d2807194b8905377bf49f58400d4c3b4486d6bb" }, "downloads": -1, "filename": "poppunk-1.1.0.tar.gz", "has_sig": false, "md5_digest": "bc4eb3a1fe6d44499db4f6a952231d3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40974, "upload_time": "2018-08-09T17:05:43", "url": "https://files.pythonhosted.org/packages/12/46/b7d5b574bfdaa91d010d805499258587bb06b7769ea5588b9d26e7eba1ff/poppunk-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "e219ebf1d32b9386385d2ae1e32f34a4", "sha256": "4220459b9af20048a91f7be6695c88c7d21aa58d74b65fc93e213122add6b47e" }, "downloads": -1, "filename": "poppunk-1.1.1.tar.gz", "has_sig": false, "md5_digest": "e219ebf1d32b9386385d2ae1e32f34a4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 42515, "upload_time": "2018-09-13T20:13:55", "url": "https://files.pythonhosted.org/packages/ac/b8/c26ea880d1bad76ac4a5ee376800bbe59cda9b281c5d446184e9289a4d26/poppunk-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "1279d155f6e4ca0510d34e622c045ce3", "sha256": "e1a0767a4d7d44ecfd6cefb78e38f2918c844abd7a67c894bc1cfac6a3a2de8a" }, "downloads": -1, "filename": "poppunk-1.1.2.tar.gz", "has_sig": false, "md5_digest": "1279d155f6e4ca0510d34e622c045ce3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 42508, "upload_time": "2018-09-14T12:55:57", "url": "https://files.pythonhosted.org/packages/00/61/eb67e207abc8f93f734e1f0f3428889070de21412042df32ef50b0f5811d/poppunk-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "e487d91f963618508470790ddf3d4d94", "sha256": "66caa232fac2f41c393b0154036803e69183eb603f1f8fa4de4b98555c70e9f3" }, "downloads": -1, "filename": "poppunk-1.1.3.tar.gz", "has_sig": false, "md5_digest": "e487d91f963618508470790ddf3d4d94", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 43274, "upload_time": "2018-09-28T18:28:31", "url": "https://files.pythonhosted.org/packages/da/b9/51e4db3c2c1eec8713afc2299d7839d7fae5f41a9ea93bccbf08a351266e/poppunk-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "3715f5a53692601e9ec89f60d625d35b", "sha256": "dff7ddc9080c45c6bcec8a9bf272c5556483ca6230e4867f6fef14d2b7d675f3" }, "downloads": -1, "filename": "poppunk-1.1.4.tar.gz", "has_sig": false, "md5_digest": "3715f5a53692601e9ec89f60d625d35b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 45233, "upload_time": "2019-02-20T21:43:53", "url": "https://files.pythonhosted.org/packages/30/65/545ccb74943d9aca28ab0e7cccbcda1180cd92fc1b752e58578ac55cf01b/poppunk-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "4c541309f8b5c90252cc4c411733ff9c", "sha256": "7bd0cb3970883abe6747b7be78f113e1bdc1bcd76698e6c7ec94729d6c6c6c6d" }, "downloads": -1, "filename": "poppunk-1.1.5.tar.gz", "has_sig": false, "md5_digest": "4c541309f8b5c90252cc4c411733ff9c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 45670, "upload_time": "2019-03-11T15:06:58", "url": "https://files.pythonhosted.org/packages/40/a2/15f9c3dde687d43a38948bb36310de52b6c5ea7ac6f639e0edb8e508fefe/poppunk-1.1.5.tar.gz" } ], "1.1.6": [ { "comment_text": "", "digests": { "md5": "0cbc8a50e9bf203542d1aa8a98733fa1", "sha256": "2bf88d6fd6dd24885d746b617d42cc73d3bef502fc4718e85e47dc5e2697804a" }, "downloads": -1, "filename": "poppunk-1.1.6.tar.gz", "has_sig": false, "md5_digest": "0cbc8a50e9bf203542d1aa8a98733fa1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 47001, "upload_time": "2019-05-14T15:12:17", "url": "https://files.pythonhosted.org/packages/83/24/3228bd82adbc01a7346203c92d273cc95aa8fc9b4ffdd961dee44d3ad341/poppunk-1.1.6.tar.gz" } ], "1.1.7": [ { "comment_text": "", "digests": { "md5": "59fdd61754ba8c77c571169305eaa15e", "sha256": "17c15878cc0bbd39223bb28131384f5b2efa34808e68487216a84e151c05e608" }, "downloads": -1, "filename": "poppunk-1.1.7.tar.gz", "has_sig": false, "md5_digest": "59fdd61754ba8c77c571169305eaa15e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 47687, "upload_time": "2019-09-02T18:15:51", "url": "https://files.pythonhosted.org/packages/4b/d5/0a2642ab4af8290815b4b5cad21840d35cc4d14cdf0ca1dbc1a59cbb0cd3/poppunk-1.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "59fdd61754ba8c77c571169305eaa15e", "sha256": "17c15878cc0bbd39223bb28131384f5b2efa34808e68487216a84e151c05e608" }, "downloads": -1, "filename": "poppunk-1.1.7.tar.gz", "has_sig": false, "md5_digest": "59fdd61754ba8c77c571169305eaa15e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 47687, "upload_time": "2019-09-02T18:15:51", "url": "https://files.pythonhosted.org/packages/4b/d5/0a2642ab4af8290815b4b5cad21840d35cc4d14cdf0ca1dbc1a59cbb0cd3/poppunk-1.1.7.tar.gz" } ] }