You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Changelog
2
2
3
+
* Added a `treeZoom=selected` query to load trees at the same zoom level after the "zoom to selected" button has been pressed, where applicable. See [the view settings docs](https://docs.nextstrain.org/projects/auspice/en/latest/advanced-functionality/view-settings.html) for more details. ([#1321](https://github.com/nextstrain/auspice/pull/1321))
* The `treeZoom=selected` query is only applicable in certain circumstances and acts as if we had applied all other view settings and then clicked the "zoom to selected" button. The behaviour of the "zoom to selected" button can differ depending on the current zoom level of the tree, and the URL query will only be set if the same zoom level is obtaibavle if you click the button from a fully zoomed out state; see [this GitHub thread for more details](https://github.com/nextstrain/auspice/pull/1321#issuecomment-2914923800). Finally, if a `label` query is in the URL then that will be used instead as it has higher specificity.
64
+
59
65
60
66
Certain other properties on the JSON's ``meta`` dictionary also affect the view settings.
61
67
See the `JSON schema <https://github.com/nextstrain/augur/blob/master/augur/data/schema-export-v2.json>`__ for more details.
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."
11
11
---
12
12
13
13
14
-
# [P1: Change coloring to sampling date](http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&c=num_date&branchLabel=aa)
14
+
# [P1: Change coloring to clade](http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&branchLabel=aa)
15
15
16
-
Check that both the branches and tips update.
16
+
Check that both the branches and tips update. (The clade coloring is the default, so this slide removes the previous `c=num_date` query)
17
17
18
18
The clade labels should now show selected amino acids (with the selecting being done by auspice).
19
19
20
-
# [P2: Zoom into clade 3C.2a1b.2a.2](http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&c=num_date&label=clade:3C.2a1b.2a.2&branchLabel=aa&showBranchLabels=all)
20
+
# [P2: Zoom in via filtering & "zoom-to-selected"](http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&branchLabel=aa&f_clade_membership=3C.2a1b.2a.1,3C.2a1b.2a.2&treeZoom=selected)
21
21
22
-
We simultaneously zoom into clade 3C.2a1b.2a.2 (top right section of tree) and show _all_ AA mutations as branch labels.
23
-
If you go to the previous slide the aa mutation labels should revert to only showing a subset.
22
+
We add two clade filters: "3C.2a1b.2a.1" & "3C.2a1b.2a.2" and the URL query `treeZoom=selected` which zooms into their CA
23
+
(which does not have its own branch label)
24
+
25
+
26
+
# [P3: Zoom in further](http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&c=num_date&label=clade:3C.2a1b.2a.2&branchLabel=aa&showBranchLabels=all)
27
+
28
+
We simultaneously zoom into clade 3C.2a1b.2a.2 (top right section) and show _all_ AA mutations as branch labels.
29
+
If you go to the previous slide(s) the aa mutation labels should revert to only showing a subset.
30
+
31
+
# [P4: Zoom out to clade 3C.2a1b.2 _and_ change color](http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&label=clade:3C.2a1b.2)
24
32
25
-
# [P3: Zoom out to clade 3C.2a1b.2 _and_ change color](http://localhost:4000/flu/seasonal/h3n2/ha/3y?d=tree&label=clade:3C.2a1b.2)
26
33
Check that the coloring of the branches and tips update as we zoom out (slightly).
27
34
28
35
The coloring should be back to the default (clade), and so should the branch labels (clade also).
29
36
30
-
# [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:3C.2a&m=div)
37
+
# [P5: 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:3C.2a&m=div)
31
38
* Zoomed out to near the root (clade 3C.2a)
32
39
* Changed the horizontal scale to divergence
33
40
* Changed the color-by to LBI (and legend should be open)
34
-
*Filtered to North American Samples (i.e. the majority of tips are not visible).
41
+
*Kept the North American region filter (i.e. the majority of tips are not visible).
35
42
* Time slice excludes pre-2017 samples (note that we don't have the grey overlay here since the axis is divergence)
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.
0 commit comments