Skip to content

Commit

Permalink
added hrr and pcc as edge color attributes (legend still missing)
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed Sep 19, 2017
1 parent 8910340 commit 612ada3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions planet/static/js/cytoscape.cycss
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ edge.link_score {
line-color: mapData(link_score, 0, 30, green, red);
}

edge.link_pcc {
line-color: mapData(link_pcc, 0.7, 1, blue, red);
}

edge.hrr {
line-color: mapData(hrr, 1, 100, green, red);
}

edge.ecc_score {
line-color: mapData(ecc_score, 0, 1, red, green);
}
Expand Down
4 changes: 4 additions & 0 deletions planet/templates/expression_graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,14 @@
<li><a href="#" class="cy-edge-color" attr="color">Default</a></li>
{% if node %}
<li><a href="#" class="cy-edge-color" attr="depth_color">Depth</a></li>
<li><a href="#" class="cy-edge-color" attr="link_pcc">PCC</a></li>
<li><a href="#" class="cy-edge-color" attr="hrr">HRR</a></li>
{% elif ecc_pair %}
<li><a href="#" class="cy-edge-color" attr="ecc_pair_color">Type</a></li>
{% elif not sequence %}
<li><a href="#" class="cy-edge-color" attr="link_score">Score</a></li>
<li><a href="#" class="cy-edge-color" attr="link_pcc">PCC</a></li>
<li><a href="#" class="cy-edge-color" attr="hrr">HRR</a></li>
{% else %}
<li><a href="#" class="cy-edge-color" attr="ecc_score">ECC</a></li>
<li><a href="#" class="cy-edge-color" attr="ecc_type">ECC type</a></li>
Expand Down

0 comments on commit 612ada3

Please sign in to comment.