-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Organizational changes: - Expose pages in main sidebar (6e35cdc) - Move pages to guides: - "Update the workflow" section from tutorial/setup -> guides/update-workflow - reference/customizing-analysis -> guides/workflow-config-file - reference/customizing-visualization -> guides/customizing-visualization - reference/data-prep -> guides/data-prep - Split "Data Prep" into 3 pages - Add reference/glossary - Rename reference files: - configuration -> workflow-config-file - orientation-files -> files - orientation-workflow -> nextstrain-overview - tutorial/running -> troubleshoot - Remove files: - reference/multiple_inputs - Changes across multiple files: - Fix MD->reST conversion glitches - Reference "builds.yaml" as "workflow config file" - Remove my_profiles/ references - Reference glossary terms where appropriate - Use sphinx reference directive [1] to link to specific sections - Per-file changes: - tutorial/setup - Remove basic example in setup page (replaced by the "example data" tutorial) - reference/gisaid-search - Remove off-topic line - reference/nextstrain-overview - Capitalize Augur, Auspice, Snakemake, Nextflow - Describe build vs. workflow - reference/files - Re-organize page with "user files" vs. "internal files" - reference/troubleshoot - Formerly tutorial/running, it has been stripped down to just troubleshooting content - dev_docs - Link to docs for installation/setup [1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-arbitrary-locations
- Loading branch information
Showing
41 changed files
with
1,098 additions
and
1,367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Hi! This is the default description. Edit me in `my_profiles/<build_name>/description.md`, and add this line to your `my_profiles/builds.yaml` file: | ||
``` | ||
files: | ||
description: my_profiles/<build_name>/description.md | ||
Hi! This is the default description, written in [Markdown](https://www.markdownguide.org/getting-started/). You can change this by creating another Markdown file and referencing it in the workflow config file: | ||
|
||
```yaml | ||
files: | ||
description: path/to/description.md | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
Customizing visualization | ||
========================= | ||
|
||
Visualization options can be configured in either a :term:`workflow config file<config file>` or a :term:`Auspice config file`, depending on the option. | ||
|
||
.. contents:: Table of Contents | ||
:local: | ||
|
||
Options in the workflow config file | ||
----------------------------------- | ||
|
||
These options can be coded into the workflow config file directly without requiring a custom Auspice config file. | ||
|
||
Custom color schemes | ||
~~~~~~~~~~~~~~~~~~~~ | ||
|
||
To specify a custom color scale: | ||
|
||
1. 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. Example: | ||
|
||
:: | ||
|
||
country Russia #5E1D9D | ||
country Serbia #4D22AD | ||
country Europe #4530BB | ||
... | ||
|
||
2. Update your workflow config file with a reference: | ||
|
||
.. code:: yaml | ||
files: | ||
colors: "my-ncov-analyses/colors.tsv" | ||
Changing the dataset description | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The dataset description, which appears below the visualizations, is read from a file which is specified in the workflow config file. Per-build description can be set by specifying them in the workflow config file: | ||
|
||
.. code:: yaml | ||
builds: | ||
north-america: # name of the build | ||
description: my-ncov-analyses/north-america-description.md | ||
If that is not provided, then a per-run description is used, also specified in the workflow config file: | ||
|
||
.. code:: yaml | ||
files: | ||
description: my-ncov-analyses/my_description.md | ||
Options in the Auspice config file | ||
---------------------------------- | ||
|
||
These options require creating an Auspice config file, used to configure :term:`docs.nextstrain.org:Auspice`. It is specified in the workflow config file using the ``auspice_config`` entry. Example: | ||
|
||
.. code:: yaml | ||
auspice_config: ncov-tutorial/auspice-config-custom-data.json | ||
This overrides the default Auspice config file, ``defaults/auspice_config.json``. | ||
|
||
Adding custom metadata fields to color by | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
1. Add a :doc:`valid metadata column <./data-prep/local-data>` to your ``metadata.tsv`` | ||
2. Add an entry to the ``colorings`` block of the Auspice config file: | ||
|
||
.. code:: json | ||
"colorings": [ | ||
{ | ||
"key": "location", | ||
"title": "Location", | ||
"type": "categorical" | ||
}, | ||
{ | ||
"key": "metadata_column_name", | ||
"title": "Display name for interface", | ||
"type": "<categorical/continuous>" | ||
} | ||
] | ||
Choosing defaults | ||
~~~~~~~~~~~~~~~~~ | ||
|
||
You can specify the default view in the ``display_defaults`` block of an Auspice config file: | ||
|
||
.. code:: json | ||
"display_defaults": { | ||
"color_by": "division", | ||
"distance_measure": "num_date", | ||
"geo_resolution": "division", | ||
"map_triplicate": true, | ||
"branch_label": "none" | ||
}, | ||
Choosing panels to display | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Similarly, you can choose which panels to enable in the ``panels`` block: | ||
|
||
.. code:: json | ||
"panels": [ | ||
"tree", | ||
"map", | ||
"entropy" | ||
] |
Oops, something went wrong.