Commit cd0d55fc authored by Mathieu Giraud's avatar Mathieu Giraud

scatterPlot.js: updateClone, take into account size at other sample when needed

The 'compare two samples' should also display the clones missing from the main sample.
parent 6fe89de8
......@@ -1339,6 +1339,12 @@ ScatterPlot.prototype = {
var seqID = this.m.clusters[cloneID][i]
var size = this.m.clone(seqID)
.getSequenceSize();
if (this.otherVisibility) {
var otherSize = this.m.clone(seqID).getSequenceSize(this.m.tOther)
if (otherSize > size) size = otherSize
}
this.nodes[seqID].s = size
//Math.pow(x,y) -> x**y
if (size != 0) size = this.resizeCoef * Math.pow((size + 0.001), (1 / 3)) / 25
......@@ -1354,6 +1360,12 @@ ScatterPlot.prototype = {
.getSize2();
if (this.m.clusters[cloneID].length == 0) size = this.m.clone(cloneID)
.getSequenceSize();
if (this.otherVisibility) {
var otherSize = this.m.clone(seqID).getSequenceSize(this.m.tOther)
if (otherSize > size) size = otherSize
}
this.nodes[cloneID].s = size
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