RowPredicate
Auto-generated from the config schema in the source. See the config guide for concepts. Built into JBrowse core. View source.
One entry of rows.filter: a FieldPredicate over a
row attribute, a samplesTsv column on the variant display, a subtrack field
on wiggle, group on the mark displays. A row's name, its sample, its
source, its haplotype, its label and its colors are refused, since they
name a row rather than describe it: a row's name goes in rows.kept. So is
a jexl: field, which a row has no record to compute over. A row missing
the attribute (absent or empty) fails every test but valid: false, which
selects exactly those rows.
Example usage
{ type: 'LinearVariantDisplay', rows: { filter: [{ field: 'population', oneOf: ['EUR', 'AFR'] }] } }Related links
- Base config: FieldPredicate
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 |
|---|---|
| Inherited from FieldPredicate | 9 slots |
fieldfeatureField = '' |
the field tested, as the display names its fields, or a jexl: expression computed per feature |
equalmaybeFrozen |
the value must equal this |
ltmaybeNumber |
the value must be below this |
ltemaybeNumber |
the value must be at most this |
gtmaybeNumber |
the value must be above this |
gtemaybeNumber |
the value must be at least this |
oneOfmaybeFrozen |
the value must be one of these |
rangemaybeFrozen |
Vega-Lite's [min, max], both ends included and a null end open; it loads as gte and lte, the tighter bound winning where either is also written |
validmaybeBoolean |
true admits only records with a value for the field, false only those without |