Skip to content

Commit

Permalink
change color conserved branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Monica Dragan committed Nov 2, 2024
1 parent 187ee87 commit 8d1f4ab
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions display_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,24 @@ function displayTree(div_id, tree_label, tree_data, target_gene, target_drug, dr
.attr("orient", "auto")
.style("stroke", function(d) {
if(d.data.conserved_parent_node_branch && !tree_info_view) {
return "dimgray"
return "#800000"//"dimgray"
}
if (d.parent != null && d.data.gene_events) {
cn_event = get_cn_event_for_gene(d, target_gene);
return get_color_for_cn_event(cn_event);
}
return "darkgray"
});
})
/*.style("fill", function(d) {
if(d.data.conserved_parent_node_branch && !tree_info_view) {
return "#d21404"//"dimgray"
}
if (d.parent != null && d.data.gene_events) {
cn_event = get_cn_event_for_gene(d, target_gene);
return get_color_for_cn_event(cn_event);
}
return "darkgray"
})*/

// Add nodes.
var node = g
Expand Down

0 comments on commit 8d1f4ab

Please sign in to comment.