fixed a bug in reverse-complement
This commit is contained in:
parent
3ae437ac13
commit
6c668d3e1a
|
|
@ -78,7 +78,7 @@ Bytes.prototype.revcomp = function()
|
||||||
this[this.length - i - 1] = Bytes.rctab[this[i]];
|
this[this.length - i - 1] = Bytes.rctab[this[i]];
|
||||||
this[i] = Bytes.rctab[tmp];
|
this[i] = Bytes.rctab[tmp];
|
||||||
}
|
}
|
||||||
if (this.length>>1)
|
if (this.length&1)
|
||||||
this[this.length>>1] = Bytes.rctab[this[this.length>>1]];
|
this[this.length>>1] = Bytes.rctab[this[this.length>>1]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue