Commit c93fe76f authored by Marc Duez's avatar Marc Duez

browser : display system/info

-change some css
-add
parent 283eaaaf
......@@ -119,6 +119,7 @@ line {
}
.info_row_content {
display: inline-block;
width: 345px;
}
#info_point {
margin-top: 15px;
......@@ -257,6 +258,7 @@ line {
}
.sp_system {
position: absolute;
top: -0.5em;
}
.sp_system_label {
color: #839496;
......@@ -393,7 +395,7 @@ line {
}
.systemBoxNameMenu {
display: inline-block;
min-width: 89px;
min-width: 85px;
height: 20px;
}
.clusterBox {
......
......@@ -119,6 +119,7 @@ line {
}
.info_row_content {
display: inline-block;
width: 345px;
}
#info_point {
margin-top: 15px;
......@@ -257,6 +258,7 @@ line {
}
.sp_system {
position: absolute;
top: -0.5em;
}
.sp_system_label {
color: #657b83;
......@@ -393,7 +395,7 @@ line {
}
.systemBoxNameMenu {
display: inline-block;
min-width: 89px;
min-width: 85px;
height: 20px;
}
.clusterBox {
......
......@@ -143,6 +143,7 @@ line {
.info_row_content {
display: inline-block;
width : 345px;
}
#info_point {
......@@ -315,6 +316,7 @@ line {
.sp_system{
position:absolute;
top: -0.5em;
}
.sp_system_label{
......@@ -490,7 +492,7 @@ line {
.systemBoxNameMenu {
display: inline-block;
min-width: 89px;
min-width: 85px;
height: 20px;
}
......
......@@ -626,12 +626,6 @@ Builder.prototype = {
var keys = 0 ;
for (var key in this.m.reads.germline) {
if (key == "IGH" && keys > 0) {
span2.appendChild(document.createElement("br"));
}
keys += 1 ;
var checkbox=document.createElement("input");
checkbox.type="checkbox";
......
......@@ -938,6 +938,8 @@ Model.prototype = {
result = this.samples.names[timeID]
}else{
result = this.samples.original_names[timeID]
result = result.split('/')[result.split('/').length-1]
result = result.split('.')[0]
}
break;
case "sampling_date":
......
......@@ -814,15 +814,13 @@ ScatterPlot.prototype = {
buildSystemGrid: function () {
this.systemGrid = {"label" : []}
var n = this.m.system_selected.length-1
var n = this.m.system_selected.length
var h = this.resizeH
var w = this.resizeW*0.2
//compute hidden position for unactivated germline (to avoid firework effect)
for (var key in this.m.reads.germline){
if (key != this.m.germlineV.system){
this.systemGrid[key] = { 'x' : 0.99 , 'y' : 0.99}
}
this.systemGrid[key] = { 'x' : 0.99 , 'y' : 0.99}
}
//compute position for selected germline
......@@ -830,11 +828,13 @@ ScatterPlot.prototype = {
for (var key in this.m.system_selected){
var system = this.m.system_selected[key]
if (system != this.m.germlineV.system){
this.systemGrid[system].x = 0.9
this.systemGrid[system].y = ((i*2)+1)/(n*2)
this.systemGrid["label"].push( {"text": system, "x" : 0.9, "y" : (((i-0.4)*2)+1)/(n*2) })
i++
this.systemGrid["label"].push( {"text": system, "x" : 0.81, "y" : ((i*2)+1)/(n*2) })
}else{
this.systemGrid["label"].push( {"text": system, "x" : 0.80, "y" : ((i*2)+1)/(n*2) })
}
this.systemGrid[system].x = 0.92
this.systemGrid[system].y = ((i*2)+1)/(n*2)
i++
}
......@@ -1509,7 +1509,7 @@ ScatterPlot.prototype = {
self = this;
//LEGENDE
leg = this.label_container.selectAll("div")
leg = this.label_container.selectAll(".sp_system_label")
.data(data);
leg.enter()
.append("div");
......
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