WiggleColor
Auto-generated config schema for the current JBrowse release — see the config guide for concepts. Provided by the wiggle plugin. View source.
Example usage
{ type: 'LinearWiggleDisplay', color: 'darkgreen' }
{
type: 'LinearWiggleDisplay',
color: { field: 'score', scale: 'threshold', domain: [2], range: ['#2166ac', '#b2182b'] },
}
{
type: 'LinearWiggleDisplay',
defaultRendering: 'density',
color: { field: 'score', scale: 'linear', scheme: 'viridis' },
}
See the Config slots section below for all available configuration fields.
The quantitative display's color: one CSS colour for every bar, or one of
its two fields through a scale. score through a threshold scale is the
bicolor plot — one cut point, one colour each side, the origin where the
domain names none — and through linear or log it is the density ramp.
source through a categorical scale gives each subtrack a colour of its
own, which is what several sources sharing one plot box need to be told
apart. Any other pairing paints the misconfiguration grey. A wiggle colours
per signal rather than per feature, so a jexl: callback over a feature has
nothing to read here.
Config slots
These slots go on a display entry: "displays": [{ "type": "WiggleColor", ... }], or in the track's displayDefaults when this is its default display. Slot types (fileLocation, frozen, ...) are explained in the config slot types reference. Slots a base configuration contributes are listed here too, so this table is the whole surface.
| Slot | Description |
|---|---|
valuemaybeColor | One CSS colour for every bar. Writing color: "darkgreen" lands here. Unset, the display paints the picture its layout asks for: a palette entry per source where several share one plot box, and the pos/neg pair about the origin otherwise. |
fieldmaybeStringEnum (score, source) | score, the value each bar carries, or source, the subtrack it came from. Unset, the colour paints value. |
scalemaybeStringEnum (none, categorical, linear, log, threshold) | how field becomes a colour: threshold cuts score at its lowest cut and paints each side; linear and log run range, else scheme, else viridis across the y domain with domainMid at the middle stop, which is the density picture, and a one-colour range fades from white at domainMid; categorical hands each source a colour of its own; a scale over the other field paints grey; none paints value, keeping a field for a switch back; unset beside a field, it is categorical over source and threshold over score |
domainstringArray = [] | for a threshold scale, the cut point the two sides part at, the lowest where it lists several, empty meaning the origin; for a categorical scale over source, the subtracks outside a group that take the range first, in order |
rangecolorArray = [] | a threshold scale's colour below the cut and at or above it; the colours a categorical scale over source hands to the subtrack groups first and then to each subtrack, continuing into the default palette; a linear or log scale's stops, evenly spaced |
schememaybeStringEnum (viridis) | a named ramp for a linear or log scale; range's colours, where it lists any, win over it |
reverseboolean = false | turns a linear or log scale's ramp round, so its last colour paints the bottom of the domain |
domainMidmaybeNumber | the value the ramp's middle stop sits at, so a diverging ramp centres somewhere other than the middle of the domain; unset, the stops are evenly spaced across it |
Related links
- Guide: CNV across a population (1000 Genomes)
- Guide: Upgrading to v5