[Gmod-help] Change bgcolor using notes
Wilfried Guiblet
wilfried.guiblet at upr.edu
Wed Sep 7 17:07:26 EDT 2011
Hello,
I am currently trying to custom my GBrowser in order to display different
ancestry on the same track, by the use of generic glyph.
Here is one line from my gff3 :
chr1 example Ancestry_Calls 752566 1089699 0.997862 .
. Name=HG00551_2;Note=CEU
I would like to be able to change the bgcolor in the Track Configuration
using a Perl function. So far, reading on different subjects, I wrote this
one:
sub {
my ($feature,$option_name,$part_no,$total_parts,$glyph) = @_;
my ($ref, $name, $notes);
($notes) = $feature->attributes('Note');
if ($notes) =~ /CEU/) {
return 'red';
} else {
return 'orange';
}
}
But I can't make it work. It keeps displaying me another color than the ones
I set up in the function, so I guess something is wrong inside my coding.
I hope you would be able to point what is my mistake,
Thank you,
Wilfried Guiblet
Graduate Student
University of Puerto Rico Mayaguez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://brie4.cshl.edu/pipermail/gmod-help/attachments/20110907/86324c76/attachment.html>
More information about the Gmod-help
mailing list