MarkSize
Auto-generated config schema for the current JBrowse release — see the config guide for concepts. Provided by the marks plugin. View source.
Example usage
{
mark: 'link',
encoding: { size: { field: 'score', scale: 'log', range: [1, 8] } },
}See the Config slots section below for all available configuration fields.
A link mark's stroke width as a channel: a feature field read through a
linear or log scale into a px range, so a score becomes a width the way a
ramp makes it a colour. Writing a field name directly on the encoding lands
in field, on a linear scale over the default range.
Config slots
These slots go on a display entry: "displays": [{ "type": "MarkSize", ... }], 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 |
|---|---|
fieldfeatureField = '' | The feature field the width reads, or a jexl expression over feature. Empty draws every instance at the mark's own size. |
scalestringEnum (linear, log) = 'linear' | How the value becomes a width: linear or log between domainMin and domainMax. |
domainMinmaybeNumber | The value the thinnest width stands at; unset, the loaded regions' own least. |
domainMaxmaybeNumber | The value the widest width stands at; unset, the loaded regions' own greatest. |
rangestringArray = [] | The px at each end of the domain, thinnest first. Empty is 1 to 6. |