Commit 0891daa4 authored by marc's avatar marc Committed by marc duez
Browse files

graph.js : bugfix resolutioncurve can handle unusually low analyzed read

resolutionCurve display was a mess for samples without reads or less than 5 reads
parent e5c9e333
......@@ -528,6 +528,8 @@ Graph.prototype = {
var res = []
for (var i = 0; i < this.m.samples.number; i++) {
res[i] = (r / this.m.reads.segmented[i])
if(this.m.reads.segmented[i]==0) res[i] = 1;
if(res[i] > 1) res[i] = 1;
}
if (typeof res !== "undefined" && res.length !== 0) {
......
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