Skip to content

Commit 8e00b6a

Browse files
committed
fix(cli): Missing entrypoint.
1 parent de764cc commit 8e00b6a

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
# gtdb-itol-decorate
22

33
Creates iTOL files for tree decoration, given a set of GTDB genomes.
4+
5+
## Installation
6+
7+
```bash
8+
pip install gtdb-itol-decorate
9+
```
10+
11+
## Usage
12+
13+
Note: The taxonomy file is available from the GTDB data repository.
14+
15+
```bash
16+
gtdb_itol_decorate /path/to/tree.tree /path/to/taxonomy.tsv /path/to/output
17+
```

gtdb_itol_decorate/__main__.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
import os
21
from pathlib import Path
32

4-
import dendropy
53
import typer
64

7-
from gtdb_itol_decorate.decorate import decorate_tree
85
from gtdb_itol_decorate.gtdb import load_taxonomy_file, get_taxon_to_phylum
96
from gtdb_itol_decorate.itol import get_phylum_to_lca, get_phylum_colours, write_color_datastrip, \
107
get_internal_nodes_with_labels, write_internal_node_labels, write_tree_colours, write_collapse_file, \
118
write_popup_file
12-
from gtdb_itol_decorate.newick import load_newick_file, load_newick_to_tree, validate_dendropy_namespace, \
9+
from gtdb_itol_decorate.newick import load_newick_to_tree, validate_dendropy_namespace, \
1310
get_canonical_mapping, validate_sets, strip_tree_labels, set_node_desc_taxa, set_taxon_label_for_internal_nodes
1411
from gtdb_itol_decorate.util import log
1512

@@ -65,5 +62,9 @@ def main(tree_path: Path, tax_path: Path, out_dir: Path):
6562
log('Done.')
6663

6764

65+
def app():
66+
typer.run(main)
67+
68+
6869
if __name__ == "__main__":
6970
typer.run(main)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def readme():
3333
},
3434
entry_points={
3535
'console_scripts': [
36-
'gtdb_itol_decorate = gtdb_itol_decorate.__main__:run'
36+
'gtdb_itol_decorate = gtdb_itol_decorate.__main__:app'
3737
]
3838
},
3939
classifiers=[

0 commit comments

Comments
 (0)