From 58802a037f1bd2d272e6a9672d94643f8163a99f Mon Sep 17 00:00:00 2001 From: jrobinso <933148+jrobinso@users.noreply.github.com> Date: Thu, 10 Aug 2023 21:19:19 -0700 Subject: [PATCH] Unwrap whole-genome feature for color function -- see issue #1669 --- js/feature/featureTrack.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/feature/featureTrack.js b/js/feature/featureTrack.js index 68c60359e..d4da4bec1 100755 --- a/js/feature/featureTrack.js +++ b/js/feature/featureTrack.js @@ -432,7 +432,9 @@ class FeatureTrack extends TrackBase { * @returns {string} */ - getColorForFeature(feature) { + getColorForFeature(f) { + + const feature = f._f || f // f might be a "whole genome" wrapper let color if (this.altColor && "-" === feature.strand) {