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,7 +699,10 @@ changeAlleleNotation: function(alleleNotation) {
* if raw is defined, do not normalize
*/
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
&& clone.normalized_reads != undefined
&& clone.normalized_reads[time] != null
&& raw == undefined) {
return clone.normalized_reads[time] ;
} else {
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