-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to storing test narratives in the auspice repo
This commit signifies a shift to storing a set of narrative files in this repo, as opposed to obtaining the nextstrain.org narratives via a script. The Nextstrain.org narratives are still obtainable (they are all stored in their own github repo) and the docs have been updated to show this. By storing and maintaining "test narratives" in the auspice repo we can both provide examples of the capability of narratives and use them to test functionality and fix bugs. As the are stored in the `narratives` directory, they are available via Nextstrain Community URLs at nextstrain.org/community/narratives/nextstrain/auspice/...
- Loading branch information
1 parent
dd5e458
commit b2a347a
Showing
10 changed files
with
63 additions
and
43 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
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ big_flu | |
/static/ | ||
s3/ | ||
/local_narratives/ | ||
/narratives/ | ||
/datasets/ | ||
**/__diff_output__ | ||
|
||
|
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,13 @@ | ||
--- | ||
title: "Example of a narrative which can't be parsed" | ||
date: "June 2020" | ||
dataset: "https://nextstrain.org/zika" | ||
abstract: "This narrative in incorrectly parsed by auspice v2.16.0 (and earlier) such that it doesn't even render." | ||
--- | ||
|
||
# [Summary](https://nextstrain.org/community/andersen-lab/HCoV-19-Genomics-Nextstrain/hCoV-19/usa/sandiego?c=region&d=tree&legend=open&onlyPanels&p=full&sidebar=closed) | ||
|
||
The problem is the following lines -- adding a character(s) to each line following the link syntax fixes the problem. | ||
|
||
Table of Contents: | ||
1. [Some link](https://nextstrain.org) |
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,34 @@ | ||
--- | ||
title: Simultaneous Updates to Tree State | ||
authors: | ||
- James Hadfield | ||
authorLinks: | ||
- https://twitter.com/hamesjadfield | ||
affiliations: "Fred Hutch" | ||
dataset: "http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree" | ||
date: June 2020 | ||
abstract: "A narrative to explore simultaneous changes to tree state. The aim is both to reveal what's possible, and to prevent future regressions via automated testing." | ||
--- | ||
|
||
|
||
# [P1: Change color-by to num_date]("http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&c=num_date) | ||
Check that both the branches and tips update. | ||
|
||
# [P2: Zoom into clade A1]("http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&c=num_date&label=clade:A1) | ||
|
||
# [P3: Zoom into clade A1b _and_ change color]("http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&label=clade:A1b) | ||
Check that the coloring of the branches and tips update as we zoom in. | ||
|
||
# [P4: Lots of simultaneous changes](http://localhost:4000/flu/seasonal/h3n2/ha/3y?c=lbi&d=tree&dmin=2017-01-01&f_region=North%20America&label=clade:3c2.A&m=div) | ||
* Zoomed out to near the root (clade 3c2.A) | ||
* Changed the horizontal scale to divergence | ||
* Changed the color-by to LBI (and legend should be open) | ||
* Filtered to North American Samples (i.e. the majority of tips are not visible). | ||
* Time slice excludes pre-2017 samples (note that we don't have the grey overlay here since the axis is divergence) | ||
|
||
# [P5: Layout change (and others)](http://localhost:4000/flu/seasonal/h3n2/ha/3y?branchLabel=none&d=tree&l=radial&m=div) | ||
Underneath, this uses a different set of d3 calls where instead of transitioning all elements (branches, tips etc), which is too slow, we do a "in-parts" update: we hide the branches, transition the tips, then redraw the branches in their new position. | ||
This slide should | ||
* switch to radial view | ||
* zoom out to show the entire tree, and remove filters so all tips should be shown | ||
* change the coloring to clade |
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 was deleted.
Oops, something went wrong.