mirror of
https://github.com/lh3/minimap2.git
synced 2026-10-04 10:48:12 +08:00
minor cleanup to last commit
This commit is contained in:
+2
-2
@@ -1104,7 +1104,7 @@ function paf_sam2paf(args)
|
|||||||
// parse MD
|
// parse MD
|
||||||
var cs = [];
|
var cs = [];
|
||||||
if (MD != null) {
|
if (MD != null) {
|
||||||
var k = 0, cx = 0, cy = 0, mx = 0, my = 0, error = 0;
|
var k = 0, cx = 0, cy = 0, mx = 0, my = 0;
|
||||||
while ((m = re_MD.exec(MD)) != null) {
|
while ((m = re_MD.exec(MD)) != null) {
|
||||||
if (m[2] != null) { // deletion from the reference
|
if (m[2] != null) { // deletion from the reference
|
||||||
var len = m[2].length - 1;
|
var len = m[2].length - 1;
|
||||||
@@ -1133,7 +1133,7 @@ function paf_sam2paf(args)
|
|||||||
cy += cl, my += cl, ++k;
|
cy += cl, my += cl, ++k;
|
||||||
} else if (op == 'S') {
|
} else if (op == 'S') {
|
||||||
cy += cl, my += cl, ++k;
|
cy += cl, my += cl, ++k;
|
||||||
} // else: inconsistent
|
} else throw Error("at line " + lineno + ": inconsistent MD tag");
|
||||||
}
|
}
|
||||||
if (ml != 0) throw Error("at line " + lineno + ": inconsistent MD tag");
|
if (ml != 0) throw Error("at line " + lineno + ": inconsistent MD tag");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user