-
Hey, Thanks for the great viz tool. I have a question regarding coloring. How can I color bed tracks based on an attribute? To make it more clear I have this example bed file: chr1 300 500 SampleA 1 I want to color tracks red if the fifth color is 1 and green if it is 3. And some other color if the sixth column is LOH. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi there Currently we don't support itemRgb field in the BED, it would be a good feature and I attempted to get it added but was a little too hacky :) There is a ticket for it here #1734 Currently you could use a customization to modify the color using a "jexl" callback I made this work with your data by adding this BED file as a tabix BED track (bgzip yourfile.bed; tabix yourfile.bed.gz) then then added it to the config
looks like this (modified bed to be all features on chr1 too) hope that helps. our config system may look kinda verbose too but let me know if there is anything i can help clarify |
Beta Was this translation helpful? Give feedback.
Hi there
Currently we don't support itemRgb field in the BED, it would be a good feature and I attempted to get it added but was a little too hacky :)
There is a ticket for it here #1734
Currently you could use a customization to modify the color using a "jexl" callback
I made this work with your data by adding this BED file as a tabix BED track (bgzip yourfile.bed; tabix yourfile.bed.gz) then then added it to the config
jbrowse add-track yourfile.bed.gz --load copy
and then updating the config by hand to look like this