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.9.tar.gz
(18.4 kB
view hashes)
Built Distribution
Close
Hashes for treeswift-1.0.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b753b78d3a861aac35d0c0673b18808d46f880d61ab13dfdec9d9fcedf661ae7 |
|
MD5 | 1ce3ccd9eb72b10e6467a07b80d24d25 |
|
BLAKE2b-256 | 2919753362cc21b7b4edfbc2d14e46f446bd09713cf0d6ba55b6119017eabbae |