# LGVSyntenyDisplay

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 `linear-comparative-view` plugin. [View source](https://github.com/GMOD/jbrowse-components/blob/main/plugins/linear-comparative-view/src/LGVSyntenyDisplay/configSchemaF.ts).

Draws a `SyntenyTrack`'s alignments in a linear genome view, stacked and
colored the way an alignments display draws reads. It has the alignments
display's bands and settings but the sashimi band, the `junction` filter
fields, `pileup.bases` and `modifications`: a synteny block has no introns,
basecaller tags or qualities.

## Example usage

Shows a `SyntenyTrack`'s alignments in a plain linear view (rather than the
two-row synteny view). Same track config as a synteny track — just pick this
display type:

```js
{
  type: 'SyntenyTrack',
  trackId: 'hg38_vs_mm10',
  name: 'hg38 vs mm10',
  assemblyNames: ['hg38', 'mm10'],
  adapter: {
    type: 'PAFAdapter',
    uri: 'https://example.com/hg38_vs_mm10.paf',
    queryAssembly: 'hg38',
    targetAssembly: 'mm10',
  },
  displays: [
    {
      type: 'LGVSyntenyDisplay',
      displayId: 'hg38_vs_mm10-LGVSyntenyDisplay',
    },
  ],
}
```

## Related links

- **Adapter:** [BlastTabularAdapter](../blasttabularadapter)
- **Adapter:** [ChainAdapter](../chainadapter)
- **Adapter:** [DeltaAdapter](../deltaadapter)
- **Adapter:** [MashMapAdapter](../mashmapadapter)
- **Adapter:** [MCScanAnchorsAdapter](../mcscananchorsadapter)
- **Adapter:** [MCScanBlocksAdapter](../mcscanblocksadapter)
- **Adapter:** [MCScanSimpleAnchorsAdapter](../mcscansimpleanchorsadapter)
- **Adapter:** [MultiGenomeIndexedPAFAdapter](../multigenomeindexedpafadapter)
- **Adapter:** [MultiGenomePAFAdapter](../multigenomepafadapter)
- **Adapter:** [MultiPairwiseSyntenyAdapter](../multipairwisesyntenyadapter)
- **Adapter:** [PAFAdapter](../pafadapter)
- **Adapter:** [PairwiseIndexedPAFAdapter](../pairwiseindexedpafadapter)
- **State model:** [runtime API](../../models/lgvsyntenydisplay)
- **Base config:** [BaseLinearAlignmentsDisplay](../baselinearalignmentsdisplay)

## Color channels

