# NormalInsertSize

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 `alignments` plugin. [View source](https://github.com/GMOD/jbrowse-components/blob/main/plugins/alignments/src/LinearAlignmentsDisplay/normalInsertSizeConfigSchema.ts).

The alignments display's `normalInsertSize` setting: the insert sizes a
proper pair counts as `normal`, which every reader of
`insertSizeAndOrientation` classifies by, the read fills, the connections
and the hover. Both ends pin the band together; unset, each region's band
is sampled from the pairs in that region. The key names the band in bp wherever every
region in view classifies by one, and the hover names the bound a pair
crosses. Recoloring a level is `encoding.color`'s.

## Example usage

```js
{
  type: 'LinearAlignmentsDisplay',
  normalInsertSize: { min: 150, max: 600 },
  encoding: {
    color: {
      field: 'insertSizeAndOrientation',
      scale: { domain: ['long', 'RL'], range: ['#d62728', '#17becf'] },
    },
  },
}
```

## 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](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 |
| --- | --- |
| **min**<br>[`maybeNumber`](https://jbrowse.org/jb2/docs/config_guides/slot_types#the-maybe-types) | the shortest insert in bp a pair counts as normal; shorter is short. Pins the band with max; unset, each region's band is sampled from the pairs in that region |
| **max**<br>[`maybeNumber`](https://jbrowse.org/jb2/docs/config_guides/slot_types#the-maybe-types) | the longest insert in bp a pair counts as normal; longer is long. Pins the band with min; unset, each region's band is sampled from the pairs in that region |

