This script addresses a use case of how to parse values from Augur's node data JSON files into a data frame format that can be easily consumed by other tools.
The following example shows how to convert a discrete trait analysis output from augur traits
in the Nextstrain ncov workflow to a TSV file.
python3 node_data_to_table.py \
--tree results/europe/tree.nwk \
--jsons results/europe/traits.json \
--include-internal-nodes \
--annotations build=europe \
--output traits.tsv
Install Augur to get access to the Augur Python library referenced in this script.