Skip to content
Browse files

Make gradient colours configurable from ini

  • Loading branch information...
1 parent d041b42 commit c21c365a3d9abfd0617abd78552e45dedc1b616e @nicklangridge nicklangridge committed Mar 4, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 modules/Bio/EnsEMBL/GlyphSet/bigwig.pm
View
6 modules/Bio/EnsEMBL/GlyphSet/bigwig.pm
@@ -209,6 +209,12 @@ sub features {
$config->{'max_score'} = $max_score;
$config->{'min_score'} = $min_score;
$config->{'useScore'} = 2;
+
+ if (my $colours = $self->species_defs->GRADIENT_COLOURS) {
+ for (0..$#{ $colours }) {
+ $config->{"cgColour$_"} = $colours->[$_];
+ }
+ }
$self->{_cache}->{bw_features} = {'url' => [ \@features, $config ]};
}

0 comments on commit c21c365

Please sign in to comment.
Something went wrong with that request. Please try again.