Permalink
Browse files

Update for small variables name changes

  • Loading branch information...
trvrb committed May 21, 2018
1 parent b641443 commit a6738e31359948412b77a13be7a8a13b08539ee0
Showing with 3 additions and 3 deletions.
  1. +1 −1 auspice/analysis/plot_clades.py
  2. +2 −2 auspice/js/auspice/tree.js
@@ -20,7 +20,7 @@
virus = args.lineage
segment = args.segment
input_file_prefix = '../data/flu_' + virus + '_' + segment + '_' + resolution
input_file_prefix = '../data/flu_seasonal_' + virus + '_' + segment + '_' + resolution
if args.build == 'who':
input_file_prefix = '../data/flu_who_' + virus + '_' + segment + '_' + resolution + '_cell_hi'
if args.build == 'cdc':
@@ -715,7 +715,7 @@ d3.json(path + file_prefix + "tree.json", function(error, root) {
.render();
// add clade labels
var clades = nodes.filter(function(d){return typeof d.attr["clade_name"] !== "undefined";});
var clades = nodes.filter(function(d){return typeof d.attr["clade_annotation"] !== "undefined";});
var clade_annotations = treeplot.selectAll('.annotation')
.data(clades)
.enter()
@@ -724,7 +724,7 @@ d3.json(path + file_prefix + "tree.json", function(error, root) {
.style("text-anchor", "end")
.style("visibility",(branch_labels)?"hidden":"visible")
.text(function (d) {
return d.attr.clade_name;
return d.attr.clade_annotation;
});
var xScale = d3.scale.linear()

0 comments on commit a6738e3

Please sign in to comment.