Skip to content

Commit

Permalink
Unwrap whole-genome feature for color function -- see issue #1669
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Aug 11, 2023
1 parent 84955e1 commit 58802a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/feature/featureTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 58802a0

Please sign in to comment.