Exclude empty SAM lines in bounds check for ALT postprocessor
This commit is contained in:
parent
fde1fd7ce3
commit
27dd1da702
|
|
@ -283,7 +283,7 @@ function bwa_postalt(args)
|
||||||
// process SAM
|
// process SAM
|
||||||
var buf2 = [], hla = {};
|
var buf2 = [], hla = {};
|
||||||
file = args.length - getopt.ind >= 2? new File(args[getopt.ind+1]) : new File();
|
file = args.length - getopt.ind >= 2? new File(args[getopt.ind+1]) : new File();
|
||||||
while (file.readline(buf) >= 0) {
|
while (file.readline(buf) > 0) {
|
||||||
var m, line = buf.toString();
|
var m, line = buf.toString();
|
||||||
|
|
||||||
if (line.charAt(0) == '@') { // print and then skip the header line
|
if (line.charAt(0) == '@') { // print and then skip the header line
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue