{ "info": { "author": "Jason Kwong", "author_email": "kwongj@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: Bio-Informatics", "Topic :: Scientific/Engineering :: Medical Science Apps." ], "description": "[![Build Status](https://travis-ci.org/MDU-PHL/ngmaster.svg?branch=master)](https://travis-ci.org/MDU-PHL/ngmaster)\n[![License: GPLv2](https://img.shields.io/badge/License-GPL_2.0-blue.svg)](https://www.gnu.org/licenses/gpl-2.0)\n![Python 3.6](https://img.shields.io/badge/Language-Python_3.6-steelblue.svg)\n\n# ngmaster\n\n*In silico* multi-antigen sequence typing for *Neisseria gonorrhoeae* (NG-MAST). \n\n## Synopis\n```\n% ngmaster.py gono.fa\nID NG-MAST POR TBPB\ngono.fa 10699 6277 4\n```\n\n## Dependencies\n\n* [Python >= 3.6](https://www.python.org/)\n* [BioPython](http://biopython.org/)\n* [isPcr >= v33x2](http://hgwdev.cse.ucsc.edu/~kent/src/) by Jim Kent\n\n## Installation\n\n### PiPy\n```\npip3 install ngmaster\n```\n### Brew\n```\nbrew install brewsci/bio/ngmaster # COMING SOON\n```\n### Conda\n```\nconda install -c bioconda -c conda-forge ngmaster # COMING SOON\n```\n\n## Test\n\nOnce installed, you can run the following to ensure `ngmaster` is successfully working:\n\n $ ngmaster --test\n\nIf everything works, you will see the following:\n\n```\nRunning ngmaster.py on test example (NG-MAST 10699) ...\n$ ngmaster.py test/test.fa\nID NG-MAST POR TBPB\ntest.fa 10699 6277 4\n... Test successful.\n```\n\n## Usage\n\n $ ngmaster -h\n\n usage:\n ngmaster [OPTIONS] ... \n\n In silico multi-antigen sequence typing for Neisseria gonorrhoeae (NG-MAST)\n\n Please cite as:\n Kwong JC, Goncalves da Silva A, Howden BP and Seemann T.\n NGMASTER: in silico multi-antigen sequence typing for Neisseria gonorrhoeae (NG-MAST)\n GitHub: https://github.com/MDU-PHL/ngmaster\n\n positional arguments:\n FASTA input FASTA files eg. fasta1, fasta2, fasta3 ... fastaN\n\n optional arguments:\n -h, --help show this help message and exit\n --db DB specify custom directory containing allele databases\n directory must contain database files \"POR.tfa\", \"TBPB.tfa\", and \"ng_mast.txt\"\n --csv output comma-separated format (CSV) rather than tab-separated\n --printseq FILE specify filename to save allele sequences to (default=off)\n --updatedb update allele database from \n --test run test example\n --version show program's version number and exit\n\n\n## Quick start\n\n**To perform *in silico* NG-MAST on FASTA files:**\n\n`$ ngmaster ... `\n\nThe NG-MAST result and allele numbers are printed in tab-separated format to `stdout`.\n* If an allele is not found (ie. unable to located with primers), the allele result is \"`\u2013`\".\n* If an allele is found (ie. located with primers), but the conserved region containing the starting key motif required for sequence trimming cannot be located, the allele result is \"`no_key`\".\n* If an allele is found (ie. located with primers), but the trimmed sequence is novel, and not in the current database, the allele result is \"`new`\".\n\n**To save results to a tab-separated text file, redirect `stdout`:**\n\n`$ ngmaster ... > results.txt`\n\n**To display results in comma-separated format, use the `--csv` option:**\n\n`$ ngmaster --csv ... `\n\n**To save sequences of the alleles to a file (eg. for uploading \"new\" sequences to [http://www.ng-mast.net](http://www.ng-mast.net/)):**\n\n`$ ngmaster --printseq [filename] ... `\n\n## Updating the allele databases\n\n**To update the allele databases from http://www.ng-mast.net :** \n*Warning: This will overwrite the existing databases so ensure you back them up if you wish to keep them.*\n\n $ ngmaster.py --updatedb\n\nA copy of the old database is saved just in case, but is overwritten with each subsequent ```--updatedb```.\n\n**To update the allele databases into a different folder (ie. not the /db folder in the ngmaster directory):**\n\n $ ngmaster.py --updatedb --db path/to/folder\n\nThis will download the database files into the folder ```path/to/folder```.\nThis can then be specified when running ngmaster using the ```--db path/to/folder``` option.\n\n## Creating a custom allele database\n\n1. Create custom database files: `POR.tfa`, `TBPB.tfa`, `ng_mast.txt` \n See default `db` directory for examples. \n `POR.tfa` and `TBPB.tfa` contain the respective allele sequences in FASTA format. \n `ng_mast.txt` contains a list of NG-MAST types and the corresponding allele types.\n\n2. Place the custom database files in a folder.\n\n3. Specify the path to that custom database folder: \n `$ ngmaster --db [/path/to/custom/folder/] ... `\n\n## Citation\n\nKwong JC, Gon\u00e7alves da Silva A, Dyet K, Williamson DA, Stinear TP, Howden BP and Seemann T. \n_NGMASTER: in silico multi-antigen sequence typing for Neisseria gonorrhoeae_\n**Microbial Genomics**\n2016 Aug 25;2(8):e000076.\nPMID:[28348871](https://www.ncbi.nlm.nih.gov/pubmed/28348871)\nDOI:[10.1099/mgen.0.000076](https://doi.org/10.1099/mgen.0.000076)\n\n## Bugs\n\n### Software\nPlease submit via the [GitHub issues page](https://github.com/MDU-PHL/ngmaster/issues). \n\n### Database\nNote that the NG-MAST databases and website are curated and hosted at the\nDepartment of Infectious Disease Epidemiology, Imperial College London. For\nissues with the NG-MAST databases, please contact the [NG-MAST\ncurator](mailto:d.aanensen@imperial.ac.uk).\n\n## Software Licence\n\n[GPLv2](https://github.com/MDU-PHL/ngmaster/blob/master/LICENSE)\n\n## References\n\n* Martin et al. J Infect Dis, 2004 Apr 15; 189(8): 1497-1505. \n* See also [http://www.ng-mast.net](http://www.ng-mast.net/).\n\n## Authors\n\n* Jason Kwong (@kwongjc)\n* Anders Gon\u00e7alves da Silva (@drandersgs)\n* Mark Schultz (@schultzm)\n* Torsten Seemann (@torstenseemann)\n\n## Development\n\nWhen incrementing version (i.e., minor patch), run the following:\n\n```\nbumpversion --verbose --dry-run --new-version patch\nbumpversion --new-version patch\n```\n\nThe same can be done for `minor` and `major` numbers.\n\nThis will automatically commit and tag the commit with the new version number.\nIt will also update the necessary location in the file.\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/MDU-PHL/ngmaster", "keywords": "microbial genomics Neisseria sequence typing", "license": "GPLv2", "maintainer": "", "maintainer_email": "", "name": "ngmaster", "package_url": "https://pypi.org/project/ngmaster/", "platform": "", "project_url": "https://pypi.org/project/ngmaster/", "project_urls": { "Homepage": "https://github.com/MDU-PHL/ngmaster" }, "release_url": "https://pypi.org/project/ngmaster/0.5.5/", "requires_dist": [ "argparse", "biopython", "bs4", "requests" ], "requires_python": ">=3.6", "summary": "In silico multi-antigen sequence typing for Neisseria gonorrhoeae (NG-MAST)", "version": "0.5.5" }, "last_serial": 4331179, "releases": { "0.5.4": [ { "comment_text": "", "digests": { "md5": "11797083be98878110735b8a485aaf06", "sha256": "fbf5e37ea56af43ac42573cf901891651b0ec114a5e9a69e306845ca57c9c077" }, "downloads": -1, "filename": "ngmaster-0.5.4-py3-none-any.whl", "has_sig": false, "md5_digest": "11797083be98878110735b8a485aaf06", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 1010558, "upload_time": "2018-10-02T04:16:30", "url": "https://files.pythonhosted.org/packages/4d/80/abedd4d7636b07a503d907dd81494020d6b8eecf549cc0daa0ef8301bc54/ngmaster-0.5.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "42da84f082454d4328f49258ebe66b52", "sha256": "e91aac6c5b891c2aa759564857c787029229ff4ea181baf2f5833aa26cc573b3" }, "downloads": -1, "filename": "ngmaster-0.5.4.tar.gz", "has_sig": false, "md5_digest": "42da84f082454d4328f49258ebe66b52", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 930936, "upload_time": "2018-10-02T04:16:35", "url": "https://files.pythonhosted.org/packages/a0/06/d7ff9759033f5fa0aa9946ff366b8f0e2371e0aaf51c91435793c176d385/ngmaster-0.5.4.tar.gz" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "d65728d8f57ad6202f2eca7ddf36e831", "sha256": "aa7b261ad4962de0b6035817fcba143e652a204ae4e10dd385d60f0f94d82fd4" }, "downloads": -1, "filename": "ngmaster-0.5.5-py3-none-any.whl", "has_sig": false, "md5_digest": "d65728d8f57ad6202f2eca7ddf36e831", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 1010557, "upload_time": "2018-10-02T04:16:33", "url": "https://files.pythonhosted.org/packages/2c/5a/125c5b39b685db4e4b56ca2eefafe571d70cd9d035ec3434b91540211725/ngmaster-0.5.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f5364e67cfba1cd58aec2f8e5bef84a", "sha256": "ab0431272a3d1ca94020691ddc374f7a3892634cdce18a8c18fb2b923e82aea5" }, "downloads": -1, "filename": "ngmaster-0.5.5.tar.gz", "has_sig": false, "md5_digest": "0f5364e67cfba1cd58aec2f8e5bef84a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 930950, "upload_time": "2018-10-02T04:16:38", "url": "https://files.pythonhosted.org/packages/74/37/1e13329686d0458cd138e630552dcdcb4034a66c401a6b82e09ff3dbb396/ngmaster-0.5.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d65728d8f57ad6202f2eca7ddf36e831", "sha256": "aa7b261ad4962de0b6035817fcba143e652a204ae4e10dd385d60f0f94d82fd4" }, "downloads": -1, "filename": "ngmaster-0.5.5-py3-none-any.whl", "has_sig": false, "md5_digest": "d65728d8f57ad6202f2eca7ddf36e831", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 1010557, "upload_time": "2018-10-02T04:16:33", "url": "https://files.pythonhosted.org/packages/2c/5a/125c5b39b685db4e4b56ca2eefafe571d70cd9d035ec3434b91540211725/ngmaster-0.5.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f5364e67cfba1cd58aec2f8e5bef84a", "sha256": "ab0431272a3d1ca94020691ddc374f7a3892634cdce18a8c18fb2b923e82aea5" }, "downloads": -1, "filename": "ngmaster-0.5.5.tar.gz", "has_sig": false, "md5_digest": "0f5364e67cfba1cd58aec2f8e5bef84a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 930950, "upload_time": "2018-10-02T04:16:38", "url": "https://files.pythonhosted.org/packages/74/37/1e13329686d0458cd138e630552dcdcb4034a66c401a6b82e09ff3dbb396/ngmaster-0.5.5.tar.gz" } ] }