Closed srobb1 closed 3 years ago
I think itemRgb is not by default enabled for tracks loaded with flatfile-to-json
It was a feature added for bigbed and for BED tabix tracks
It also is a setting that is available for only this glyph type: "glyph":"JBrowse/View/FeatureGlyph/UCSC/BED"
And then finally, it is a typo in the docs. It is itemRgb (lower case) instead of ItemRgb, but its enabled by default on that glyph type
tldr: consider using BEDTabix storeClass + JBrowse/View/FeatureGlyph/UCSC/BED glyph type to try to get itemRgb to work, or use a custom color callback if continuing to use flatfile-to-json
itemRgb is listed in the canvas feature list of options. So just because it is in this tables doesn't mean I can use it with flatfile-to-json. Good to know. I was thinking if I can't get it to work this way, I know i can convert to GFF and use a callback with 9th column attributes. I am not sure how to use callbacks with bed files (not sure how to get data in a specific bed column).
I will look into using "glyph":"JBrowse/View/FeatureGlyph/UCSC/BED".
Thanks Colin.
Sofia
I GOT IT!!! THANK YOU
{
"compress" : 0,
"key" : "chr81msk_net",
"label" : "chr81msk_net.bed",
"storeClass" : "JBrowse/Store/SeqFeature/BEDTabix",
"ItemRgb" : true,
"style" : {
"className" : "feature"
},
"trackType" : "CanvasFeatures",
"type" : "CanvasFeatures",
"urlTemplate" : "files/chr81/chr81msk_net.bed.gz"
}
excellent :) it should definitely be easier to do stuff like this, as having those colors is really important. we still need to port similar functionality to jbrowse 2 so will keep in mind
maybe can close for now
I have a bed file with rgb values in the 9th column. I would like to use these values to color my features. I see in the documentation that I should be able to add
"ItemRgb": true
to my config. I have done this but the colors do not change. Is there something I am missing?Thank you, Sofia
Bed file line:
Config: