RowColor
Auto-generated from the config schema in the source — see the config guide for concepts. Built into JBrowse core. View source.
Example usage
{
type: 'LinearWiggleDisplay',
rowColor: { domain: ['tumor', 'normal'], range: ['#b2182b', '#2166ac'] },
}{ type: 'LinearMultiSampleVariantDisplay', rowColor: 'population' }{
type: 'LinearMultiRowFeatureDisplay',
rowColor: { domain: ['mom'], range: ['#b2182b'], unknown: '#cccccc' },
}The rowColor setting of the row displays: one categorical color channel
on the row axis. field names the row attribute whose values take the
colors, name (the row itself) by default, and domain/range pair those
values with CSS colors, so a color a reader sets on a row in the
arrangement dialog is an entry under name. Each display paints it on the
channel that carries a row's identity: the quantitative display's plot, or
the tint beside its label while a score gradient paints; the multi-row
feature display's blocks; the multi-sample variant displays' label tint; the
MAF display's label tint, over the adapter's samples[].color; the mark
display's label tint, over a listed source's color. Where the rows carry
attributes, a samplesTsv column or a subtrack's group, field may name one,
and its values each take a palette color. Under name the palette deals only
where the rows share one panel, a wiggle overlay; stacked rows are named by
their labels. unknown: '' deals none, so only the values domain lists take
a color and every other row keeps its own. A string is the field.
Config slots
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 |
|---|---|
fieldstring = 'name' | the row attribute whose values take the colors: name, the row itself, or an attribute the rows carry, such as a column of a multi-sample variant adapter's samplesTsvLocation, e.g. population, or a subtrack's group |
domainstringArray = [] | the field's values given a color of their own, in order: under name, rows by name |
rangecolorArray = [] | the CSS color each value in domain takes, in the same order |
unknownmaybeColor | color for a value missing from domain: unset the next palette color where the display deals one, a color that color, "" none from this setting |