{ "info": { "author": "EnteroBase development team", "author_email": "zhemin.zhou@warwick.ac.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "# GrapeTree\n\n[![Build Status](https://travis-ci.org/achtman-lab/GrapeTree.svg?branch=master)](https://travis-ci.org/achtman-lab/GrapeTree)\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Docs Status](https://readthedocs.org/projects/enterobase/badge/)](http://enterobase.readthedocs.io/en/latest/grapetree/grapetree-about.html)\n\n**[Click here for the live demo of GrapeTree!](https://achtman-lab.github.io/GrapeTree/MSTree_holder.html)**\n\nGrapeTree is an integral part of EnteroBase and we advise that you use GrapeTree\nthrough EnteroBase for the best results. However, many people have asked for a\nstand-alone GrapeTree version that they could use offline or integrate into the\nother applications.\n\nThe stand-alone version emulates the EnteroBase version through a lightweight\nwebserver running on your local computer. You will be interacting with the\nprogram as you would in EnteroBase; through a web browser. We recommend\n[Google Chrome](https://www.google.com/chrome/index.html) for best results.\n\n**For detailed help please see: [http://enterobase.readthedocs.io/en/latest/grapetree/grapetree-about.html](http://enterobase.readthedocs.io/en/latest/grapetree/grapetree-about.html)**\n\n**For a formal description, please see the accepted manuscript in Genome Research: [https://doi.org/10.1101/gr.232397.117\n](https://doi.org/10.1101/gr.232397.117\n)**\n\n## Installing and Running GrapeTree\nThere are number of different ways to interact with GrapeTree, for **best results install via pip** :\n\n```\npip install grapetree\ngrapetree\n```\n\n**We also have ready-made binaries for download here: [https://github.com/achtman-lab/GrapeTree/releases](https://github.com/achtman-lab/GrapeTree/releases)**\n\n**Running on Mac: Download GrapeTree_mac.zip**\n\nYou will need to unzip GrapeTree_mac.zip (just double click). Inside there will\nbe an app you can drag into your Applications folder. You may be warned about\nSecurity settings, if you right click on the GrapeTree app and then click \"Open\"\nit should be fine.\n\n**Running on Windows: Download GrapeTree_win.zip**\n\nOnce downloaded, you will need to untzip GrapeTree_win.zip and then open the\nextracted folder and run GrapeTree_win.exe. When you run it the first time on\nwindows you might get a prompt about security. On Windows 10, click the small\ntext: \"More info\", and then the button \"Run Anyway\".\n\n**Running from Source code**\n\nGrapeTree requires [Python 2.7](https://www.python.org/downloads/release/python-2712/) or [Python 3.6](https://www.python.org/downloads/release/python-360/)\nand some additional python modules (listed in requirements.txt). The easiest way\nto install these modules is with pip:\n\n```\npip install -r requirements.txt\nchmod +x binaries/\n```\nOn Linux or MacOSX you need to make sure the binaries in binaries/ can be\nexecuted. To run GrapeTree;\n\n1. Navigate to the directory where you installed GrapeTree.\n1. Run it through python as below.\n\n```\n\\GrapeTree>python grapetree.py\n * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)\n```\n\nThe program will automatically open your web browser and you will see the\nGrapeTree Splash Screen. If at anytime you want to restart the page you can\nvisit [http://localhost:8000](http://localhost:8000) in your web browser. To\nview a tree (newick or Nexus) or create a tree from an allele profile, just drag\nand drop the file into the browser window.\n\n### Configuration\nRuntime behaviour can be configured in grapetree/config.py.\n\nDevelopers may wish to look at the [JavaScript documentation](https://achtman-lab.github.io/GrapeTree/documentation/developer/index.html) (JSDoc).\n\n### Tests\nTo run tests, run pytests in the top level directory.\n```\npytest\n\n```\n\n## Usage - Command line module for generating Trees\n```\n>grapetree -h\nusage: MSTrees.py [-h] --profile FNAME [--method TREE] [--matrix MATRIX_TYPE]\n [--recraft] [--missing HANDLER] [--wgMLST]\n [--heuristic HEURISTIC] [--n_proc NUMBER_OF_PROCESSES]\n [--check]\n\nFor details, see \"https://github.com/achtman-lab/GrapeTree/blob/master/README.md\".\nIn brief, GrapeTree generates a NEWICK tree to the default output (screen)\nor a redirect output, e.g., a file.\n\noptional arguments:\n -h, --help show this help message and exit\n --profile FNAME, -p FNAME\n [REQUIRED] An input filename of a file containing MLST or SNP character data, \n OR a fasta file containing aligned sequences.\n --method TREE, -m TREE\n \"MSTreeV2\" [DEFAULT]\n \"MSTree\"\n \"NJ\": FastME V2 NJ tree\n \"RapidNJ\": RapidNJ for very large datasets\n \"distance\": p-distance matrix in PHYLIP format.\n --matrix MATRIX_TYPE, -x MATRIX_TYPE\n \"symmetric\": [DEFAULT: MSTree and NJ]\n \"asymmetric\": [DEFAULT: MSTreeV2].\n --recraft, -r Triggers local branch recrafting. [DEFAULT: MSTreeV2].\n --missing HANDLER, -y HANDLER\n ONLY FOR symmetric DISTANCE MATRIX.\n 0: [DEFAULT] ignore missing data in pairwise comparison.\n 1: Remove column with missing data.\n 2: treat data as an allele.\n 3: Absolute number of allelic differences.\n --heuristic HEURISTIC, -t HEURISTIC\n Tiebreak heuristic used only in MSTree and MSTreeV2\n \"eBurst\" [DEFAULT: MSTree]\n \"harmonic\" [DEFAULT: MSTreeV2]\n --n_proc NUMBER_OF_PROCESSES, -n NUMBER_OF_PROCESSES\n Number of CPU processes in parallel use. [DEFAULT]: 5.\n --check, -c Only calculate the expected time/memory requirements.\n```\nNOTE:\n* Detailed descriptions for [--matrix](https://github.com/achtman-lab/GrapeTree/blob/master/documentation/asymmetricDistances.pdf), [--recraft](https://github.com/achtman-lab/GrapeTree/blob/master/documentation/branchRecrafting.pdf) and [--heuristic](https://github.com/achtman-lab/GrapeTree/blob/master/documentation/tiebreak.pdf)\n\n## Inputs\n#### profile\nThe profile file is a tab-delimited text file.\n\nFollow an example here: https://github.com/achtman-lab/GrapeTree/blob/master/examples/simulated_data.profile\n```\n#Strain\tGene_1\tGene_2\tGene_3\tGene_4\tGene_5\tGene_6\tGene_7\t...\n0\t1\t1\t1\t1\t1\t1\t1\t...\n1\t1\t1\t1\t1\t1\t1\t1\t...\n2\t1\t2\t2\t2\t2\t2\t2\t...\n...\n```\nThe first row is required and represents column labels. It has to start with a '#'. Collumn labels that start with a '#' are treated as comments and will not be used in downstream analysis. The first column needs to be unique identifiers for strains.\nEach of the remaining rows presents a different strain.\n\nUse '-' or '0' to represent missing alleles. \n\n#### Aligned FASTA\nAn aligned FASTA file contains multiple sequences of the same length in FASTA format. Many sequence alignment tools, e.g., MAFFT and MUSCLE, use FASTA as a default format for their outputs. \n\nFind an example here: http://wwwabi.snv.jussieu.fr/public/Clustal2Dna/fastali.html\n\nNote that GrapeTree supports only p-distance for the moment. \n\n#### metadata\nThe metadata file is either a tab-delimited or a comma-delimited text file. This is only used for tree presentation in the standardalone version.\n\nFollow an example here: https://github.com/achtman-lab/GrapeTree/blob/master/examples/simulated_data.metadata.txt\n```\nID\tCountry\tYear\n0\tChina\t1983\n1\tChina\t1984\n...\n```\nThe first row is required and describes the labels of the columns. If a column labeled with \"ID\" presents, it will be used to correlate metadata with profiles, otherwise the first column will be used.\n\n## outputs\n#### tree\nThe tree is described in NEWICK format. https://en.wikipedia.org/wiki/Newick_format\n\n#### distance matrix\nUse the option '--method distance' to generate a distance matrix without calculating the tree.\nThe matrix is presented in PHYLIP format. http://evolution.genetics.washington.edu/phylip/doc/distance.html\n\n## Command line examples\n#### MSTree V2\n```\npython grapetree.py -p examples/simulated_data.profile -m MSTreeV2\n```\n#### NJ tree\n```\npython grapetree.py -p examples/simulated_data.profile -m NJ\n```\n#### distance matrix\n```\npython grapetree.py -p examples/simulated_data.profile -m distance\n```\n\n## License\nCopyright Warwick University This program is free software: you can\nredistribute it and/or modify it under the terms of the GNU General Public\nLicense as published by the Free Software Foundation, either version 3 of the\nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but without\nany warranty; without even the implied warranty of merchantability or fitness\nfor a particular purpose. See the GNU General Public License for more\ndetails.\n\nYou should have received a copy of the GNU General Public License along with\nthis program. If not, see .\n\n## External programs\nDetailed information for the standard NJ implemented in FastME V2: http://www.atgc-montpellier.fr/fastme/\n\n## Citation\nEnteroMSTree - GrapeTree has been formally accepted by Genome Research. Please use the citation:\n\nZ Zhou, NF Alikhan, MJ Sergeant, N Luhmann, C Vaz, AP Francisco, JA Carrico,\nM Achtman (2018) \"GrapeTree: Visualization of core genomic relationships among \n100,000 bacterial pathogens\", Genome Res; doi:\n[https://doi.org/10.1101/gr.232397.117](https://doi.org/10.1101/gr.232397.117)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/achtman-lab/GrapeTree", "keywords": "bioinformatics,microbial,genomics,MLST,visulisation", "license": "", "maintainer": "", "maintainer_email": "", "name": "grapetree", "package_url": "https://pypi.org/project/grapetree/", "platform": "", "project_url": "https://pypi.org/project/grapetree/", "project_urls": { "Homepage": "https://github.com/achtman-lab/GrapeTree" }, "release_url": "https://pypi.org/project/grapetree/2.0/", "requires_dist": null, "requires_python": "", "summary": "Web interface of GrapeTree, which is a program for phylogenetic analysis.", "version": "2.0" }, "last_serial": 4906080, "releases": { "1.2.1": [ { "comment_text": "", "digests": { "md5": "5c24dca6d564f22d41e4cec45bd1ad5a", "sha256": "f18a2372b69f9527cf7e5ad815473ade9bd530b063c3a273f266de25028840e1" }, "downloads": -1, "filename": "grapetree-1.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5c24dca6d564f22d41e4cec45bd1ad5a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 1719266, "upload_time": "2018-04-13T14:42:41", "url": "https://files.pythonhosted.org/packages/5b/5d/969e67008c9f7213877e5116e2f6b75de48ec9823b171459d3adc2f7519f/grapetree-1.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5b902f043e47e2b30c3290f62b510a5e", "sha256": "c61e2b5a475c2745df0b4d6d193b936790662c166d6af867ab1659e5365fe7e9" }, "downloads": -1, "filename": "grapetree-1.2.1.tar.gz", "has_sig": false, "md5_digest": "5b902f043e47e2b30c3290f62b510a5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1576418, "upload_time": "2018-04-13T14:37:22", "url": "https://files.pythonhosted.org/packages/66/87/bc437ff02723d309562639760bb454bf72247bcfc275fc75bf945512f844/grapetree-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "3691ee0db7996184dff65e92ac3a082d", "sha256": "5d4bb3e9f2e6de5ef81527796452783a40f0278a1b7c0fbe42063dc3e9a0db7b" }, "downloads": -1, "filename": "grapetree-1.2.2.tar.gz", "has_sig": false, "md5_digest": "3691ee0db7996184dff65e92ac3a082d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1576435, "upload_time": "2018-04-13T14:53:28", "url": "https://files.pythonhosted.org/packages/aa/48/5cc742623c42259777085b21af1a0c43e64ac94a5e86f90ee2753d8e78f6/grapetree-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "9d4d8972d3787a0125a6f1e5998798ff", "sha256": "6d930daee5b07c66b5762c0f6530163c721a4b6ac32736cb4d9594a79fc47c02" }, "downloads": -1, "filename": "grapetree-1.2.3.tar.gz", "has_sig": false, "md5_digest": "9d4d8972d3787a0125a6f1e5998798ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3036691, "upload_time": "2018-04-13T15:39:09", "url": "https://files.pythonhosted.org/packages/3b/fc/447eec3bfcb83a726c7e463833425bbc6be71cce0769c755eabe3398406b/grapetree-1.2.3.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "cbf123eec99a57083fe3144ebabfaeee", "sha256": "aed19e218fa2bfdf22972f8c591010b38e15a8c49c0faa687ee318a0b0807e58" }, "downloads": -1, "filename": "grapetree-1.3.0.tar.gz", "has_sig": false, "md5_digest": "cbf123eec99a57083fe3144ebabfaeee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3038239, "upload_time": "2018-04-17T17:47:56", "url": "https://files.pythonhosted.org/packages/ac/c2/27f22109e2d6eac371e68c4dd8991e2c5294170f87546f435a4ef17b1145/grapetree-1.3.0.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "274576b80524df35263b15929bc21969", "sha256": "df96af423af1cd58fbd75a27a146de227e153c58031f2e669f4cb15e221ab885" }, "downloads": -1, "filename": "grapetree-1.3.2.tar.gz", "has_sig": false, "md5_digest": "274576b80524df35263b15929bc21969", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3038422, "upload_time": "2018-04-17T19:35:57", "url": "https://files.pythonhosted.org/packages/d0/8f/10d52d0fa5e5a030ce9338e5ac95e25b5914a9de089a34b6e53b5c0be642/grapetree-1.3.2.tar.gz" } ], "1.3.5": [ { "comment_text": "", "digests": { "md5": "2dcc184ff70e05f136548fb5b1fcd3e5", "sha256": "1900cbb04100fe5659c33da6228a086c45bd3f300ad9ac13b7b3ce6d7ea8f5bb" }, "downloads": -1, "filename": "grapetree-1.3.5.tar.gz", "has_sig": false, "md5_digest": "2dcc184ff70e05f136548fb5b1fcd3e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3038300, "upload_time": "2018-04-18T15:47:23", "url": "https://files.pythonhosted.org/packages/7f/81/63fbc67aa6b174fd380c39fd884889c6d2dcef8229261e9df9f7753f59fc/grapetree-1.3.5.tar.gz" } ], "1.3.6": [ { "comment_text": "", "digests": { "md5": "1c8286e0d1f9ae1b1d398c14d406fbae", "sha256": "944351bcad32b28b332416a916e3fd65963a48b1cc59b563a92a068ac06eeedf" }, "downloads": -1, "filename": "grapetree-1.3.6.tar.gz", "has_sig": false, "md5_digest": "1c8286e0d1f9ae1b1d398c14d406fbae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3174391, "upload_time": "2018-04-19T11:20:39", "url": "https://files.pythonhosted.org/packages/e3/65/63eab2632e6b3038e0e1ef45a33db8d46a7ae394195f3d9ddeaf837a33b7/grapetree-1.3.6.tar.gz" } ], "1.3.7": [ { "comment_text": "", "digests": { "md5": "d90ff042dfd61932685e652edb8a720a", "sha256": "06fe7b11a8acc73697f92168086ea076ff66f4f85998207ef4afaac9edc93b54" }, "downloads": -1, "filename": "grapetree-1.3.7.tar.gz", "has_sig": false, "md5_digest": "d90ff042dfd61932685e652edb8a720a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3174473, "upload_time": "2018-04-19T11:57:22", "url": "https://files.pythonhosted.org/packages/40/8f/0341787a5ece9a5998be5f77a1dc640f057f007041d604d515444e6f5faf/grapetree-1.3.7.tar.gz" } ], "1.3.8": [ { "comment_text": "", "digests": { "md5": "194e4a678a345357944d908e8375bfed", "sha256": "7136ae8a30767a3bbf7b7d01264c9deba0d400ef9761bf037afcad7e413863c9" }, "downloads": -1, "filename": "grapetree-1.3.8.tar.gz", "has_sig": false, "md5_digest": "194e4a678a345357944d908e8375bfed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3162382, "upload_time": "2018-04-19T13:35:43", "url": "https://files.pythonhosted.org/packages/a9/9b/ec7fe75ce700a9672c2872d6ac86e94a946e76ffcfeae7d5b8f74ea653f9/grapetree-1.3.8.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "c482b55023f43251f94dc8a6faff142d", "sha256": "8c7f0dc76f38815a602b5bb9a559985715f268b4673bab5d33df4aca3a4fd186" }, "downloads": -1, "filename": "grapetree-1.4.tar.gz", "has_sig": false, "md5_digest": "c482b55023f43251f94dc8a6faff142d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3162214, "upload_time": "2018-04-19T13:43:58", "url": "https://files.pythonhosted.org/packages/02/b8/7f23128c40bf3451e22786e9b004b4889cf25459d546370b6494394c36d5/grapetree-1.4.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "7cb631409afee4831221582cc1cb0e1c", "sha256": "f687943c247a8cdf48d04e1843df35925788e395c4d3653c136d000feb345cf5" }, "downloads": -1, "filename": "grapetree-1.4.1.tar.gz", "has_sig": false, "md5_digest": "7cb631409afee4831221582cc1cb0e1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4980606, "upload_time": "2018-05-24T12:37:00", "url": "https://files.pythonhosted.org/packages/4c/73/e0205682d1319d4909efe32a599e95784ee8c7d32d22e6abec0c77b0eb1f/grapetree-1.4.1.tar.gz" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "d36b6f7b6fbb57620b3ccbac46f1111b", "sha256": "39b1f6ef10c3952f8a0e1fff8c2e3aef5c9ec87199c0093fa627a1a0b9188b81" }, "downloads": -1, "filename": "grapetree-1.5.tar.gz", "has_sig": false, "md5_digest": "d36b6f7b6fbb57620b3ccbac46f1111b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5164000, "upload_time": "2018-07-05T16:29:22", "url": "https://files.pythonhosted.org/packages/81/ec/579d2986767a435b9d45cc4708b066c9dcf52c470eb8d078da374131a935/grapetree-1.5.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "bf34ace8e5f55226a61b70d1187125e2", "sha256": "1297ed728cc4c09ee3394bb38d8c3aef02511d878593f5d22192edf4ab077d5a" }, "downloads": -1, "filename": "grapetree-2.0.tar.gz", "has_sig": false, "md5_digest": "bf34ace8e5f55226a61b70d1187125e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5193625, "upload_time": "2019-03-06T15:53:01", "url": "https://files.pythonhosted.org/packages/00/61/dfb04d0ac9f34719922d2c1091e0adc519ef32a66b157e75141b168a40ef/grapetree-2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bf34ace8e5f55226a61b70d1187125e2", "sha256": "1297ed728cc4c09ee3394bb38d8c3aef02511d878593f5d22192edf4ab077d5a" }, "downloads": -1, "filename": "grapetree-2.0.tar.gz", "has_sig": false, "md5_digest": "bf34ace8e5f55226a61b70d1187125e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5193625, "upload_time": "2019-03-06T15:53:01", "url": "https://files.pythonhosted.org/packages/00/61/dfb04d0ac9f34719922d2c1091e0adc519ef32a66b157e75141b168a40ef/grapetree-2.0.tar.gz" } ] }