-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error with GTDB-Tk v2.2.5 (TypeError after skipping of ANI classification step) #493
Comments
It is likely that this error may have been introduced in v2.2.5. I downgraded GTDB-Tk to v2.2.4, which ran successfully without any errors with the same input. |
- issue #493 is fixed for --full_tree - fix issue with mash_db, we regenate the genome path of rep genomes and mash_db.msh to reflect the current filesystem.
Thanks for your feedback, we will release a new version of Tk in the coming days to patch this issue. |
I'm not running --full-tree or --skip-ani-screen. I get the same error with 2.2.5. $ gtdbtk classify_wf --cpus 16 -x fa --genome_dir splits --out_dir classy --pplacer_cpus 16 --mash_db mashy
But this is also fixed when I replaced the mash.py and classify.py from staging branch 👍 |
Solved with 2.2.6 |
Environment
Server information
Hi,
I've encountered an error with GTDB-Tk v2.2.5 after skipping of ANI classification step.
My command was as below.
$ gtdbtk classify_wf --genome_dir Input -x fa --out_dir GTDB --cpus 72 --pplacer_cpus 64 --full_tree --skip_ani_screen
The excerpt of the gtdbtk.log is as below.
If this error is not from a bug, would you let me know how I can avoid this error?
-----
[2023-03-17 20:07:41] TASK: Placing 319 bacterial genomes into reference tree with pplacer using 64 CPUs (be patient).
[2023-03-17 20:07:41] INFO: pplacer version: v1.1.alpha19-0-g807f6f3
[2023-03-17 21:20:45] INFO: Calculating RED values based on reference tree.
[2023-03-17 21:21:01] TASK: Traversing tree to determine classification method.
[2023-03-17 21:21:01] INFO: ANI classification has been skipped (--genes option used).
[2023-03-17 21:21:01] ERROR: Uncontrolled exit resulting from an unexpected error.
================================================================================
EXCEPTION: TypeError
MESSAGE: stat: path should be string, bytes, os.PathLike or integer, not dict
________________________________________________________________________________
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/gtdbtk/main.py", line 101, in main
gt_parser.parse_options(args)
File "/usr/local/lib/python3.8/dist-packages/gtdbtk/main.py", line 1172, in parse_options
self.classify(options,all_classified_ani= all_classified_ani)
File "/usr/local/lib/python3.8/dist-packages/gtdbtk/main.py", line 587, in classify
reports = classify.run(genomes=genomes,
File "/usr/local/lib/python3.8/dist-packages/gtdbtk/classify.py", line 661, in run
class_level_classification, classified_user_genomes,warning_counter = self._parse_tree(tree_to_process, genomes, msa_dict, perce
nt_multihit_dict,
File "/usr/local/lib/python3.8/dist-packages/gtdbtk/classify.py", line 1210, in _parse_tree
class_level_classification,warning_counter = self._classify_red_topology(tree, msa_dict, percent_multihit_dict,
File "/usr/local/lib/python3.8/dist-packages/gtdbtk/classify.py", line 850, in _classify_red_topology
user_genome_ids = set(read_fasta(user_msa_file).keys())
File "/usr/local/lib/python3.8/dist-packages/gtdbtk/biolib_lite/seq_io.py", line 48, in read_fasta
if not os.path.exists(fasta_file):
File "/usr/lib/python3.8/genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not dict
================================================================================
The text was updated successfully, but these errors were encountered: