Skip to content

Commit

Permalink
fix coverage track off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Oct 17, 2012
1 parent efd0a40 commit 471059c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JBrowse/View/Track/Coverage.js
Expand Up @@ -36,11 +36,11 @@ return declare( Wiggle,
var currFeat;
array.forEach( coverage, function( c, i ) {
if( currFeat && c == currFeat.score ) {
currFeat.end = leftBase+i+1;
currFeat.end = leftBase+i;
} else {
if( currFeat )
features.push( currFeat );
currFeat = new CoverageFeature({ start: leftBase + i, end: leftBase+i+1, score: c || 0 });
currFeat = new CoverageFeature({ start: leftBase + i - 1, end: leftBase+i, score: c || 0 });
}
});

Expand Down

0 comments on commit 471059c

Please sign in to comment.