Skip to content

Commit

Permalink
Fix another off-by-one in methylation mode rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jul 26, 2021
1 parent 2cc0a60 commit ba4e748
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default class SNPCoverageAdapter extends BaseFeatureDataAdapter {

for (let j = fstart; j < fend; j++) {
const i = j - region.start
if (i >= 0 && i < bins.length) {
if (i >= 0 && i < bins.length - 1) {
const l1 = regionSeq[i].toLowerCase()
const l2 = regionSeq[i + 1].toLowerCase()
const bin = bins[i]
Expand Down

0 comments on commit ba4e748

Please sign in to comment.