| Setting | Page | `scale.type` | Preset fields |
| --- | --- | --- | --- |
| `encoding.color` | [LGVSyntenyColor](https://jbrowse.org/jb2/docs/config/lgvsyntenycolor#preset-fields) | ordinal, linear, threshold | `strand`, `mapq`, `firstOfPairStrand`, `insertSizeAndOrientation`, `mateRefName` |

## Config slots

Display slots go on a display entry: `"displays": [{ "type": "LGVSyntenyDisplay", ... }]`, or in the track's [`displayDefaults`](https://jbrowse.org/jb2/docs/config_guides/tracks#configuring-displays) when this is its default display. 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 |
| --- | --- |
| **data**<br>[SyntenyData](../syntenydata) | What the fetch reads, a [SyntenyData](https://jbrowse.org/jb2/docs/config/syntenydata) object: `resolution` picks a tiered file's stored tier. |
| **encoding**<br>[LGVSyntenyEncoding](../lgvsyntenyencoding) | The alignments displays' `encoding` with `color` painting `strand` while it names neither a field nor a constant, where the base display paints the plain fill. |
| **coverage**<br>[LGVSyntenyCoverage](../lgvsyntenycoverage) | The alignments displays' `coverage` band with `show` defaulting to off: a synteny track hides the coverage histogram unless asked. |
| **pileup**<br>[LGVSyntenyPileup](../lgvsyntenypileup) | The alignments displays' `pileup` band with `collapsed` defaulting to on: one row per facet section. |
| **sort**<br>[LGVSyntenySort](../lgvsyntenysort) | The row order, with `length` the default so big syntenic blocks cluster at the top; a string is the `field`. |
| <span class="slot-group">Inherited from [BaseLinearAlignmentsDisplay](../baselinearalignmentsdisplay) | <span class="slot-group-count">9 slots |
| **height**<br>[`number`](https://jbrowse.org/jb2/docs/config_guides/slot_types#number) = <code>250</code> | Starting height in pixels for the bands together; heightMode decides what a pileup deeper than this does |
| **unit**<br>[`stringEnum`](https://jbrowse.org/jb2/docs/config_guides/slot_types#stringenum) (read, chain) = <code>'read'</code> | The unit one row draws: a read, or a chain, which is a read, its mate and its split segments rather than a UCSC chain file's alignment (the "View as pairs/link supplementary alignments" menu row) |
| **filter**<br>[FieldPredicate](../fieldpredicate) | The alignments drawn, a list of [FieldPredicate](https://jbrowse.org/jb2/docs/config/fieldpredicate) entries every one of which must hold. The flags, `mapq` and tags decide which reads count, so coverage, the sashimi junctions and the insert-size colors count only the reads they pass: `flags.UNMAP` and the other samtools flag names, `mapq` (MAPQ 255, none reported, passes a floor), and `tags.HP` and any other tag. `name` and the read categories pick which of those reads the pileup, the arcs, the consensus and an export draw, and leave coverage whole: `spliced` per alignment, and `svSignal`, `alone` and `split` over a read, its mate and its split segments together, each taking `equal: true` or `false`. The `facet` read fields `pairOrientation`, `pairing`, `svKind`, `firstOfPairStrand` (`1` or `-1`), `mateRefName` and `mateAssembly` pick drawn reads too, each read by the section a facet by read files it under (`svKind` by its whole chain's), with `equal` or `oneOf` of their values, or `valid: false` for the reads with none; a read's strand is `flags.REVERSE`. A facet on a category gives its own coverage. `junction.reads`, `junction.canonical` (a split junction reads no motif and counts as canonical, so `equal: false` hides it), `junction.class` (`splice` for an N gap, or a split read's `deletion`, `duplication` or `inversion`) and `junction.source` (`gap` or `split`) test the sashimi junctions, and `connection.interchrom`, `connection.offscreen` and `breakpoint.reads` the connections the arcs, the read cloud and the connectors draw.<br><br>A written list merges with the defaults by field: unmapped, QC-failed and duplicate reads out (`flags.UNMAP`, `flags.QCFAIL` and `flags.DUP` `equal: false`), and `junction.reads` and `breakpoint.reads` at least 2. An entry replaces the defaults for the field it names, and an entry naming a field with no test, such as `{ field: "flags.DUP" }`, only removes them. |
| **facet**<br>[SectionFacet](../sectionfacet) | In-track stacked grouping, one labelled section per value: a read dimension (`strand`, `firstOfPairStrand`, `pairOrientation`, `pairing`, `split`, `spliced`, `svKind`, `mapq`, `mateRefName`, `mateAssembly`), a tag (`tags.HP`), or any other field. `{ field: "tags.HP", sort: ["2", "1"] }` stacks the listed values first. |
| **legend**<br>[HiddenLegend](../hiddenlegend) | The display's key: `show`, off by default. |
| **readConnections**<br>[ReadConnections](../readconnections) | The connections between mates and split segments: `show` (default off), `mark` (`link`, the arcs, or `rule`, the read cloud), `height`, `placement`, `encoding` (`strokeWidth`) and `ordinaryPairs`; the `connection` and `breakpoint` filter fields filter the connections drawn. |
| **tooltip**<br>[ReadTooltip](../readtooltip) | The read hover's first line, a [ReadTooltip](https://jbrowse.org/jb2/docs/config/readtooltip) object: the `field` it reads off each read. A bare string is the field. |
| **heightMode**<br>[`stringEnum`](https://jbrowse.org/jb2/docs/config_guides/slot_types#stringenum) (fixed, grow, fit) = <code>'fixed'</code> | Track-sizing strategy — how the track responds when there are more reads than fit (the menu sets `fit` from "Read height → Fit to track height" and `grow` from "Advanced → Track height → Grow the track"). `fixed` (the default) keeps `pileup.mark.height` and scrolls; `grow` expands the track to show every read at that height; `fit` squeezes reads so every uncollapsed section fills the display without scrolling |
| **growMaxHeight**<br>[`number`](https://jbrowse.org/jb2/docs/config_guides/slot_types#number) = <code>800</code> | Ceiling in pixels for the "Grow the track" sizing mode; a pileup deeper than this grows to the ceiling and scrolls the rest. Does not apply to the fixed or fit modes, and does not limit how much is laid out (see pileup.maxLayoutHeight)<br>_advanced_ |
| <span class="slot-group">Inherited from [BaseLinearDisplay](../baselineardisplay) | <span class="slot-group-count">2 slots |
| **fetchSizeLimit**<br>[`number`](https://jbrowse.org/jb2/docs/config_guides/slot_types#number) = <code>1000000</code> | bytes a region may fetch before the display asks first; an adapter that sets its own limit takes precedence over this<br>_advanced_ |
| **forceLoad**<br>[`boolean`](https://jbrowse.org/jb2/docs/config_guides/slot_types#boolean) = <code>false</code> | Declarative equivalent of the "Force load" button on the "too much data" banner: when true the display always renders, however large the region or dense the features. Off by default (the gate guards against huge downloads). Set it on a view with no user interaction, such as an embedded or notebook view or a screenshot, where the region is known and should draw without a click.<br>_advanced_ |

## Retired keys

An older config may still write these. Each loads without an error, and `jbrowse validate` reports it as stale.

| Key | On load |
| --- | --- |
| `maxFeatureScreenDensity` | ignored |
| `maxDisplayedBpPerPx` | ignored |
| `mouseover` | moved into a current slot |
| `jexlFilters` | ignored |
| `colorBy` | moved into a current slot |
| `pileupDisplay` | moved into a current slot |
| `snpCoverageDisplay` | moved into a current slot |
| `defaultRendering` | ignored |
| `colorScheme` | ignored |
| `scaleType` | moved into a current slot |
| `autoscale` | moved into a current slot |
| `minScore` | moved into a current slot |
| `maxScore` | moved into a current slot |
| `numStdDev` | ignored |
| `inverted` | ignored |
| `multiTicks` | ignored |
| `jitter` | ignored |
| `lineWidth` | moved into a current slot |
| `featureHeight` | moved into a current slot |
| `maxHeight` | moved into a current slot |
| `hideSmallIndels` | ignored |
| `hideMismatches` | moved into a current slot |
| `mismatchAlpha` | moved into a current slot |
| `hideLargeIndels` | ignored |
| `minSubfeatureWidth` | ignored |
| `renderers` | moved into a current slot |

