Custom colors when adding a MultiQuantitativeTrack JSON through jbrowse CLI #4149
-
Hi everyone, I was curious to know if it would be possible to customise colors directly on a JSON added through jbrowse CLI (through jbrowse add-track-json). I would like to programatically assign different colors to the two tracks of my MultiQuantitativeTrack.
I already tried to modify directly the display section, as well as adding a XYPlotRenderer, but nothing worked yet. Many thanks in advance for your help! Cheers, Thomas |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
multiwiggleadapter is actually a case where you can specify the color in the adapter config section *many other track types are not like this and specify the color in the "display" config for example, but there is a shortcut for multiwiggleadapter to specify {
"type": "MultiQuantitativeTrack",
"trackId": "example",
"name": "example",
"assemblyNames": ["hg19"],
"adapter": {
"type": "MultiWiggleAdapter",
"subadapters": [
{
"type": "BigWigAdapter",
"color": "purple",
"name":"k1",
"bigWigLocation": {"uri": "https://www.encodeproject.org/files/ENCFF055ZII/@@download/ENCFF055ZII.bigWig"}
},
{
"type": "BigWigAdapter",
"color": "green",
"name":"k2",
"bigWigLocation": {"uri": "https://www.encodeproject.org/files/ENCFF826HEW/@@download/ENCFF826HEW.bigWig"}
}
]
}
} |
Beta Was this translation helpful? Give feedback.
multiwiggleadapter is actually a case where you can specify the color in the adapter config section
*many other track types are not like this and specify the color in the "display" config for example, but there is a shortcut for multiwiggleadapter to specify