Skip to content

Commit

Permalink
BigWig track: Add none windowFunction (#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
nivm authored Oct 7, 2024
1 parent 5e1af18 commit 74bd9b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/bigwig/bwReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class BWReader {
// Select a biwig "zoom level" appropriate for the current resolution.
const zoomLevelHeaders = await this.getZoomHeaders()
let zoomLevelHeader = bpPerPixel ? zoomLevelForScale(bpPerPixel, zoomLevelHeaders) : undefined
if (zoomLevelHeader) {
if (zoomLevelHeader && windowFunction != "none") {
treeOffset = zoomLevelHeader.indexOffset
decodeFunction = decodeZoomData
} else {
Expand Down
2 changes: 1 addition & 1 deletion js/bigwig/bwSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BWSource extends BaseFeatureSource {

queryable = true
#wgValues = {}
windowFunctions = ["mean", "min", "max"]
windowFunctions = ["mean", "min", "max", "none"]

constructor(config, genome) {
super(genome)
Expand Down

0 comments on commit 74bd9b2

Please sign in to comment.