when there are incorrect anno, warn but not abort

This commit is contained in:
Heng Li 2017-11-24 12:48:49 -05:00
parent 35b6d9f7d5
commit cbdb6c069f
1 changed files with 2 additions and 1 deletions

View File

@ -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]]);
}
}