Hello,<br><br>I am currently trying to custom my GBrowser in order to display different ancestry on the same track, by the use of generic glyph.<br><br>Here is one line from my gff3 :<br><br><br><br>chr1 example Ancestry_Calls 752566 1089699 0.997862 . . Name=HG00551_2;Note=CEU<br>
<br><br>
<br>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:<br><br><br><br>sub {<br> my ($feature,$option_name,$part_no,$total_parts,$glyph) = @_;<br>
my ($ref, $name, $notes);<br> ($notes) = $feature->attributes('Note');<br> if ($notes) =~ /CEU/) {<br> return 'red';<br> } else {<br> return 'orange';<br>
}<br> }<br><br><br><br>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.<br><br>I hope you would be able to point what is my mistake,<br>
<br>Thank you,<br><br>Wilfried Guiblet<br>Graduate Student<br>University of Puerto Rico Mayaguez<br>