From cbdb6c069f3b0c7868178de85ed4165f21434bb7 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Fri, 24 Nov 2017 12:48:49 -0500 Subject: [PATCH] when there are incorrect anno, warn but not abort --- misc/intron-eval.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/intron-eval.js b/misc/intron-eval.js index 3505355..704b29f 100644 --- a/misc/intron-eval.js +++ b/misc/intron-eval.js @@ -161,7 +161,8 @@ for (var tid in tr) { if (anno[t[0]] == null) anno[t[0]] = []; var s = t[4]; for (var i = 0; i < s.length - 1; ++i) { - if (s[i][1] >= s[i+1][0]) throw Error("ERROR: wrong annotation!"); + if (s[i][1] >= s[i+1][0]) + warn("WARNING: incorrect annotation for transcript "+tid+" ("+s[i][1]+" >= "+s[i+1][0]+")") anno[t[0]].push([s[i][1], s[i+1][0]]); } }