mirror of
https://github.com/lh3/minimap2.git
synced 2026-10-06 01:18:11 +08:00
r767: don't crash when there is no "cg" (#153)
This commit is contained in:
+5
-3
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env k8
|
#!/usr/bin/env k8
|
||||||
|
|
||||||
var paftools_version = 'r755';
|
var paftools_version = 'r767';
|
||||||
|
|
||||||
/*****************************
|
/*****************************
|
||||||
***** Library functions *****
|
***** Library functions *****
|
||||||
@@ -676,8 +676,10 @@ function paf_stat(args)
|
|||||||
last_qlen = ori_qlen;
|
last_qlen = ori_qlen;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
l_tot += last_qlen;
|
if (regs.length) {
|
||||||
l_cov += cov_len(regs);
|
l_tot += last_qlen;
|
||||||
|
l_cov += cov_len(regs);
|
||||||
|
}
|
||||||
|
|
||||||
file.close();
|
file.close();
|
||||||
buf.destroy();
|
buf.destroy();
|
||||||
|
|||||||
Reference in New Issue
Block a user