| Name | nwkfmt JSON |
| Version |
0.4.0
JSON |
| download |
| home_page | None |
| Summary | Simple Newick tree validator and formatter |
| upload_time | 2024-08-19 17:54:37 |
| maintainer | None |
| docs_url | None |
| author | Cornelius Roemer |
| requires_python | >=3.11 |
| license | None |
| keywords |
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# Newick Tree Validator and Formatter
Simple utility to validate and format Newick trees.
The main use of this utility is to validate constraint trees used with IQtree2.
IQtree2 can throw hard to understand errors when using constraint trees even if the tree is technically a valid Newick tree.
This utility will catch many of those errors and provide a more detailed error message.
## Usage
Validation without formatting:
```bash
./main.py <tree.nwk>
```
In place formatting:
```bash
./main.py <tree.nwk> --inplace
```
Outputting formatted tree to a separate file:
```bash
./main.py <tree.nwk> --outfile <output.nwk>
```
Outputting list of terminal nodes into a text file:
```bash
./main.py <tree.nwk> --terminals <terminals.txt>
```
## Requirements
- Python
- Typer
- BioPython
## Release
This project uses [Poetry](https://python-poetry.org/) for dependency management and packaging.
To build a release, run:
```bash
poetry build
```
To publish a release to PyPI, run:
```bash
poetry publish
```
To publish the release to Github, run:
```bash
gh release create 0.4.0 dist/*
```
Raw data
{
"_id": null,
"home_page": null,
"name": "nwkfmt",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": null,
"author": "Cornelius Roemer",
"author_email": "cornelius.roemer@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/77/98/36bf305376ef81f8bff400e85b23b24fec7edeec132dfa669c3293523d5a/nwkfmt-0.4.0.tar.gz",
"platform": null,
"description": "# Newick Tree Validator and Formatter\n\nSimple utility to validate and format Newick trees.\n\nThe main use of this utility is to validate constraint trees used with IQtree2.\n\nIQtree2 can throw hard to understand errors when using constraint trees even if the tree is technically a valid Newick tree.\n\nThis utility will catch many of those errors and provide a more detailed error message.\n\n## Usage\n\nValidation without formatting:\n\n```bash\n./main.py <tree.nwk>\n```\n\nIn place formatting:\n\n```bash\n./main.py <tree.nwk> --inplace\n```\n\nOutputting formatted tree to a separate file:\n\n```bash\n./main.py <tree.nwk> --outfile <output.nwk>\n```\n\nOutputting list of terminal nodes into a text file:\n\n```bash\n./main.py <tree.nwk> --terminals <terminals.txt>\n```\n\n## Requirements\n\n- Python\n- Typer\n- BioPython\n\n## Release\n\nThis project uses [Poetry](https://python-poetry.org/) for dependency management and packaging.\n\nTo build a release, run:\n\n```bash\npoetry build\n```\n\nTo publish a release to PyPI, run:\n\n```bash\npoetry publish\n```\n\nTo publish the release to Github, run:\n\n```bash\ngh release create 0.4.0 dist/*\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Simple Newick tree validator and formatter",
"version": "0.4.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5ea8df652701f1dad364111a6f3d71e566447a209194024e7b0e1cde5d69b251",
"md5": "7bb70a0fc0f804c58821057ddfb9bee7",
"sha256": "b9a2a1a06a7112e0d1e15cfb27692b390dac13820bcb0b528f73f1ef966dac1b"
},
"downloads": -1,
"filename": "nwkfmt-0.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7bb70a0fc0f804c58821057ddfb9bee7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 3987,
"upload_time": "2024-08-19T17:54:36",
"upload_time_iso_8601": "2024-08-19T17:54:36.314595Z",
"url": "https://files.pythonhosted.org/packages/5e/a8/df652701f1dad364111a6f3d71e566447a209194024e7b0e1cde5d69b251/nwkfmt-0.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "779836bf305376ef81f8bff400e85b23b24fec7edeec132dfa669c3293523d5a",
"md5": "ed811f8e0170ab8d0f982865e4b84156",
"sha256": "780dd4e78bfc4dc68403b1afc934e1d75a8eec1947f056c7fa2b23a76b9fa8c0"
},
"downloads": -1,
"filename": "nwkfmt-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "ed811f8e0170ab8d0f982865e4b84156",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 3344,
"upload_time": "2024-08-19T17:54:37",
"upload_time_iso_8601": "2024-08-19T17:54:37.407629Z",
"url": "https://files.pythonhosted.org/packages/77/98/36bf305376ef81f8bff400e85b23b24fec7edeec132dfa669c3293523d5a/nwkfmt-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-19 17:54:37",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "nwkfmt"
}