FeatureNameLabel
Auto-generated from the config schema in the source. See the config guide for concepts. Provided by the features plugin. View source.
The feature displays' labels.name, the name drawn beside each feature:
whether it shows, and the field it reads. A bare string is the field.
Shown names still hide where features crowd the screen, except gene names
while the genes alone have room.
Example usage
{ type: 'LinearBasicDisplay', labels: { name: 'gene_name' } }Config slots
A setting written to it names members one by one: a member left out stays as it is, and null resets one. 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 |
|---|---|
showboolean = true |
draw a name beside each feature |
fieldfeatureField = "jexl:get(feature,'name') || get(feature,'id')" |
the field the name reads, such as gene_name, or a jexl: expression over feature; the default reads the name, else the ID, and an empty value draws no name |
Related links
- Docs: Cookbook