Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 8033b65f authored by Marc Duez's avatar Marc Duez

scatterplot : use custom getSize function for scatterplot to avoid gigantic clone due to rescale

parent fce21dae
......@@ -73,14 +73,24 @@ Clone.prototype = {
if (this.m.reads.segmented[time] == 0 ) return 0
var result = this.getReads(time) / this.m.reads.segmented[time]
if (this.m.norm) {
result = this.m.normalize(result, time)
}
if (this.m.norm) result = this.m.normalize(result, time)
return result
}, //end getSize
//special getSize for scatterplot (ignore rescale)
getSize2: function (time) {
time = typeof time !== 'undefined' ? time : this.m.t;
if (this.m.reads.segmented[time] == 0 ) return 0
var result = this.getReads(time) / this.m.reads.segmented[time]
if (this.m.norm && this.m.normalization.method!="rescale") result = this.m.normalize(result, time)
return result
},
/* return the clone size with a fixed number of character
* use scientific notation if neccesary
* */
......
......@@ -1100,7 +1100,7 @@ ScatterPlot.prototype = {
var seqID = this.m.clusters[cloneID][i]
this.nodes[seqID].r1 = 0
}
var size = this.m.clone(cloneID).getSize();
var size = this.m.clone(cloneID).getSize2();
if (this.m.clusters[cloneID].length == 0) size = this.m.clone(cloneID).getSequenceSize();
if (size != 0) size = this.resizeCoef * Math.pow((size + 0.001), (1 / 3)) / 25
this.nodes[cloneID].r1 = size
......
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