Commit a7e154fc authored by Mathieu Giraud's avatar Mathieu Giraud

js/axes.js: sizeOtherSample axis sets non-existant clones to almost 0

Mostly solves #2788. See also #2363.
parent 66e77536
Pipeline #10692 passed with stages
in 4 minutes and 20 seconds
......@@ -166,7 +166,10 @@ Axes.prototype = {
doc: "ratio of the number of reads of each clone to the total number of reads in the selected locus, on a second sample",
label: "size (other sample)",
axis: new PercentAxis(this.m),
fct : function(clone){return clone.getSizeZero(m.tOther)},
fct : function(clone){
var size = clone.getSizeZero(m.tOther) ;
return (typeof size == "undefined") ? self.m.min_size : size
},
min : function(){return self.m.min_size},
max : 1,
log : true
......
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