LDTrackDisplay
Auto-generated from the config schema in the source — see the config guide for concepts. Provided by the variants plugin. View source.
Linkage disequilibrium heatmap read from an LDTrack's pre-computed file —
PLINK --r2 output and the formats that follow it. JBrowse does not compute
LD from genotypes; run plink (or an equivalent) and point this at the result.
Example usage
{
type: 'LDTrack',
trackId: 'ld',
name: 'Linkage disequilibrium',
assemblyNames: ['hg38'],
adapter: {
type: 'PlinkLDTabixAdapter',
uri: 'https://example.com/plink.ld.gz',
},
displays: [
{
type: 'LDTrackDisplay',
displayId: 'ld-LDTrackDisplay',
encoding: { color: { field: 'dprime' } },
legend: { show: true },
},
],
}Overview
LDTrackDisplay - Identifier
Every LDTrackDisplay has a unique displayId, a required top-level field that identifies it (not one of the config slots below).
Related links
- Adapter: PlinkLDAdapter
- Adapter: PlinkLDTabixAdapter
- State model: runtime API
- Config guide: Tracks
- Developer guide: Custom track and display types
Config slots
Display slots go on a display entry: "displays": [{ "type": "LDTrackDisplay", ... }], or in the track's displayDefaults when this is its default display. Slot types (fileLocation, frozen, ...) are explained in the config slot types reference. Slots a base configuration contributes are listed here too, so this table is the whole surface.
| Slot | Description |
|---|---|
lineZoneHeightnumber = 100 | height of the band above the triangle holding the connector lines and labels advanced |
| encoding LDEncoding | The cells' channels: encoding.color, the statistic the cells show, field r2 or dprime, and the linear ramp it paints through over the statistic's 0 to 1. |
| legend HiddenLegend | The color ramp's key, off until asked for. |
| guides LDGuides sub-schema | The guides a hovered cell draws across the view at its pair's genomic positions. |
guides.showboolean = true | on hover, draw guides across the view at the pair's genomic positions advanced |
showLabelsstringEnum (none, name) = 'none' | name draws each variant name above its tick mark and none draws no labels, two of the modes of the feature display showLabelsadvanced |
tickHeightnumber = 6 | height of the tick marks at the genomic positions advanced |
variantLayoutstringEnum (genomic, columns) = 'columns' | 'columns' draws every SNP one uniform square wide; 'genomic' sizes the cells by the genomic distance between SNPs. The multi-sample variant display takes the same slot for the same choice.advanced |
heightnumber = 400 | default height of the display, the band above the triangle included |
heightModestringEnum = 'fixed' | fixed draws square cells at the triangle's natural half-width height; fit squashes it to fill the display height |
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 |
fetchSizeLimit | ignored |
mouseover | ignored |
jexlFilters | moved into a current slot |
ldMetric | moved into a current slot |
showLegend | moved into a current slot |
showVerticalGuides | moved into a current slot |
fitToHeight | moved into a current slot |
useGenomicPositions | moved into a current slot |
maxHeight | ignored |
colorScheme | ignored |
signedLD | ignored |
showLDTriangle | ignored |
showRecombination | ignored |
recombinationZoneHeight | ignored |
minorAlleleFrequencyFilter | ignored |
lengthCutoffFilter | ignored |
hweFilterThreshold | ignored |
callRateFilter | ignored |