# AlignmentsBaseColor

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/alignmentsBaseColorConfigSchema.ts).

The `pileup.bases.encoding.color` channel: the per-base variable painted
as a cell per base over the reads, whatever `encoding.color` fills them
with. `modifications` paints the MM/ML calls and `bisulfite` the conversion
state against the reference, both through `pileup.bases.filter` and
`unmodified`; `baseQuality` and `base` paint every aligned base. A string is
the field. While a modification field paints, mismatches draw grey, and a
read that no `encoding.color` paints takes a pale strand tint.

## Example usage

```js
{
  type: 'LinearAlignmentsDisplay',
  pileup: { bases: { show: true, encoding: { color: 'modifications' } } },
}
```

## 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 |
| --- | --- |
| **field**<br>[`maybeStringEnum`](https://jbrowse.org/jb2/docs/config_guides/slot_types#the-maybe-types) (baseQuality, base, modifications, bisulfite) | the per-base variable painted over the reads: modifications, bisulfite, baseQuality or base; unset paints none |

