Skip to content

Commit

Permalink
Inverted logic on the chunkSizeLimit/fetchSizeLimit args
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Oct 31, 2018
1 parent 9e1d34d commit c011f4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/JBrowse/Store/SeqFeature/BAM.js
Expand Up @@ -146,8 +146,8 @@ return declare( [ SeqFeatureStore, DeferredStatsMixin, DeferredFeaturesMixin, In
baiFilehandle: baiBlob,
csiFilehandle: csiBlob,
renameRefSeqs: n => this.browser.regularizeReferenceName(n),
fetchSizeLimit: 100000000 || args.fetchSizeLimit,
chunkSizeLimit: 10000000 || args.chunkSizeLimit
fetchSizeLimit: args.fetchSizeLimit || 100000000,
chunkSizeLimit: args.chunkSizeLimit || 20000000
})

bamIndexedFilesCache.set(cacheKey, this.bam)
Expand Down
4 changes: 2 additions & 2 deletions src/JBrowse/View/Track/Alignments2.js
Expand Up @@ -157,8 +157,8 @@ return declare( [ CanvasFeatureTrack, AlignmentsMixin ], {
region.end = region.end

this.store.getPairedRanges(region, range => {
region.start = Math.max(0, Math.max(range.min, reg.start - len*4))
region.end = Math.min(range.max, reg.end + len*4)
region.start = Math.max(0, range.min - len)
region.end = range.max + len
this.store.getFeatures(region, function() {}, resolve, reject)
}, reject)
}).then(() => {
Expand Down

0 comments on commit c011f4f

Please sign in to comment.