FieldPredicate
Auto-generated from the config schema in the source — see the config guide for concepts. Built into JBrowse core. View source.
One entry of a filter list, Vega-Lite's field predicate: the field of
each record and the tests its value must pass, every one given. A filter
list admits a record that passes every entry. A comparison on a missing
value is false, and valid: false selects the missing values.
Example usage
filter: [{ field: 'length', gte: 10000 }, { field: 'identity', gte: 0.9 }]filter: [{ field: 'query', oneOf: ['chr1', 'chr2'] }]filter: [{ field: 'gene_group', valid: true }]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 = '' | the field tested, as the display names its fields |
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 |
validmaybeBoolean | true admits only records with a value for the field, false only those without |
Related links
- Docs: URL query parameter API