TreeSwift: Fast tree module for Python 2 and 3
Project description
# TreeSwift
TreeSwift: Fast tree module for Python 2 and 3
## Installation
You should be able to install TreeSwift using `pip`, e.g.:
```bash
pip install treeswift
```
## Usage
Typical usage should be as follows:
1. Import the `treeswift` package
2. Use `treeswift.read_tree_newick` to load your Newick tree
3. Use the various `Tree` class functions on the resulting object as you need
```python
import treeswift
tree = treeswift.read_tree_newick(my_newick_string)
for node in tree.traverse_postorder():
print(node)
```
Full documentation can be found at [http://treeswift.readthedocs.io/en/latest/](http://treeswift.readthedocs.io/en/latest/).
TreeSwift: Fast tree module for Python 2 and 3
## Installation
You should be able to install TreeSwift using `pip`, e.g.:
```bash
pip install treeswift
```
## Usage
Typical usage should be as follows:
1. Import the `treeswift` package
2. Use `treeswift.read_tree_newick` to load your Newick tree
3. Use the various `Tree` class functions on the resulting object as you need
```python
import treeswift
tree = treeswift.read_tree_newick(my_newick_string)
for node in tree.traverse_postorder():
print(node)
```
Full documentation can be found at [http://treeswift.readthedocs.io/en/latest/](http://treeswift.readthedocs.io/en/latest/).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
treeswift-1.0.10.tar.gz
(18.5 kB
view hashes)
Built Distribution
Close
Hashes for treeswift-1.0.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d28f2441d650c856e704484fce5a2ba8fb5e4d0426c00f76c1334c268ad8a0f |
|
MD5 | 323900baa9d39399008e2d8aa84ee106 |
|
BLAKE2b-256 | 2db8ed6cad50291fdaafc6afc05175bd2a43885b2d03cd4a45a93117a64986d6 |