r767: don't crash when there is no "cg" (#153)
This commit is contained in:
parent
cbeb86dad6
commit
39f836eac8
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue