[![Build Status](https://travis-ci.com/evogytis/baltic.svg?branch=master)](https://travis-ci.com/evogytis/baltic)
[![downloads](https://anaconda.org/bioconda/baltic/badges/downloads.svg)](https://anaconda.org/bioconda/baltic)
# baltic
baltic is a Python library for parsing phylogenetic trees. It takes newick, Nexus or nextstrain JSON trees and allows you to manipulate, explore and visualise them. baltic stands for Backronymed Adaptable Lightweight Tree Import Code if you like that sort of thing.
--------------------
## Installation
Use package manager `pip` to install baltic:
```
pip install baltic
```
--------------------
## Usage
```python
import baltic as bt
# When called with a tree string the `make_tree()` function return a baltic tree object:
treeString='((A:1.0,B:2.0):1.0,C:3.0);'
myTree = bt.make_tree(treeString)
# Otherwise you can import trees from newick, nexus or nextstrain JSON files
newickPath='/Users/myUsername/tree.newick'
myTree = bt.loadNewick(newickPath)
nexusPath='/Users/myUsername/tree.nex'
myTree = bt.loadNexus(nexusPath, absoluteTime = False)
nextstrainPath='https://nextstrain.org/charon/getDataset?prefix=/dengue/denv1'
myTree, myMeta = bt.loadJSON(nextstrainPath)
```
----------------
Copyright 2016 [Gytis Dudas](https://twitter.com/evogytis). Licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/).
Raw data
{
"_id": null,
"home_page": "https://github.com/evogytis/baltic",
"name": "baltic",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": null,
"keywords": "phylogeny, visualization",
"author": "Gytis Dudas",
"author_email": "gytisdudas@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8e/c6/85e19acf2039a5da1df9d2db88fa739743c346426a2e9853eea721dab728/baltic-0.3.0.tar.gz",
"platform": null,
"description": "[![Build Status](https://travis-ci.com/evogytis/baltic.svg?branch=master)](https://travis-ci.com/evogytis/baltic)\n[![downloads](https://anaconda.org/bioconda/baltic/badges/downloads.svg)](https://anaconda.org/bioconda/baltic)\n\n# baltic\n\nbaltic is a Python library for parsing phylogenetic trees. It takes newick, Nexus or nextstrain JSON trees and allows you to manipulate, explore and visualise them. baltic stands for Backronymed Adaptable Lightweight Tree Import Code if you like that sort of thing.\n\n--------------------\n\n## Installation\n\nUse package manager `pip` to install baltic:\n```\npip install baltic\n```\n\n--------------------\n\n## Usage\n\n```python\nimport baltic as bt\n\n# When called with a tree string the `make_tree()` function return a baltic tree object:\n\ntreeString='((A:1.0,B:2.0):1.0,C:3.0);'\nmyTree = bt.make_tree(treeString)\n\n# Otherwise you can import trees from newick, nexus or nextstrain JSON files\n\nnewickPath='/Users/myUsername/tree.newick'\nmyTree = bt.loadNewick(newickPath)\n\nnexusPath='/Users/myUsername/tree.nex'\nmyTree = bt.loadNexus(nexusPath, absoluteTime = False)\n\nnextstrainPath='https://nextstrain.org/charon/getDataset?prefix=/dengue/denv1'\nmyTree, myMeta = bt.loadJSON(nextstrainPath)\n\n```\n\n----------------\n\nCopyright 2016 [Gytis Dudas](https://twitter.com/evogytis). Licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/).\n",
"bugtrack_url": null,
"license": "gpl-3.0",
"summary": "Lightweight package for analyzing, manipulating and visualizing annotated phylogenetic trees",
"version": "0.3.0",
"project_urls": {
"Download": "https://github.com/evogytis/baltic/archive/v0.3.0.tar.gz",
"Homepage": "https://github.com/evogytis/baltic"
},
"split_keywords": [
"phylogeny",
" visualization"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "30db7a9ae52b5e2fe451690736eac43616117ee38bad8861682772c63bd5fb2d",
"md5": "ae5bf63c53bb60e35ebb0a376627bca0",
"sha256": "590650e3734a80387b269737070647605a24f103572c7c82838346a70778b7a0"
},
"downloads": -1,
"filename": "baltic-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ae5bf63c53bb60e35ebb0a376627bca0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 46370,
"upload_time": "2024-09-27T10:50:11",
"upload_time_iso_8601": "2024-09-27T10:50:11.664773Z",
"url": "https://files.pythonhosted.org/packages/30/db/7a9ae52b5e2fe451690736eac43616117ee38bad8861682772c63bd5fb2d/baltic-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8ec685e19acf2039a5da1df9d2db88fa739743c346426a2e9853eea721dab728",
"md5": "fa2d3f58eaffea78412189a4fa1d4b60",
"sha256": "d7fd92d0a40840f15826416e5aaaa3b9e40db07df99f9d4add2eeaf683ae385d"
},
"downloads": -1,
"filename": "baltic-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "fa2d3f58eaffea78412189a4fa1d4b60",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 262195,
"upload_time": "2024-09-27T10:50:14",
"upload_time_iso_8601": "2024-09-27T10:50:14.087280Z",
"url": "https://files.pythonhosted.org/packages/8e/c6/85e19acf2039a5da1df9d2db88fa739743c346426a2e9853eea721dab728/baltic-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-27 10:50:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "evogytis",
"github_project": "baltic",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "baltic"
}