Skip to content

Commit

Permalink
set viz window for shoebox track
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Oct 15, 2024
1 parent 676ecdd commit 5d2431e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/shoebox/shoeboxTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class ShoeboxTrack extends TrackBase {
height: 300,
rowHeight: 3,
max: 3000,
visibilityWindow: 1000000
}

constructor(config, browser) {
Expand Down Expand Up @@ -117,9 +118,9 @@ class ShoeboxTrack extends TrackBase {
}
}

async getFeatures(chr, start, end) {
const features = await this.featureSource.getFeatures({chr, start, end})
return features
async getFeatures(chr, start, end, bpPerPixel) {
const visibilityWindow = this.visibilityWindow
return this.featureSource.getFeatures({chr, start, end, bpPerPixel, visibilityWindow})
}


Expand Down

0 comments on commit 5d2431e

Please sign in to comment.