nextstrain / auspice.us

http://auspice.us
13 stars 8 forks source link

Validation of json file #6

Closed HamzaMbareche closed 4 years ago

HamzaMbareche commented 4 years ago

Current Behavior
json file generated using augur export v2 is failing with the following error message:

ERROR: None is not of type 'string'. Trace: properties - tree - properties - name - type ERROR: [ ] is too short. Trace: properties - meta - properties - colorings - minItems FATAL ERROR: Validation of '/home/hamza/Metadata/filtered_all_dataset_QC_all_metadata.json' failed

Expected behavior

The same dataset with a different metadata table worked fine and the visualization on auspice worked as expected. Even without including the metadata, json validation still fails.

How to reproduce
Steps to reproduce the current behavior:

  1. Open / run augur export v2 using the tree and nodes output of augur refine
  2. See error

Your environment: if browsing Nextstrain online

HamzaMbareche commented 4 years ago

It turned out I was not using the refined tree. Using the right tree file fixed the issue.