Skip to content

Commit

Permalink
changed the way spans are passed to callback (in case it is passed a …
Browse files Browse the repository at this point in the history
…different argument in future
  • Loading branch information
jsmirob committed Mar 1, 2013
1 parent 06de729 commit b6f41ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/JBrowse/Store/SeqFeature/Boolean.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ inverseMask: function( features, spans, featCallback, doneCallback ) {
if ( features.hasOwnProperty(key) ) {
featCallback( features[key] )
}}
doneCallback( spans );
doneCallback( {spans: spans} );
},

combineStats: function( key, currStats, newStats) {
Expand Down Expand Up @@ -319,9 +319,11 @@ combineStats: function( key, currStats, newStats) {
case 'basesCovered':
return currStat + newStat;
case 'scoreMin':
return Math.min( currStat, newStat );
return currStat + newStat;
case 'scoreMax':
return Math.max( currStat, newStat );
/* note: this might overestimate the maxmimu score.
* If the two maximums are in different regions, they will not add */
return currStat + newStat;
case 'scoreSum':
return currStat + newStat;
case 'scoreSumSquares':
Expand Down

0 comments on commit b6f41ac

Please sign in to comment.