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