# MarkLocus

Auto-generated from the config schema in the source. See the [config guide](https://jbrowse.org/jb2/docs/config_guide) for concepts. Provided by the `marks` plugin. [View source](https://github.com/GMOD/jbrowse-components/blob/main/plugins/marks/src/LinearMarkDisplay/markLocusConfigSchema.ts).

A mark's far end as a position that may lie on another sequence: `pos`,
the feature field holding its coordinate, and `refName`, the field holding
the sequence it lies on, as a paired record states its mate. A field name written
directly on the encoding sets `pos`, on the feature's sequence.
Left unwritten behind a `mate` step, it is the other end the step found.

## Example usage

A BEDPE-like file whose second end sits in separate columns:

```js
{
  mark: 'link',
  encoding: { x2: { refName: 'chrom2', pos: 'start2' } },
}
```

## Config slots

A setting written to it replaces it whole: a member left out returns to its default. Slot types (`fileLocation`, `frozen`, ...) are explained in the [config slot types reference](https://jbrowse.org/jb2/docs/config_guides/slot_types). Slots a base configuration contributes are listed here too, so this table is the whole surface.

| Slot | Description |
| --- | --- |
| **pos**<br>[`featureField`](https://jbrowse.org/jb2/docs/config_guides/slot_types#featurefield) = <code>'end'</code> | The feature field, or jexl expression over `feature`, giving the position in bp. |
| **refName**<br>[`featureField`](https://jbrowse.org/jb2/docs/config_guides/slot_types#featurefield) = <code>''</code> | The feature field holding the sequence the position lies on. When empty, it is the feature's own. |

