baltic-0.1.6
توضیحات
Lightweight package for analyzing, manipulating and visualizing annotated phylogenetic trees
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | baltic-0.1.6 |
| نام | baltic |
| نسخه کتابخانه | 0.1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gytis Dudas |
| ایمیل نویسنده | gytisdudas@gmail.com |
| آدرس صفحه اصلی | https://github.com/evogytis/baltic |
| آدرس اینترنتی | https://pypi.org/project/baltic/ |
| مجوز | gpl-3.0 |
[](https://travis-ci.com/evogytis/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/).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.4.* | Python |
نحوه نصب
نصب پکیج whl baltic-0.1.6:
pip install baltic-0.1.6.whl
نصب پکیج tar.gz baltic-0.1.6:
pip install baltic-0.1.6.tar.gz