mirror of
https://github.com/lh3/minimap2.git
synced 2026-09-21 02:28:12 +08:00
when there are incorrect anno, warn but not abort
This commit is contained in:
+2
-1
@@ -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]]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user