Commit 32e62be5 authored by Marc Duez's avatar Marc Duez
Browse files

builder: add cluster by system button anr remove cluster by clonotype button (...

builder: add cluster by system button anr remove cluster by clonotype button ( display only if neccesary )
parent 697a7323
......@@ -119,7 +119,6 @@
<div class="menu" onmouseover="showSelector('clusterSelector');" > cluster
<div id="clusterSelector" class="selector"><div>
<a class="buttonSelector" onclick="m.resetClones();">reset</a>
<a class="buttonSelector" onclick="m.clusterBy('_clonotype');">clonotype</a>
<a class="buttonSelector" onclick="m.clusterBy('V');">V gene + allele</a>
<a class="buttonSelector" onclick="m.clusterBy('J');">J gene + allele</a>
</div></div>
......
......@@ -383,6 +383,21 @@ Builder.prototype = {
targetJ.onclick = function () { self.m.clusterBy('_target.J-GENE')}
targetJ.appendChild(document.createTextNode("target J"));
clusterSelector.appendChild(targetJ)
var clonotype = document.createElement('a');
clonotype.className = "buttonSelector"
clonotype.onclick = function () { self.m.clusterBy('_clonotype')}
clonotype.appendChild(document.createTextNode("clonotype"));
clusterSelector.appendChild(clonotype)
}
if (self.m.windows[0].system){
var system = document.createElement('a');
system.className = "buttonSelector"
system.onclick = function () { self.m.clusterBy('system')}
system.appendChild(document.createTextNode("system"));
clusterSelector.appendChild(system)
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment