You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Augur clades doesn't seem to throw a helpful error when required options are missing.
Also, the documentation doesn't seem to mention which options are required.
E.g. (from a user who didn't pass any --clades option:
augur clades --tree results/tree.nwk --mutations results/nt_muts.json --reference data/reference.fasta --output-node-data augur_node_data.json
Validating schema of 'results/nt_muts.json'...
Traceback (most recent call last):
File "/nextstrain/augur/augur/__init__.py", line 67, in run
return args.__command__.run(args)
File "/nextstrain/augur/augur/clades.py", line 280, in run
clade_designations = read_in_clade_definitions(args.clades)
File "/nextstrain/augur/augur/clades.py", line 51, in read_in_clade_definitions
sep='\t' if clade_file.endswith('.tsv') else ',',
AttributeError: 'NoneType' object has no attribute 'endswith'
Also confusingly, it can appear to users that the error happened in the validation step - because the error happens right after the line: Validating schema of 'results/nt_muts.json'..., that should probably start with INFO: or otherwise be separated better.
I have the same problem running nextstrain clades:
augur clades --tree refine_tree.nwk --mutations ancestral.json translate.json --output-node-data clades.json
Validating schema of 'ancestral.json'...
Validating schema of 'translate.json'...
Traceback (most recent call last):
File "/home/veronica/miniconda3/lib/python3.9/site-packages/augur/init.py", line 67, in run
return args.command.run(args)
File "/home/veronica/miniconda3/lib/python3.9/site-packages/augur/clades.py", line 280, in run
clade_designations = read_in_clade_definitions(args.clades)
File "/home/veronica/miniconda3/lib/python3.9/site-packages/augur/clades.py", line 51, in read_in_clade_definitions
sep='\t' if clade_file.endswith('.tsv') else ',',
AttributeError: 'NoneType' object has no attribute 'endswith'
Context
Augur clades doesn't seem to throw a helpful error when required options are missing.
Also, the documentation doesn't seem to mention which options are required.
E.g. (from a user who didn't pass any
--clades
option:Also confusingly, it can appear to users that the error happened in the validation step - because the error happens right after the line:
Validating schema of 'results/nt_muts.json'...
, that should probably start withINFO:
or otherwise be separated better.Would be good if the docs for
augur clades
command linked to: https://docs.nextstrain.org/projects/augur/en/stable/faq/clades.html#labeling-cladesThe text was updated successfully, but these errors were encountered: