https://github.com/4ment/treezy
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.5%) to scientific vocabulary
Keywords
Repository
Basic Info
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
treezy
treezy is a simple Python library for manipulating phylogenetic trees, including reading from and writing to files.
Features
- Parse and manipulate phylogenetic trees
- Read and write trees with branch annotations and comments
- Lightweight and easy to integrate into existing Python projects
Installation
bash
pip install treezy
To build treezy from source you can run
bash
git clone https://github.com/4ment/treezy
pip install treezy/
Usage
```python from treezy.tree import Tree
newick = '((A:[&rate=0.1,cat=0]1,B:[&rate=0.1,cat=0]2):[&rate=0.2,cat=1]3,C:[&rate=0.2,cat=1]4);' tree = Tree.fromnewick(newick) tree.parsebranchcomment({'rate': lambda rate: float(rate)}) for node in tree: if not node.isroot: node.distance *= node.branch_annotations['rate'] print(tree)
((A:0.1,B:0.2):0.6,C:0.8);
```
Contributing
Contributions are welcome! Please open issues or submit pull requests.
License
This project is licensed under the MIT License. See LICENSE for details.
Owner
- Name: Mathieu Fourment
- Login: 4ment
- Kind: user
- Location: Australia
- Company: University of Technology Sydney
- Repositories: 58
- Profile: https://github.com/4ment
GitHub Events
Total
- Release event: 1
- Push event: 7
- Pull request event: 1
- Create event: 4
Last Year
- Release event: 1
- Push event: 7
- Pull request event: 1
- Create event: 4
Issues and Pull Requests
Last synced: 7 months ago
Packages
- Total packages: 1
-
Total downloads:
- pypi 9 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
pypi.org: treezy
Simple library for manipulating phylogenetic trees
- Documentation: https://treezy.readthedocs.io/
- License: mit
-
Latest release: 0.0.1
published 9 months ago