Commit 8940a141 authored by Thonier Florian's avatar Thonier Florian

model.js; take into account hte null values for the field normalized_reads if set to null

link to #3943
parent 05463b76
Pipeline #85688 failed with stages
in 14 seconds
...@@ -699,8 +699,11 @@ changeAlleleNotation: function(alleleNotation) { ...@@ -699,8 +699,11 @@ changeAlleleNotation: function(alleleNotation) {
* if raw is defined, do not normalize * if raw is defined, do not normalize
*/ */
normalize_reads: function(clone, time, raw) { normalize_reads: function(clone, time, raw) {
if (this.normalization_mode == this.NORM_EXTERNAL && clone.normalized_reads != undefined && raw == undefined) { if (this.normalization_mode == this.NORM_EXTERNAL
return clone.normalized_reads[time] ; && clone.normalized_reads != undefined
&& clone.normalized_reads[time] != null
&& raw == undefined) {
return clone.normalized_reads[time] ;
} else { } else {
return clone.reads[time] ; return clone.reads[time] ;
} }
......
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