# MafEncoding

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

The MAF display's `encoding`, the channels its aligned cells paint through
and the field its rows' bars show.

## Example usage

```js
{ type: 'LinearMafDisplay', encoding: { color: 'identity', y: 'identity' } }
```

## 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 |
| --- | --- |
| **color**<br>[MafColor](../mafcolor) | What each aligned cell paints: `mismatch`, `base`, `identity`, `chromosome` or `codon`, and the scale its values map through. |
| **y**<br>[MafY](../mafy) | The value a row's bar height shows: `identity`, or unset for none. |

