Commit 06b07c7e authored by flothoni's avatar flothoni

graph and model; adapt stack obj to the hidden clones (distrib)

Link to #4026
parent 3bed060a
Pipeline #101323 failed with stages
in 13 minutes and 19 seconds
......@@ -1455,9 +1455,9 @@ Stack.prototype = {
//other
for (j=0; j<this.m.samples.number; j++){
this.min[this.m.clones.length-1][j] = this.sum[j]
this.sum[this.m.clones.length-1] += this.m.clone(this.m.clones.length-1).getSize(j)
this.max[this.m.clones.length-1][j] = this.sum[j]
this.min[this.m.getNumberRealClones()-1][j] = this.sum[j]
this.sum[this.m.getNumberRealClones()-1] += this.m.clone(this.m.clones.length-1).getSize(j)
this.max[this.m.getNumberRealClones()-1][j] = this.sum[j]
}
}
......
......@@ -3188,5 +3188,20 @@ changeAlleleNotation: function(alleleNotation) {
},
/**
* Get the number of cloens that have constant size
* @return {Number}
*/
getNumberRealClones: function(){
var nb = 0
for (var i = 0; i < this.clones.length; i++) {
if (this.clone(i).hasSizeConstant()){
nb += 1
}
}
return nb
},
}; //end prototype Model
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