# MultiPairwiseSyntenyAdapter

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

Composes pairwise synteny adapters that all name one assembly — the anchor —
into the star an N-genome view draws from one track: hg38 against each UCSC
genome's liftOver PIF, say. A query on the anchor fans out to every child and
concatenates; a query naming one mate reaches only the child holding that
pair, which a PIF answers from the mate's own perspective; a mate pair no
child aligns is empty rather than an error, since a star has no such edge.

The anchor is inferred as the one assembly every child names, so it is never
written twice. Each child is any pairwise synteny adapter config with its
`assemblyNames` (PairwiseIndexedPAFAdapter, PAFAdapter, ChainAdapter, ...).

Every mate is a lane the multiway display's picker offers, and the display
reads only the children for the lanes it draws: the track's own
`assemblyNames` beside the anchor until the reader picks others. So a star
over every liftOver file a genome has costs a window only the reads of the
lanes on screen, and the track's `assemblyNames` is where its default lanes
are chosen.

## Example usage

```js
{
  type: 'SyntenyTrack',
  trackId: 'my_track',
  name: 'My track',
  assemblyNames: ['panTro6', 'hg38', 'gorGor6'],
  adapter: {
    type: 'MultiPairwiseSyntenyAdapter',
    adapters: [
      {
        type: 'PairwiseIndexedPAFAdapter',
        uri: 'https://jbrowse.org/ucsc/hg38/liftOver/hg38ToPanTro6.over.pif.gz',
        csi: true,
        assemblyNames: ['panTro6', 'hg38'],
      },
      {
        type: 'PairwiseIndexedPAFAdapter',
        uri: 'https://jbrowse.org/ucsc/hg38/liftOver/hg38ToGorGor6.over.pif.gz',
        csi: true,
        assemblyNames: ['gorGor6', 'hg38'],
      },
    ],
  },
}
```

## Related links

- **Track:** [SyntenyTrack](../syntenytrack)
- **Display:** [ChordSyntenyDisplay](../chordsyntenydisplay)
- **Display:** [DotplotDisplay](../dotplotdisplay)
- **Display:** [LGVSyntenyDisplay](../lgvsyntenydisplay)
- **Display:** [LinearMarkDisplay](../linearmarkdisplay)
- **Display:** [LinearSyntenyDisplay](../linearsyntenydisplay)
- **Display:** [MultiWaySyntenyDisplay](../multiwaysyntenydisplay)

## Config slots

Adapter slots go inside the track's `adapter`: `"adapter": { "type": "MultiPairwiseSyntenyAdapter", ... }`. `MultiPairwiseSyntenyAdapter` has no `uri` [shorthand](https://jbrowse.org/jb2/docs/config_guides/file_types#the-uri-shorthand) — give it the location slots below. 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 |
| --- | --- |
| **adapters**<br>[`frozen`](https://jbrowse.org/jb2/docs/config_guides/slot_types#frozen) = <code>[]</code> | the pairwise adapter configs, each naming its pair in `assemblyNames` (or `queryAssembly`/`targetAssembly`); exactly one assembly must be common to all of them |
| **coarseBpPerPxThreshold**<br>[`number`](https://jbrowse.org/jb2/docs/config_guides/slot_types#number) = <code>10000</code> | bpPerPx threshold at which a view on "Level of detail: automatic" switches the children from their fine tier to their coarse tier. The coarse tier is offered only when every child carries one, and the threshold is raised to the largest `--coarse` bound any child's `#pif` header states.<br>_advanced_ |
| **lanes**<br>[`frozen`](https://jbrowse.org/jb2/docs/config_guides/slot_types#frozen) = <code>[]</code> | The lane picker's name and heading for each mate, `[{ name, label, group }]` by assembly name; a mate not listed is offered under its name. A genome the session holds is named the way the session names it |

