mirror of
https://github.com/lh3/minimap2.git
synced 2026-10-05 16:08:12 +08:00
removed duplicate check in sim2bed
This commit is contained in:
@@ -2357,7 +2357,6 @@ function paf_sim2bed(args)
|
|||||||
}
|
}
|
||||||
var buf = new Bytes();
|
var buf = new Bytes();
|
||||||
var file = new File(args[0]);
|
var file = new File(args[0]);
|
||||||
var seen = {};
|
|
||||||
while (file.readline(buf) >= 0) {
|
while (file.readline(buf) >= 0) {
|
||||||
var line = buf.toString();
|
var line = buf.toString();
|
||||||
var t = line.split("!");
|
var t = line.split("!");
|
||||||
@@ -2378,8 +2377,6 @@ function paf_sim2bed(args)
|
|||||||
strand = t[4];
|
strand = t[4];
|
||||||
}
|
}
|
||||||
if (st > en) { var tmp = st; st = en; en = tmp; }
|
if (st > en) { var tmp = st; st = en; en = tmp; }
|
||||||
if (seen[line]) continue;
|
|
||||||
seen[line] = 1;
|
|
||||||
print([chr, st, en, line, 0, strand].join("\t"));
|
print([chr, st, en, line, 0, strand].join("\t"));
|
||||||
}
|
}
|
||||||
file.close();
|
file.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user