Just as we can specify a build-specific analysis options in the config.yaml
file, we can also specify build-specific visualization options in this directory. An example of this can be seen in the ./my_analyses/example_advanced_customization/
directory.
Looking at the config.yaml
file, the last few lines are:
files:
colors: "my_analyses/example_advanced_customization/colors.tsv"
auspice_config: "my_analyses/example_advanced_customization/auspice_config_swiss.json"
Let's look at what kinds of customization options we can use these for.
If you'd like to specify a custom color scale, you can add a colors.tsv
file, where each line is a tab-delimited list of a metadata column name; a metadata value; and a corresponding hex code.
The first few lines of the example file look like this:
country Russia #5E1D9D
country Serbia #4D22AD
country Europe #4530BB
...
Make sure to also add
files:
colors: "my_analyses/<name>/colors.tsv"
to your config.yaml
file.
The dataset description, which appears below the visualizations, is specified in default_config/description.md
- Add a valid metadata column to your
metadata.tsv
- Using our example as a template, create an
auspice_config.json
file to your analysis directorysarscov2-tutorial$ cp ./my_analyses/example_advanced_customization/auspice_config_swiss.json ./my_analyses/<name>/
- Add an entry to the
colorings
block of this JSON. You can see an example of this inmy_analyses/example_advanced_customization/auspice_config_swiss.json
file:
...
"colorings": [
{
"key": "location",
"title": "Location",
"type": "categorical"
},
{
"key": "metadata_column_name",
"title": "Display name for interface",
"type": "categorical" or "continuous"
}
...
]
...
You can specify the default view in the display_defaults
block of an auspice_config.json
file (see above)
...
"display_defaults": {
"color_by": "division",
"distance_measure": "num_date",
"geo_resolution": "division",
"map_triplicate": true,
"branch_label": "none"
},
...
Similarly, you can choose which panels to enable in the panels
block:
...
"panels": [
"tree",
"map",
"entropy"
]
...