toytree


Nametoytree JSON
Version 3.0.9 PyPI version JSON
download
home_pagehttps://eaton-lab.org/toytree
Summarytree manipulation, plotting, and evolutionary analysis library
upload_time2025-02-09 05:23:14
maintainerNone
docs_urlNone
authorDeren Eaton
requires_python>=3.7
licenseGPL
keywords phylogeny tree network plotting toyplot svg html genealogy coalescent
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Toytree
==========

Tree plotting with **Toytree** in Python
----------------------------------------
Welcome to toytree, a Python library for tree object data parsing, visualization,
manipulation, and numerical and evolutionary analyses. If you are new to toytree, head to 
the [User Guide](https://eaton-lab.org/toytree/quick_guide/) to see examples and learn about its features.

The goal of toytree is to provide a light-weight Python equivalent to widely used tree analysis
and plotting libraries in R, and in doing so, to promote further development of phylogenetic and
evolutionary analysis methods in Python.

Toytree generates rich interactive figures (SVG+HTML+JS) that render in jupyter-notebooks or webpages,
and can be exported as high quality SVG, PDF, or PNG figures for publications. The library is minimal
dependencies, is easy to install, and can be easily incorporated into other projects. 


Current release info
--------------------
| Name | Downloads | Version | Platforms |
| --- | --- | --- | --- |
| [![Conda Recipe](https://img.shields.io/badge/recipe-toytree-green.svg)](https://anaconda.org/conda-forge/toytree) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/toytree.svg)](https://anaconda.org/conda-forge/toytree) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/toytree.svg)](https://anaconda.org/conda-forge/toytree) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/toytree.svg)](https://anaconda.org/conda-forge/toytree) |

Installing toytree
-------------------
Toytree can be installed using conda or pip (conda preferred):
```
conda install toytree -c conda-forge
```
It is possible to list all of the versions of `toytree` available on your platform with:
```
conda search toytree --channel conda-forge
```

Documentation
-------------
See the full documentation at [http://eaton-lab.org/toytree](http://eaton-lab.org/toytree).


Example code
------------

```python
# import toyplot and load a newick file from a public URL
import toytree
tre = toytree.tree("https://eaton-lab.org/data/Cyathophora.tre")

# root the tree using a wildcard string matching and draw a tree figure.
rtre = tre.root('~prz')
rtre.draw(width=400, tip_labels_align=True);

# or chain a few functions together
tre.root('~prz').drop_tips("~tham").ladderize().draw();

# extensive styling options are available
rtre.draw(
    tip_labels_colors='pink',
    node_labels='support',
    node_sizes=15,
    node_colors="cyan",
    edge_style={
        "stroke": "darkgrey", 
        "stroke-width": 3,
    },
)
```

Example plots
------------

![./manuscript/ToyTree-figure.svg](./manuscripts/toytree-1.0/ToyTree-figure.svg)

            

Raw data

            {
    "_id": null,
    "home_page": "https://eaton-lab.org/toytree",
    "name": "toytree",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "phylogeny, tree, network, plotting, toyplot, SVG, HTML, Genealogy, Coalescent",
    "author": "Deren Eaton",
    "author_email": "de2356@columbia.edu",
    "download_url": "https://files.pythonhosted.org/packages/cd/d3/e40e63d5b9a0609903ebbf7afb5e0aa696390acbd5209a418077465e09ec/toytree-3.0.9.tar.gz",
    "platform": null,
    "description": "Toytree\n==========\n\nTree plotting with **Toytree** in Python\n----------------------------------------\nWelcome to toytree, a Python library for tree object data parsing, visualization,\nmanipulation, and numerical and evolutionary analyses. If you are new to toytree, head to \nthe [User Guide](https://eaton-lab.org/toytree/quick_guide/) to see examples and learn about its features.\n\nThe goal of toytree is to provide a light-weight Python equivalent to widely used tree analysis\nand plotting libraries in R, and in doing so, to promote further development of phylogenetic and\nevolutionary analysis methods in Python.\n\nToytree generates rich interactive figures (SVG+HTML+JS) that render in jupyter-notebooks or webpages,\nand can be exported as high quality SVG, PDF, or PNG figures for publications. The library is minimal\ndependencies, is easy to install, and can be easily incorporated into other projects. \n\n\nCurrent release info\n--------------------\n| Name | Downloads | Version | Platforms |\n| --- | --- | --- | --- |\n| [![Conda Recipe](https://img.shields.io/badge/recipe-toytree-green.svg)](https://anaconda.org/conda-forge/toytree) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/toytree.svg)](https://anaconda.org/conda-forge/toytree) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/toytree.svg)](https://anaconda.org/conda-forge/toytree) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/toytree.svg)](https://anaconda.org/conda-forge/toytree) |\n\nInstalling toytree\n-------------------\nToytree can be installed using conda or pip (conda preferred):\n```\nconda install toytree -c conda-forge\n```\nIt is possible to list all of the versions of `toytree` available on your platform with:\n```\nconda search toytree --channel conda-forge\n```\n\nDocumentation\n-------------\nSee the full documentation at [http://eaton-lab.org/toytree](http://eaton-lab.org/toytree).\n\n\nExample code\n------------\n\n```python\n# import toyplot and load a newick file from a public URL\nimport toytree\ntre = toytree.tree(\"https://eaton-lab.org/data/Cyathophora.tre\")\n\n# root the tree using a wildcard string matching and draw a tree figure.\nrtre = tre.root('~prz')\nrtre.draw(width=400, tip_labels_align=True);\n\n# or chain a few functions together\ntre.root('~prz').drop_tips(\"~tham\").ladderize().draw();\n\n# extensive styling options are available\nrtre.draw(\n    tip_labels_colors='pink',\n    node_labels='support',\n    node_sizes=15,\n    node_colors=\"cyan\",\n    edge_style={\n        \"stroke\": \"darkgrey\", \n        \"stroke-width\": 3,\n    },\n)\n```\n\nExample plots\n------------\n\n![./manuscript/ToyTree-figure.svg](./manuscripts/toytree-1.0/ToyTree-figure.svg)\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "tree manipulation, plotting, and evolutionary analysis library",
    "version": "3.0.9",
    "project_urls": {
        "Homepage": "https://eaton-lab.org/toytree"
    },
    "split_keywords": [
        "phylogeny",
        " tree",
        " network",
        " plotting",
        " toyplot",
        " svg",
        " html",
        " genealogy",
        " coalescent"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "34eb1024b0902e6a14d8f134c82e2f335be430b1a4ec842de58bcb489eaa7a58",
                "md5": "87e7cb1465b8f0e36242c0aa86568bd9",
                "sha256": "2ec136dfe6093ae58d7feb460fe51392bb5000c456a3189efe6cf7c389de313b"
            },
            "downloads": -1,
            "filename": "toytree-3.0.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "87e7cb1465b8f0e36242c0aa86568bd9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 425285,
            "upload_time": "2025-02-09T05:23:11",
            "upload_time_iso_8601": "2025-02-09T05:23:11.979585Z",
            "url": "https://files.pythonhosted.org/packages/34/eb/1024b0902e6a14d8f134c82e2f335be430b1a4ec842de58bcb489eaa7a58/toytree-3.0.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "cdd3e40e63d5b9a0609903ebbf7afb5e0aa696390acbd5209a418077465e09ec",
                "md5": "14055e9f8196ec5ab025d0dbbdd6ea3d",
                "sha256": "0b2865b87a2038795b9817bd02c42ca02ac0e0bb2613a60f22321d35af8a55f5"
            },
            "downloads": -1,
            "filename": "toytree-3.0.9.tar.gz",
            "has_sig": false,
            "md5_digest": "14055e9f8196ec5ab025d0dbbdd6ea3d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 338400,
            "upload_time": "2025-02-09T05:23:14",
            "upload_time_iso_8601": "2025-02-09T05:23:14.065016Z",
            "url": "https://files.pythonhosted.org/packages/cd/d3/e40e63d5b9a0609903ebbf7afb5e0aa696390acbd5209a418077465e09ec/toytree-3.0.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-09 05:23:14",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "toytree"
}
        
Elapsed time: 1.12783s