Skip to content

Commit

Permalink
fixed a bug in reverse-complement
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Aug 27, 2015
1 parent 3ae437a commit 6c668d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bwakit/bwa-postalt.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Bytes.prototype.revcomp = function()
this[this.length - i - 1] = Bytes.rctab[this[i]];
this[i] = Bytes.rctab[tmp];
}
if (this.length>>1)
if (this.length&1)
this[this.length>>1] = Bytes.rctab[this[this.length>>1]];
}

Expand Down

0 comments on commit 6c668d3

Please sign in to comment.