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.7.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for treeswift-1.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d247dbb76689381cc371930a56e1f60268364cbc34aefa9d708dac650871211 |
|
MD5 | 33659602b771a68dfd70954dc471205d |
|
BLAKE2b-256 | 43d96cefd21a16c9bbd2938617677d1e3fe9d07cbeb923d060e9decd18f7f1f2 |