MultiWayGeneColor
Auto-generated from the config schema in the source — see the config guide for concepts. Provided by the linear-comparative-view plugin. View source.
Example usage
{ type: 'MultiWaySyntenyDisplay', color: { field: 'cluster' } }The multi-way synteny display's gene color: a CSS color or jexl:
callback in value, or a field whose values each take a range color, or
whose numbers each take the color of the interval between cut points they
fall in, with a key. A string is the constant; the object binds 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 |
|---|---|
valuemaybeColor | A CSS color, or a jexl callback over feature returning one; unset, goldenrod.callback args: feature |
fieldfeatureField = '' | a feature field, or a jexl expression over feature, whose values each paint one range color with a key; cluster paints a gene by the ortholog group it carries and a placement box by its own |
scalemaybeStringEnum | none paints value and keeps the field for a switch back; categorical a range color per value of field; threshold a range color per interval between the cut points in domain; unset follows field |
domainstringArray = [] | the values that take the range first, in order; a value left out takes a color no listed value or value met before it paints, the first time the track shows it, and keeps it. Under threshold, the ascending cut points, a value on a cut taking the interval above it |
rangecolorArray = [] | CSS colors the domain takes, in order, continuing into the default palette past its end; under threshold one per interval, one more than the cuts |
labelsstringArray = [] | key label for each domain value, one each in order, or under threshold for each interval from the lowest; one past the list keeps its own name |
titlemaybeString | key title; unset keeps the display's own heading, "" draws none |