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.8.tar.gz
(18.4 kB
view hashes)
Built Distribution
Close
Hashes for treeswift-1.0.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f30cf43ee2170820e295bb36ca7f9719f961e83fe00471b2c62a8a894546607 |
|
MD5 | 7d8f5b5fccec0f58a698638cd4a17b96 |
|
BLAKE2b-256 | c0480ee49b73b8197119f0907781bef91abed37db89f5e8423b6adff50fa0a17 |