From 3d0e0cdcdc29eb42fdc93ffd0a520ddb5f7b6638 Mon Sep 17 00:00:00 2001 From: jrobinso <933148+jrobinso@users.noreply.github.com> Date: Thu, 5 Oct 2023 22:36:28 -0700 Subject: [PATCH] change default wig track window function to "mean" for bigwig tracks --- js/feature/wigTrack.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/feature/wigTrack.js b/js/feature/wigTrack.js index 22796641a..3f04fde77 100755 --- a/js/feature/wigTrack.js +++ b/js/feature/wigTrack.js @@ -44,9 +44,11 @@ class WigTrack extends TrackBase { } else if ("bigwig" === format) { this.featureSource = new BWSource(config, this.browser.genome) this.resolutionAware = true + this.windowFunction = config.windowFunction || 'mean' } else if ("tdf" === format) { this.featureSource = new TDFSource(config, this.browser.genome) this.resolutionAware = true + this.windowFunction = config.windowFunction || 'mean' } else { this.featureSource = FeatureSource(config, this.browser.genome) this.resolutionAware = false