Hello.
First of all, allow me to congratulate you all for the effort and love you’ve poured into the nextstrain sweet suite tool of tools. We appreciate it fully. It has deeply improved our understanding and analyses of our favorite organisms.
In that regard, I’m generating the tip_frequencies.json with no success. By the way, I don’t use the snakemake build format, I use augur with traditional and simple command line syntax with no problems.
My issue here, is that I’m stuck with the following error at the final step augur export v2:
$ augur export v2 --tree results/tree.nwk --metadata data/metadata-g.tsv --node-data results/branch_lenghts.json results/traits.json results/nt_muts.json results/aa_muts.json results/tip_frequencies.json --colors config/colors-g.tsv --lat-longs config/lat_longs-g.tsv --auspice-config config/auspice_config5-g.json --output auspice/21-hs-inv20-ago23-g.json
Validating schema of ‘results/aa_muts.json’…
Traceback (most recent call last):
File “/home/bioinfo1/miniconda3/envs/nextstrain/bin/augur”, line 10, in
sys.exit(main())
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/main.py”, line 10, in main
return augur.run( argv[1:] )
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/init.py”, line 75, in run
return args.command.run(args)
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/export.py”, line 22, in run
return run_v2(args)
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/export_v2.py”, line 903, in run_v2
node_data, node_attrs, node_data_names, metadata_names = parse_node_data_and_metadata(T, args.node_data, args.metadata)
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/export_v2.py”, line 850, in parse_node_data_and_metadata
node_data = read_node_data(node_data_files) # node_data_files is an array of multiple files (or a single file)
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/utils.py”, line 191, in read_node_data
return NodeDataReader(fnames, tree).read()
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/util_support/node_data_reader.py”, line 26, in read
node_data = self.build_node_data()
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/util_support/node_data_reader.py”, line 35, in build_node_data
for node_data_file in self.node_data_files:
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/util_support/node_data_reader.py”, line 51, in
return (NodeDataFile(fname) for fname in self.filenames)
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/util_support/node_data_file.py”, line 18, in init
self.validate()
File “/home/bioinfo1/miniconda3/envs/nextstrain/lib/python3.8/site-packages/augur/util_support/node_data_file.py”, line 68, in validate
raise RuntimeError(
RuntimeError: nodes
value in results/_tip_frequencies.json is not a dictionary. Please check the formatting of this JSON!
As you can see, all my outputs are called from results/
On the other hand, if I run the same augur export v2 command, but without the argument results/tip_frequencies.json , it works flawlessly… of course, without integrating the frequencies to the final .json file. What I’m trying to say is that the aa_muts.json gets properly validated along everything else.
Thank you in advance for your kind answers, I’m really in the need for advice here.
Best regards!