Open pixuenan opened 5 years ago
In the line 137 of script cnv_diagram.js, the code is as following:
137
cnv_diagram.js
var maxTextY = Math.max.apply(null, geneTexts.map(l => l.y)) + characterHeight;
I changed the code to something like following:
if (geneTexts.length > 0){ var maxTextY = Math.max.apply(null, geneTexts.map(l => l.y)) + characterHeight; } else { var maxTextY = characterHeight; }
Otherwise the CNV without overlaping gene annotation will end up with -Infinity height and empty diagram.
-Infinity
In the line
137
of scriptcnv_diagram.js
, the code is as following:I changed the code to something like following:
Otherwise the CNV without overlaping gene annotation will end up with
-Infinity
height and empty diagram.