pirovc / ganon

ganon2 classifies genomic sequences against large sets of references efficiently, with integrated download and update of databases (refseq/genbank), taxonomic profiling (ncbi/gtdb), binning and hierarchical classification, customized reporting and more
https://pirovc.github.io/ganon/
MIT License
86 stars 13 forks source link

ganon report UnboundLocalError: local variable 'tax' referenced before assignment #273

Closed marade closed 7 months ago

marade commented 8 months ago

$ ganon report -x skip --report-type reads -i classify_results.rep -o classify_res



(_ (_ (_) _ v. 2.0.0

Generating report(s)

Total valid files: 1

Downloading and parsing skip taxonomy

Traceback (most recent call last): File "/home/ubuntu/miniconda3/envs/py310/bin/ganon", line 33, in sys.exit(load_entry_point('ganon==2.0.0', 'console_scripts', 'ganon')()) File "/home/ubuntu/miniconda3/envs/py310/lib/python3.10/site-packages/ganon/ganon.py", line 53, in main_cli sys.exit(0 if main() else 1) File "/home/ubuntu/miniconda3/envs/py310/lib/python3.10/site-packages/ganon/ganon.py", line 44, in main ret = report(cfg) File "/home/ubuntu/miniconda3/envs/py310/lib/python3.10/site-packages/ganon/report.py", line 68, in report default_ranks = [tax.root_name] + cfg.choices_default_ranks UnboundLocalError: local variable 'tax' referenced before assignment

marade commented 8 months ago

$ ganon report -x skip --report-type reads -i classify_results.rep -o classify_res --db-prefix Pro File not found: Pro.tax

pirovc commented 7 months ago

Fixed in v2.0.1 #281

marade commented 7 months ago

Thanks!