LinearAlignmentsDisplay
Auto-generated config schema for the current JBrowse release — see the
config guide for concepts. Provided by the alignments
plugin.
View source.
Example usage
Minimal BAM track — no display override needed for defaults. See the alignments track guide for all adapter and display options:
{
type: 'AlignmentsTrack',
trackId: 'ngs_reads',
name: 'NGS reads',
assemblyNames: ['hg38'],
adapter: { type: 'BamAdapter', uri: 'https://example.com/sample.bam' },
}
CRAM colored by CpG methylation (modBAM MM/ML tags). The displayDefaults
object shorthand applies settings without spelling out the display type or
displayId — equivalent to
displays: [{ type: 'LinearAlignmentsDisplay', displayId: '...', colorBy: ... }].
See configuring displays:
{
type: 'AlignmentsTrack',
trackId: 'methylation',
name: 'Methylation',
assemblyNames: ['hg38'],
adapter: { type: 'CramAdapter', uri: 'https://example.com/sample.cram' },
displayDefaults: {
colorBy: { type: 'modifications', modifications: { fillUnmarked: true } },
},
}
Long reads — taller track, soft-clipping shown, split/chimeric reads connected by arcs:
{
type: 'AlignmentsTrack',
trackId: 'long_reads',
name: 'Long reads',
assemblyNames: ['hg38'],
adapter: { type: 'BamAdapter', uri: 'https://example.com/longreads.bam' },
displayDefaults: {
height: 400,
showSoftClipping: true,
linkedReads: 'normal',
readConnections: 'arc',
},
}
See the Config slots section below for all available configuration fields.
Related links
- Adapter: BamAdapter
- Adapter: CramAdapter
- Adapter: HtsgetBamAdapter
- Adapter: SamAdapter
- Extended by: LGVSyntenyDisplay
- State model: runtime API
- Base config: BaseLinearDisplay
- Guide: Alignments track
- Guide: Alignments track
- Guide: Custom track and display types
- Guide: Defaults for all tracks
- Guide: Display settings
- Guide: Methylation (bisulfite)
- Guide: Tracks
Config slots
These slots go on a display entry:
"displays": [{ "type": "LinearAlignmentsDisplay", ... }], 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 |
|---|---|
featureHeightmaybeNumber = 7 promotable | Height of each feature (read) in pixels. Unset (the default) follows the session-wide default for this display type, falling back to 7; an explicit number customizes the track (including customizing 7 back over a compact session default) |
readConnectionsLineWidthnumber = 1 | Line width for read-connection arcs/lines in pixels |
showSashimiLabelsmaybeBoolean = false promotable | Draw the supporting-read count on each sashimi arc |
hideNonCanonicalJunctionsmaybeBoolean = false promotable | Hide sashimi arcs whose splice-site motif is none of GT-AG, GC-AG or AT-AC. Read off the reference under each junction, so it needs a sequence adapter; a junction whose motif could not be read stays |
maxHeightnumber = 6000 | Maximum pixel height of the pileup layout; reads beyond this are not stacked (coverage still reflects true depth) advanced |
heightnumber = 250 | Starting height in pixels for the coverage band and pileup together; heightMode decides what a pileup deeper than this does |
colorBymaybeFrozen = { type: 'normal' } promotable | Color scheme for reads advanced |
filterByfrozen = defaultFilterFlags | Every read filter, in one object: the flag masks, a read name, tag filters, and the four read categories. default filter flags is exclude 1540 read unmapped (0x4) read fails platform/vendor quality checks (0x200) read is PCR or optical duplicate (0x400) A read category takes "only" or "exclude", and is absent when it isn't filtering — { "properPairs": "exclude", "split": "only" } for the split reads of discordant pairs. spliced, properPairs, singletons and split; see the FilterBy type.advanced |
groupByfrozen = null | In-track stacked grouping, e.g. { type: "strand" } to pre-group reads by strand (null = ungrouped)advanced |
collapseGroupRowsboolean = false | Only consulted while groupBy is in effect. Collapsing trades the per-group stack for one lane per group, with overlap depth carried by the tint shading instead of by row count — the compact reading for a track with many groups (an all-vs-all synteny track's mate genomes). A group expanded from its label chip opts back out and draws a true stack. |
autoscalestringEnum (local, localsd) = 'local' | Coverage autoscale type |
minScorenumber = Number.MIN_VALUE | Minimum coverage depth bound advanced |
maxScorenumber = Number.MAX_VALUE | Maximum coverage depth bound advanced |
scaleTypestringEnum (linear, log, symlog) = 'linear' | Coverage scale type. "log" floors the domain at a depth of 1, which draws a single-read position at the same height as no coverage at all; "symlog" is log-like higher up and linear through zero, so low depths stay separable |
symlogConstantnumber = 1 | Width of symlog's linear region around zero, in depth units. The default 1 makes symlog exactly log(depth+1), which is the transform read depth wants: the knee sits at one read, the smallest depth there is. 0 means "derive from the domain" (a thousandth of the visible max) — right for a wiggle track, whose units are its own, and wrong here, since it puts the knee a tenth of a read below zero and draws a single stray read a third of the way up a depth-100 band advanced |
numStdDevnumber = 3 | Number of standard deviations for localsd autoscale advanced |
mismatchAlphamaybeBoolean = false promotable | Fade mismatch bases by their per-base Phred quality. Unset (the default) follows the session-wide default for this display type, falling back to off; an explicit true/false customizes the track (either direction, including customizing off over an on session default) |
showLowFreqMismatchesboolean = false | Draw sub-pixel mismatches, insertions and clip bars in the pileup at full opacity instead of fading the ones below the depth-dependent frequency threshold. Read through the filterMismatchesByFrequency getter, which is this in the polarity the renderers and hit-test take. Does not affect the coverage band (see runCoveragePipeline)advanced |
showLegendmaybeBoolean = false promotable | Show the color-scheme legend overlay. Unset (the default) follows the session-wide default for this display type, falling back to off; an explicit true/false customizes the track (either direction, including customizing off over an on session default) |
sortedByfrozen = null | Sort reads at a genomic position, e.g. by base, strand, or a tag (null = unsorted) advanced |
largeFeaturesFirstboolean = false | Lay out the widest features in the lowest pileup rows instead of by genomic start, so large alignments cluster at the top rather than interleaving with small ones. Off by default; LGVSyntenyDisplay turns it on. Ignored while an explicit sortedBy position sort is active. |
splicedReadsFirstboolean = false | The other layout-order flag, for RNA-seq: reads whose CIGAR carries a skip take the lowest rows. Ignored while a sortedBy position sort is active; wins over largeFeaturesFirst if both are set. |
showOutlinefrozen = null | null = auto: outline is drawn only in chain/linked-read modes. Set true/false to force it on or off regardless of mode. advanced |
linkedReadsmaybeStringEnum (off, normal) = 'off' promotable | View as pairs / link supplementary alignments: put a read, its mate and its split segments on one row |
showBezierConnectionsboolean = false | Draw paired-read connection curves over the pileup |
showCoverageboolean = true | Draw the coverage histogram band |
showPileupboolean = true | Draw the stacked-read pileup band |
coverageHeightnumber = 45 | Height of the coverage band in pixels |
coverageSnpMinFrequencynumber = 0 | Hide a coverage-band allele segment whose share of that position's depth is below this fraction, so the band stops painting a sliver for every sequencing error at high depth. 0 (the default) colors every mismatch. Distinct from showLowFreqMismatches, which turns OFF the pileup's fade of sub-pixel marks against a depth-dependent threshold; this is a flat allele-fraction floor on the band, and the grey depth bar still shows through where a segment is hiddenadvanced |
showMismatchesboolean = true | Draw how reads differ from the reference: per-base mismatches, insertion markers and deletion bars. Not the intron centerlines — a spliced read is drawn as separate exon blocks, so the line joining them says they are one read rather than several, and it draws either way (PILEUP_LAYERS) |
showInterbaseIndicatorsboolean = true | Draw interbase insertion/clip count bars and indicator triangles |
flipStrandLongReadChainsboolean = true | Color split segments relative to the predominant orientation of the reads on screen, rather than by their own mapping strand |
colorSupplementaryChainsboolean = false | Paint every chain carrying a supplementary segment a flat supplementary color, paired or not |
drawInterboolean = true | Draw inter-chromosomal read-connection arcs |
drawProperPairArcsboolean = true | Draw arcs for ordinary concordant pairs. Uncheck to leave only the arcs that carry a category (abnormal insert size or orientation, split junctions), which on deep coverage is the difference between a readable band and a solid mass |
minInterchromSupportnumber = 2 | Hide inter-chromosomal connections supported by fewer than this many reads clustered at the same breakpoint |
drawLongRangeboolean = true | Draw long-range read-connection arcs |
arcColorByTypestringEnum (insertSizeAndOrientation, insertSize, orientation) = 'insertSizeAndOrientation' | How to color read-connection arcs |
readConnectionsmaybeStringEnum (off, arc, cloud) = 'off' promotable | Read-connection rendering mode (mate pairs + split reads) |
readConnectionsDownmaybeBoolean = true promotable | Draw read connections below the coverage band. Unset (the default) follows the session-wide default for this display type, falling back to on; an explicit true/false customizes the track (either direction, including drawing above the coverage band over an on session default) |
showSashimiArcsmaybeBoolean = true promotable | Draw sashimi (splice-junction) arcs |
sashimiArcsModemaybeStringEnum (up, down, auto) = 'up' promotable | Sashimi junction-arc placement |
minSashimiScorenumber = 2 | Hide sashimi arcs with fewer than this many supporting reads |
sashimiArcsHeightnumber = 40 | Height of the sashimi-arc band in pixels |
readConnectionsHeightnumber = 35 | Height of the read-connection band in pixels |
showSoftClippingmaybeBoolean = false promotable | Draw soft-clipped read portions. Unset (the default) follows the session-wide default for this display type, falling back to off; an explicit true/false customizes the track (either direction, including customizing off over an on session default) |
heightModemaybeStringEnum (fixed, grow, fit) = 'fixed' promotable | Track-sizing strategy — how the track responds when there are more reads than fit (shared vocabulary with the canvas feature display, exposed in the "Track sizing" menu). Unset (the default) follows the session-wide default for this display type, falling back to fixed; fixed keeps featureHeight and scrolls; grow expands the track to show every read at the configured height; fit squeezes reads so every uncollapsed group fills the display without scrolling. Orthogonal to the per-read size set by featureHeight |
growMaxHeightnumber = 800 | Ceiling in pixels for the "autogrow track height" 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 maxHeight) advanced |
| Inherited from BaseLinearDisplay | 5 slots |
maxFeatureScreenDensitynumber = 1 | maximum features per pixel before showing a "too many features" message advanced |
mouseoverstring = | text to display when the cursor hovers over a feature callback args: feature |
jexlFiltersstringArray = [] | config jexlFilters are deferred evaluated so they are prepended with jexl at runtime rather than being stored with jexl in the config |
fetchSizeLimitnumber = 1_000_000 | maximum data to attempt to download for a given track, used if adapter doesn't specify one advanced |
forceLoadboolean = false | 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 no one can interact with — an embedded / notebook view, or a screenshot — where the region is known and you want it drawn without a click. advanced |