LinearAlignmentsDisplay
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Provided by the alignments plugin. View source.
State model factory for LinearAlignmentsDisplay
Example usage
The display goes in a track's displays array; here are three complete
AlignmentsTrack configs to paste into tracks.
Basic BAM, opened taller:
{
type: 'AlignmentsTrack',
trackId: 'ngs_reads',
name: 'NGS reads',
assemblyNames: ['hg38'],
adapter: { type: 'BamAdapter', uri: 'https://example.com/sample.bam' },
displays: [
{
type: 'LinearAlignmentsDisplay',
displayId: 'ngs_reads-LinearAlignmentsDisplay',
height: 250,
},
],
}CRAM colored by CpG methylation (modBAM MM/ML tags):
{
type: 'AlignmentsTrack',
trackId: 'methylation',
name: 'Methylation',
assemblyNames: ['hg38'],
adapter: { type: 'CramAdapter', uri: 'https://example.com/sample.cram' },
displays: [
{
type: 'LinearAlignmentsDisplay',
displayId: 'methylation-LinearAlignmentsDisplay',
pileup: {
bases: {
show: true,
encoding: { color: 'modifications' },
unmodified: { show: true },
},
},
},
],
}Long reads with split/mate reads connected by arcs:
{
type: 'AlignmentsTrack',
trackId: 'long_reads',
name: 'Long reads',
assemblyNames: ['hg38'],
adapter: { type: 'BamAdapter', uri: 'https://example.com/longreads.bam' },
displays: [
{
type: 'LinearAlignmentsDisplay',
displayId: 'long_reads-LinearAlignmentsDisplay',
height: 400,
unit: 'chain',
readConnections: { show: true },
},
],
}The configuration slots for this model are documented on its config schema page.
Each section ends with the members a composed model contributes, linked to the page that documents them.
Properties
| Member | Description |
|---|---|
type"LinearAlignmentsDisplay" |
Always "LinearAlignmentsDisplay", the name a snapshot selects this model by. |
configurationBaseLinearAlignmentsDisplayConfig |
The config node this model reads its settings from, through getConf. Its slots are documented on its config schema page. |
Volatiles
| Member | Description |
|---|---|
Feature | undefined |
|
collapsedGroupsObservableSet<string> |
Group keys whose pileup is collapsed to its coverage band, dropped when groupKeySpace moves (dropGroupState). |
groupSizesObservableMap<string, GroupSize> |
Per-group pileup sizes a user set (GroupSize), keyed by group key and dropped with collapsedGroups: a drag's px height, which caps the lane's rows and pads its band, or 'all', the chip's "show all", which lifts the cap and pads nothing. |
fittedHeightPxnumber |
Fitted read pitch in px, written by the afterAttach autorun while fitHeightToDisplay is on; 0 until computed. A volatile rather than a getter because it breaks the cycle between featureHeight and the layout. |
hoverStateAlignmentsHover | undefined |
Everything the cursor is over, as one value, so a clear is one write that cannot miss a field. setHoverState writes it whole. |
24 inherited volatiles from 8 models
From ContextMenuMixin:
From LegendMixin: dismissedLegendSections
From ScoreScaleMixin: unclippedFenceQuantile
From MultiRegionDisplayMixin: loadedRegions
From FetchMixin: activeSignal, fetchGeneration, reloadCounter, statusWindow, error, statusMessage, statusProgress, fetchCanceled, fetchRotation
From RenderLifecycleMixin: canvasDrawn, paintCount, currentRenderingBackend, renderTick, renderError, offScreen
From RegionTooLargeMixin: forceLoadTrack, byteEstimate, gateMeasuredViewportKey
From TrackHeightMixin: scrollTop, hostHeight
Getters
| Member | Description |
|---|---|
showCoverageboolean |
|
coverageHeightnumber |
|
showCoverageAllelesboolean |
Whether the coverage band colors its allele segments, coverage.alleles.show |
coverageMinAlleleFractionnumber |
|
interbaseIndicatorRuleInterbaseIndicatorRule |
coverage.interbase.filter as the worker's triangle rule. |
showInterbaseboolean |
|
tooltipFieldstring |
tooltip.field, read raw: '' while unset |
unit"chain" | "read" |
|
showPileupboolean |
|
configuredHeightnumber |
The height slot resolved (resolvedTrackHeight). Overrides TrackHeightMixin.configuredHeight, so the drag, fit and grow read it. |
markHeightnumber |
pileup.mark.height as configured, independent of the fit squeeze. Consumers that EDIT the size (the "Custom..." height dialog) must start from it, not the fractional fit pitch featureHeight resolves to in fit mode, or opening the dialog while compressed would bake the squeeze. |
pileupMaxLayoutHeightnumber |
|
showMismatchesboolean |
|
showSoftClipsboolean |
|
showConnectorsboolean |
|
mismatchOpacityField"baseQuality" | undefined |
The field pileup.mismatches.encoding.opacity fades by, its implied baseQuality included, unset for none: the "Show low-quality mismatches faded" checkbox. |
mismatchQualityOpacityQualityOpacity |
pileup.mismatches.encoding.opacity as mismatch.slang's qualityFade reads it. |
fadeLowFrequencyboolean |
|
hasJunctionsboolean |
Whether the display declares the junctions band, which a synteny block, having no introns, has no use for. |
showJunctionsboolean |
|
junctionsHeightnumber |
|
junctionsPlacement"above" | "auto" | "below" | "overlay" |
|
effectiveJunctionsPlacement"above" | "auto" | "below" | "overlay" |
Where the arcs draw: junctions.placement while the coverage band shows, and below, in a strip of their own, while it is hidden. above already draws in a strip of its own, so it keeps it, arcs rising, either way. |
showJunctionLabelsboolean |
|
writtenFilterFieldPredicate[] |
The filter list as written, before the defaults merge in: what a session spec reopens the display with. |
filterPredicatesFieldPredicate[] |
The filter list the display applies: what is written, merged over the defaults by field. |
configProblems{ level: "error"; slot: string; message: string; }[] |
The filter entries the display cannot apply, at the level jbrowse-img fails an export on: an entry the reads ignore draws them unfiltered. |
junctionFilterJunctionFilter |
The splice junctions drawn, off the junction fields. |
showReadConnectionsboolean |
|
readConnectionsMark"link" | "rule" |
|
drawnReadConnectionsReadConnectionsMode |
The mark the read-connection band draws, or 'off' while it is hidden. |
readConnectionsHeightnumber |
|
readConnectionsPlacement"above" | "below" | "overlay" |
|
readConnectionsStrokeScaleLinkSizeScale |
The link mark's size scale readConnections.encoding.strokeWidth draws. |
readConnectionsStrokeWidthnumber |
The width a one-read connection strokes at, which the Line width menu shows. |
showOrdinaryPairsboolean |
Whether the band draws its ordinary pairs: the arcs' concordant ones (isConcordantPairRead, whose failure on a paired primary read is the svSignal filter field's discordant clause) and the cloud's modal-insert ones. Unset, arcs keep them and the cloud drops them. |
connectionFilterConnectionFilter |
The connections drawn, off the connection and breakpoint fields. breakpoint.reads counts within one fragment length on both sides of a breakpoint (clusteredInterchromSupport), since a mate-pair breakpoint is not localized to a base. |
colorSettingAlignmentsColorSetting |
|
colorEncodingstring | FieldColorEncoding | undefined |
colorSetting as it paints, through the one resolver every display's color object goes through. |
colorLabelsreadonly string[] |
encoding.color.scale.names as written, read apart from colorSetting, which every color tier keys on, so renaming a key entry re-bakes no read. |
colorTitlestring | undefined |
encoding.color.legend.title as written: unset keeps the key's own heading, '' draws none. |
colorKeyTitlestring | undefined |
The key's heading: encoding.color.legend.title as written, else its field preset's while the color paints through the preset, so encoding.color: "mapq" keys as "Mapping quality". Unset keeps the key's own heading. |
colorKeyDescendingboolean | undefined |
encoding.color.legend.descending as written, else its field preset's while the color paints through the preset, so encoding.color: "mapq" keys 30+ first. Read apart from colorSetting, so turning the key round re-bakes no read. |
pinnedInsertSizeBand{ lower: number; upper: number; } | undefined |
The band normalInsertSize pins, undefined while the sampled band decides. Compared by value, so a write that leaves its ends alone relayouts nothing. |
basesFilterBasesFilter |
pileup.bases.filter over its defaults, which the modifications and bisulfite menus read while another layer draws. |
colorFieldstring | undefined |
The field the read fill paints by, undefined for the plain fill. |
baseLayerBaseLayer | undefined |
The per-base layer pileup.bases draws; undefined while none is. |
bodyColorKindColorFieldKind |
What the read body paints as: colorField's kind, or the modification layer's own pale strand tint while the fill is plain. |
readPredicatesFieldPredicate[] |
The read fields of filterPredicates, which the worker applies. |
declaredFiltersDeclaredFilters |
filter and pileup.bases.filter as the track's config declares them, merged over the defaults: what "More filters..."'s Reset returns to, as "Clear all filters" does. |
layoutOrder"length" | "position" | "spliced" | "split" | "svSignal" |
The whole-window row order: sort's type, or position under a column sort, which lays the reads off its column out by start (a tier-2 relayout). |
facetFacet | undefined |
The facet object as written, undefined while ungrouped. The worker partitions one fetch into a section per value of its field. |
rpcDataMapReadonlyMap<number, GroupedAlignmentsResult> |
Region index → grouped worker result. Ungrouped fetches store one group (key ''). |
viewLinearGenomeView |
|
drawsConnectorsboolean |
Whether the pileup connectors draw: always in chain layout, where a connector is how a chain's reads join, and otherwise as pileup.connectors.show says. |
effectiveFacetFacet | undefined |
The facet the fetch partitions by. Chain mode turns a per-read dimension into ungrouped without changing the slot, so the slot alone does not determine which sections come back. |
groupKeySpacestring |
Identity of the key space the fetched group keys belong to, and so of every collection this model keys by group key — see groupKeySpaceOf. |
prefersOffsetboolean |
Whether the grouping will be honored, decidable from settings alone since chain mode drops a per-read dimension (facetForUnit). Positions the track label, which is placed before data arrives and must not jump afterwards. |
canCollapseSectionsboolean |
Whether collapsing can take effect, so whether the "Show" menu offers the toggle. Chain mode never collapses (laneLayoutOf). The menu omits the row rather than disabling it: a click would write a slot no getter reads. |
collapseSectionsboolean |
Whether each group draws as one row, overlap depth shown by the tint layer — the collapse in effect. Reads canCollapseSections, not the slot alone: a config default can be ticked where collapsing is inert. |
bandPlot{ height: number; floor: number; } |
The plot the three bands are taken from, which the resize handles drag against and statedBandHeights binds within. Leaves the pileup a row whether or not it shows, so hiding it rebinds no stated height. Reads fitTargetHeight, not height, which derives from the layout these heights feed in grow mode. |
statsInViewVisibleStats<CoverageRegion, ScoreStats> | undefined |
The depth stats of what the display's CoverageSource shows in the settled blocks. |
autoscaleRange[number, number] | undefined |
The depth the shown coverage spans, fenced at fenceQuantile and widened to the coverage.encoding.y rules, so stacked sections share a scale. |
valuesInView[number, number] | undefined |
The least and greatest depth in view, unfenced. |
defaultScoreDomain[number | undefined, number | undefined] |
Depth has a floor of 0 while the axis reaches it, so an unpinned bottom stays there whatever a rule below it asks for; with coverage.encoding.y.scale.zero off it spans the depths in view. |
coverageScaleTypeScaleTypeCode |
|
coverageDomain[number, number] | undefined |
The autoscaled depth domain. Undefined until some region holds one. |
coverageDepthDomain[number, number] | undefined |
The domain the coverage band draws against: coverageDomain with a log scale's floor pulled up to one read (see coverageDepthDomain). Every consumer reads this one — the y-axis ticks and both renderers' normalizers. |
| coverageScaleState |
The band's scale and layer switches as CoverageBandState spells them, less its rect and colors. The raw symlog slot means "derive from the domain"; it resolves here, where the domain is in hand, so every backend normalizes with one number. |
| keyWindows |
The bp each displayed region shows once a pan settles, which the keys list what is present in. Compared by value, so a pan that settles where it was rebuilds no key. |
| TooltipComponent |
|
detectedModificationsReadonlyMap<string, string> |
Modification type code -> painted color, for every type the loaded reads declare. Off rpcDataMap, not the laid-out map, so a hidden group's types stay offered; the legend asks presentModifications instead. |
modificationsReadyboolean |
Whether a fetch has completed, so an empty detectedModifications means these reads have none. The modifications menu shows "Loading modifications..." until it turns true. |
detectedModificationTypesstring[] |
|
isFittingboolean |
Fit-to-display mode is on and a pitch has been computed (fittedHeightPx > 0). Both size getters read this gate. |
featureHeightnumber |
The read body height: the fitted pitch minus featureSpacing in fit mode, else markHeight, which is what editors that write the size read. |
featureSpacingnumber |
Derived, never stored: 2px from a Normal read up, 1px past Compact, else flush. In fit mode it comes from the pitch, ramping across the pitches no fixed height produces so the body never shrinks as the track grows. |
rowHeightnumber |
The per-row pitch: read body plus derived gap. Every "row N sits at N*pitch" computation reads it. |
sortColumnSortColumn | undefined |
The column sort sort names, or undefined under a whole-window order. Normalizes the refName, since a spec can write an alias (chr1 for 1) that sortLayout's gate would never match. A column type missing refName or pos reads as no sort. |
groupOrderGroupId[] |
The drawn sections in stacking order, hidden ones left out. |
knownSectionsGroupId[] |
Every section the Sections dialog lists, hidden or not (knownSections). Empty while ungrouped. |
sectionsHeadingstring |
The Sections dialog's column header: the facet's field. |
rawDataByGroupMap<string, Map<number, WorkerPileupData>> |
Raw (un-laid-out) data regrouped as group key → (region idx → data), insertion-ordered so the first key is the primary group; ungrouped is the single key ''. Hidden lanes are already gone, like groupOrder, so a walk of every entry is a walk of every DRAWN lane. See buildRawDataByGroup. |
chainAttachmentChainedByGroup | undefined |
rawDataByGroup with chain identity joined across every region and lane (attachChainFields), in chain mode only. The worker has no chain information, so toggling the mode is this getter changing, not a fetch. |
chainedByGroupReadonlyMap<string, ReadonlyMap<number, ChainedPileupData>> |
The layout's input: chainAttachment in chain mode, else the fetched data. rawDataByGroup stays chain-free, so the arcs, junctions, coverage and a split view overlaying this display do not recompute on the toggle. |
groupLayoutContextGroupLayoutContext |
The layout mechanics (grouping, sort, soft-clip) shared by the viewport fit pass and ad-hoc layouts such as fittedFeatureHeight. Excludes the fit policy (row caps) and the color inputs, which invalidate a later tier. Lanes lay out in full under a hidden pileup, not coverage-only as collapsed lanes do: skipping the bake for reads nothing draws waits on a measurement that it costs seconds, and costs a relayout on re-show (declined 2026-11-08). |
| loadedRegionInfos |
The fetched regions as {refName,start,end,displayedRegionIndex}, the shape every per-read region scan takes (collectArcs). Regions whose fetch has not landed are dropped. |
| displayedRegionInfos |
The VIEW's displayed regions in the same shape: not "where did reads come from" but "where can a coordinate be drawn". The arc partition (CrossRegionArc) keys on this list, since view.bpToPx projects through displayedRegions (see ArcRegions). displayedRegions changes on navigation, not on pan, so arcsByGroup keeps its fetch invalidation tier. |
canonicalRefName((refName: AdapterRefName) => string) | undefined |
Normalizer for a refName in the BAM's spelling (an SA tag's or RNEXT's chr1) rather than the assembly-canonical one a fetched read has (1). Undefined when no assembly is resolved, where consumers fall back to identity. Without it a same-chromosome split junction reads as inter-chromosomal. |
arcsResultArcsByGroupResult |
THE arc resolution: both halves from one pass, read through arcsByGroup (arcs inside one region) or crossRegionArcsByGroup (arcs joining two). resolveArcsByGroup owns the whole fan-out because the pooled arc scale (poolArcScale) describes the fetch, not a lane. Hidden lanes must stay out: the cross-group scans (arcsYDomainBp, arcLegendCategories) walk every entry. |
arcCollectionArcCollection |
The collection half of arcsResult (collectArcs), which the connectors read for the inter-chromosomal floor with the band off, so both marks drop the same connections. |
junctionsStripKeysByGroupMap<string, ReadonlySet<string>> |
Per group, which junctions draw in the junctions strip (by junctionKey): the one junctions side decision, read by junctionsStripLanes to reserve the strip and themed's junctions feeds to place each arc. refNames come from loadedRegions, keeping this a tier-1 (fetch) derivation. A region not yet loaded gets a unique key, so regions not proven to share a chromosome never pool onto one bp line. |
junctionsStripLanesReadonlySet<string> |
Group keys whose junctions draw in the junctions strip, i.e. the lanes that strip is reserved for. |
| statedLaneBands |
A lane's bands as stated: the height slots, the settings and whether any lane has arcs or a junction bound for its strip. |
| statedBandHeights |
The three stated band heights bound against bandPlot top-down (boundStackedBands), since a config or a session snapshot states a height no drag clamped. The same whether or not the pileup shows. |
| laneBandsInput |
The pooled band stack as stated: the bound heights, the settings, and whether any lane has arcs or a junction bound for its strip. The row budget and the band drags read it, never the fitted stack, so hiding the pileup moves no row pitch and no stated height. |
laneSlotnumber |
The px each lane takes while the pileup is hidden: the track's height (pileupHiddenHeight) split evenly over the drawn lanes, collapsed ones included, in whole px, so the stack never outgrows the track. |
The stated stack the bands fill each lane's slot from while the pileup is hidden, bound against the track's height (pileupHiddenBands), as MAF binds its bands with its rows hidden: with coverage, the strips keep their stated heights, leaving the coverage its floor, and the coverage takes the rest; without it, top-down with no floor kept for rows. |
|
| drawnLaneBandsInput |
The band settings each lane reserves its strips from: laneBandsInput while the pileup shows, pileupHiddenBandsInput while it is hidden. |
| bandHeights |
The three band heights as every consumer draws them: the stated heights while the pileup shows, and while it is hidden the pooled stack fitted to fill laneSlot (fittedLaneBandHeights): the strips at their stated heights and the coverage taking the rest, or with coverage off, the strips in proportion to their stated heights. |
sortReadsBlockedReasonstring | undefined |
Why an explicit read ordering cannot take effect, or undefined: one value holds both the gate and the message naming the switch that brings it back. Chain layout takes no sort; its rows are chains. |
collapseSortBlockedReasonstring | undefined |
Why the collapse leaves no sort to take effect, or undefined: every drawn section lays its reads on one row, none opted out by an expand or a drag. A hidden lane or one shown as coverage alone stacks nothing, whatever cap it holds. |
canSortReadsboolean |
Whether an explicit read ordering can take effect. The track menu's "Sort by" and the context menu's position-anchored sorts both read it. |
canSizeGroupHeightsboolean |
Whether a single group's pileup height can be set for that group alone, offered by the label chip's expand/fit button and the per-group drag handles. Fit mode refuses: an override there opts a lane out of the fit and overflows the display. |
groupSizesInEffectReadonlyMap<string, GroupSize> |
The lane sizes in effect, not the set banked. Fit solves one pitch from every lane's full row count, so fit mode ignores the sizes without dropping them; returning to fixed restores them. |
laneBandOverheadsnumber[] |
Each lane's band stack in px, in stacking order, as computeStackedSections reserves it. Fetch-tier inputs only, so the layout reads it without a cycle. |
totalBandOverheadnumber |
The height every lane's band stack takes from the row budget. |
groupRowCapsReadonlyMap<string, RowCap> |
The height overrides and "show all" lanes as row caps, keyed by lane — the layout's input. Keeps its identity while the caps compare equal, so a drag frame that moves no cap relays no read and re-bakes no color. |
fitDefaultCapRowCap |
The cap a lane on the shared fit budget lays out to: its slice of the viewport when grouped outside fit, the display-wide ceiling otherwise, with the policy that set it (a clipped lane reports it as clippedBy). Keeps its identity like groupRowCaps: its inputs move a px at a time, it moves a row at a time. Grow mode fits to the grow ceiling, fixed/fit to the drag-resizable slot; both read config slots, never the height getter, so grow's height → layout chain cannot cycle. |
resolvedFitDefaultCapRowCap |
fitDefaultCap recomputed, without the identity it keeps. |
fitLaneRowsnumber[] |
How many rows each lane needs, in stacking order, laid out uncapped; 0 for a coverage-only lane. Reads the overlaps and the ceiling only, so a fit drag leaves it alone. |
fitRowsnumber |
fitLaneRows summed. |
fitCeilingRowsnumber |
The pileup.maxLayoutHeight ceiling in rows. While fitting it is clamped to the rows the pileup needs, so the quotient holds steady across drag frames and the layout does not re-place every row. |
paintedRefNamePosition((refName: string) => number | undefined) | undefined |
Where a mate's reference sits in this assembly's own chromosome order, for chromosome painting — the same Assembly.getRefNamePosition the comparative displays paint by. From the ASSEMBLY, not the reads on screen, so a color never changes with what else is in view. Undefined under every other field and until the assembly initializes. |
liveNoticesstring[] |
A facet field no fetched read answers, and the values whose reads split between their own section and the overflow one. |
readIdsByChainNameReadonlyMap<string, string[]> |
Chain name → the ids of the READS in it; empty outside chain mode. The key is a chain's own identity and the values are read ids, which consumers resolve through readIdIndexMap (hence hoverChainReadIds, selectedChainReadIds). |
arcsByGroupMap<string, Map<number, ArcsUploadData>> |
Each group's arcs and ticks by loaded region, every arc filed under the one region holding a foot. |
crossRegionArcsByGroupMap<string, CrossRegionArc[]> |
Arcs whose two feet are in different displayed regions, per group. Empty in a single-region view. |
laidOutByGroupUncoloredLaidOutByGroup |
Per-group laid-out data, each lane under the cap the viewport or its size sets: group key → (region index → laid-out data). Each group lays out independently under a per-group cap, so a dense group cannot starve the rest. Rows only; the per-read color arrays bake one computed later, in laidOutByGroup. |
framesChainStrandboolean |
Whether the unpaired chain-strand framing is on: the one answer the consensus pass, the bake (readColorOpts) and the key read. A boolean in a separate computed, so a field switch that leaves the answer alone does not re-run the frame solve. |
laidOutByGroupFramedLaidOutByGroup |
The laid-out data with every chain's strand frame settled — see applyChainStrandFrames. |
connectorFilter({ e1, e2, c }: LinkedPair) => boolean |
Which pairs the connectors draw under connectionFilter. The inter-chromosomal floor comes from the arc band's collection stage, which runs only once a connector crosses chromosomes. |
connectorsByGroupMap<string, GroupConnectors> |
Every read connector per group, from one walk of its reads: the straight-line pass's records and the pairs the connector mark draws. Reads the layout tier, so a band resize, height drag or recolor reuses them. |
coverageTicksYScaleTicks | undefined |
The coverage band's own ladder (computeCoverageTicks) over the height it is drawn at, which valueScales hands the chrome in place of the mixin's. Takes the raw coverage.encoding.y.scale.constant, resolved from the same domain as the band's scale, so the labels sit on the bars. |
rowlessLaneKeysReadonlySet<string> |
The drawn lanes that lay out no read rows: every one with "Show pileup" off, else those collapsed to their coverage. |
readColorOpts{ unit: "chain" | "read"; framesChainStrand: boolean; } |
The inputs to read classification beside the field, with the framing as framesChainStrand answered it, so the bake frames exactly where the consensus pass ran and the key words it. |
bakedColorExtentNumericExtent | undefined |
The span of a linear color field over the loaded reads, which a ramp's open ends stretch across: their extremes, or below a domainQuantile of 1 that quantile of each sign. Undefined while domainMin and domainMax both pin the ramp or another scale paints, so a region arriving rebakes nothing then. |
linearFieldExtentNumericExtent | undefined |
The whole span of a linear color field, a tag or MAPQ, over the loaded reads (linearFieldExtent). |
baseQualitySpanQualitySpan |
The span of the base qualities drawn, and whether a base has none. O(bases), so gated on showLegend like the category scan. |
bakedColorScaleBakedColorScale | undefined |
The scale a tag, attribute or mate reference bakes through, read by the per-read bake and the key alike, dealing values into the session's slots for the field (ADR-205). Undefined for the fields the category table paints. |
| readColorContext |
The per-read color bake's inputs, kept out of groupLayoutContext so a recolor never relays. |
laidOutByGroupColoredColoredByGroup |
Per-group laid-out data with the per-read color arrays baked on. No input in readColorContext moves a read's row, so a recolor keeps the layout memoized and readYs keeps its identity: the GPU upload memo checks readYs to rewrite only the read pass. Tag colors bake here, not in the worker, so tag coloring stays a main-thread tier-2 setting. |
colorLegendCategoriesSet<ReadColorCategory> |
Read-color buckets present across the rendered reads, so the legend lists only relevant swatches; a lane laying out no rows (rowlessLaneKeys) renders none. Empty while the legend is hidden, skipping the O(reads) scan. |
presentTagValuesReadonlySet<string> | undefined |
The per-read values the CPU-baked fields painted in the rendered reads (tag values, or mate refNames under chromosome painting). undefined for other fields, and the legend then does not filter; the empty set means none are on screen. Gated on showLegend: O(reads). |
presentModificationsReadonlySet<string> | undefined |
The modification types drawn in the rendered reads. Read from modificationTypes, which the worker builds from the drawn marks; detectedModifications includes hidden lanes. The legend's bisulfite branch runs before this filter, since the two differ there. undefined outside the modification fields. |
declaredReadLabelsDeclaredReadLabels |
encoding.color.scale.names against the read buckets and values it names, which every key row, hover and connection curve names a bucket by. |
keyReadLabelsDeclaredReadLabels |
The keys' row names: declaredReadLabels over the insert-size rows named with the band they part at, where every region in view classifies by one band. |
overlapLegendRowsreadonly OverlapLegendRow[] |
The overlap rows the legend names: a chain's split-segment and mate overlaps, or the collapsed rows' tint. A row needs the pass to be DRAWING (shouldDrawOverlaps, shared with both renderers) and some region to hold an interval of its kind, so no row explains an off-screen mark. O(regions). |
keySectionOrder((a: string, b: string) => number) | undefined |
The sections' order, where the facet field is the one the reads are colored by: a key over one field lists the values as the sections stack. Not over mapq, whose sections are bins and whose key is its bins or its raw values. |
colorRampsRampScale[] |
The color bars beside the read rows: the per-base layer's, then the read fill's while it paints through a ramp (colorRampScales), none while no read row is drawn. |
drawsReadRowsboolean |
Some lane lays out read rows, so the read colors key a drawn mark: false only once every lane laid out is one with no rows. |
paintsPlainFillboolean |
Every read is drawn in the one plain color, with no field or per-base layer painting over it. |
arcLegendCategoriesSet<ArcCategory> |
The arc color slots plotted, mapped to legend buckets, for curved arcs and the read cloud alike. Empty unless an overlay is on with the legend shown. |
arcLegendTitle"Arc colors" | "Connector colors" | "Read cloud colors" |
Heading for the connection colors, named after what the reader is looking at: flat read-cloud lines are not arcs, and with the band off the colors are the pileup connectors'. |
connectorKey{ colorTypes: Set<number>; throughHidden: boolean; } |
What the connectors drawn in view key, by the overlay's curves and by the straight-line pass beside them, so the key lists every connector color on screen: the class color types, and whether a junction through a region not shown is drawn in its own color. Empty while the legend is hidden so the scan is skipped. |
connectionColorTypesSet<number> |
The color types (arc palette slots) the connectors drawn in view paint in their class color. |
laidOutByGroupColoredByGroup |
laidOutByGroupColored with the straight-line pass's records spread on, so a curved-connector toggle re-spreads the lines and keeps both the layout and the colors. |
readIdIndexReadIdIndex |
Every read's slot by id, and every slot of a read fetched in more than one displayed region (buildReadIdIndex). |
readIdIndexMapReadIdIndexMap |
|
layoutReadyboolean |
Whether a pileup is laid out for an overlay to read — see readArraysByGroup. |
lanesAlignmentLane[] |
The stacked lanes in stacking order, one AlignmentLane per drawn group; ungrouped is the one-lane case. The one place a lane's key resolves to its data. |
showsGroupLabelsboolean |
Whether the stacked section labels and dividers are drawn. Not isGrouped: grouping that yields one section still reserves the label offset (prefersOffset) and wants its section named and collapsible. Reads the fetched sections, not facet — see hasNamedGroups. |
drawnLanesAlignmentLane[] |
The lanes laid out, or the one SYNTHETIC no-data lane: sections must produce a section before any fetch lands, and a grouped fetch over an empty region partitions to zero lanes. Every collection on it is empty. |
minSectionHeight0 | 16 |
The least height a section takes, so its label chip has room. |
sectionsSectionsLayout<AlignmentLane> |
All vertical band geometry, one entry per lane; ungrouped is the one-lane call. Runs over drawnLanes so a display with no data still has a section. The sticky-coverage-vs-scroll distinction lives downstream in buildSectionRenders. With the pileup hidden every lane advances exactly its laneSlot, its bands filling it, so the stack fits the track and never scrolls. |
renderSections(AlignmentLane & Section)[] |
Every lane with its band geometry in stacking order: the list the overlays, the hit-test pipeline and both renderers walk. |
| connectorPairSections |
The pairs the connector mark draws, placed on each drawn section's pileup band, their dips sized to its rows (rowsHeight) and ending by dipFloor, the bottom of the display measured from that band's top with the display scrolled to its end. |
legendMaxWidthnumber |
LegendMixin's hook: the split-read rows have to name which kind of read they classify, and that is the tree's longest label. |
featureNounstring |
What one row of this pileup is called, for UI text built from the model alone (the group-label chips). Overridable: LGVSyntenyDisplay draws PAF blocks, so its chips must not offer to "show all reads". |
ContextMenuHit | undefined |
Everything the right-click's hit test resolved — the block, the clicked column and whichever mark answered. See ContextMenuHit. |
string | undefined |
The read id under a right-click, known synchronously unlike contextMenuFeature, which lands after an RPC. A menu item that can act from the id alone reads this. |
isGroupedboolean |
True when reads are stacked into >1 group section. Drives the scroll model: ungrouped keeps coverage sticky; grouped scrolls the whole stack as one. |
scrollModelScrollModel |
The scroll-projection inputs (sectionScreen.ts) every overlay needs to map a content-space Y into screen space. |
stickyBandHeightnumber |
The band stack held out of the scroll: ungrouped keeps its one lane's bands sticky above the pileup, grouped scrolls the whole stack. Subtracted from both the viewport and the content, and the screen-y a view overlaying this display's reads stops at. |
coverageBandHeightnumber |
The px the coverage band reserves, the same in every section: 0 while it is off or the plot leaves it no room. What paints it, its axis and its rules all read this. |
coverageDisplayHeightnumber |
Read stickyBandHeight: the pooled band stack this named had no meaning once lanes stack. |
scrollViewportHeightnumber |
Ungrouped excludes the sticky coverage band; grouped scrolls the entire display. |
scrollContentHeightnumber |
The laid-out sections less the sticky band, so a hidden pileup or a collapsed group opens no phantom scroll below the coverage band. |
growTargetHeightnumber |
HeightModeMixin's grow hook: the full laid-out content height (coverage + pileup + arcs), before the growMaxHeight cap. Independent of self.height: in grow mode laidOutByGroup fits to growMaxHeight and featureHeight is the configured value, so the mixin's height can return it without a cycle. With no layout (reads not loaded, or the too-large banner shown) the track keeps its current height. With the pileup hidden the track fits its slot, as in fixed and fit: the lanes fill it, and never size it. |
visibleLabelsVisibleLabel[] |
|
readCategoryLabel(c: ReadColorCategory) => string | undefined |
Names one read color bucket for the hover, with the active field's rewording applied — the same readCategoryLabelOverrides the legend uses, so the tooltip and its swatch agree. |
arcCategoryLabel(c: ArcCategory) => string |
Names one arc color bucket for the hover in the arc key's wording, so the tooltip and the swatch it sends the reader to agree. |
readArraysByGroupReadonlyMap<string, ReadonlyMap<number, WorkerPileupData>> |
The reads a view overlaying this display may connect — the BreakpointSplitView's curves — by lane and region index, with hidden lanes dropped. Empty while no pileup is laid out; a lane drawing no rows stays in, and readLayoutRecord gives its reads no rect, so an overlay draws no read this display does not. |
| junctionSections |
The junctions each lane draws, merged and filtered, in stacking order. A gesture owes none of it: it reads loaded data, the on-screen region set and the junction filters, and only the count labels (junctionLabels) read the pan. Not a lane field: a lane feeds the LAYOUT, which the on-screen region set must never reach. |
drawsJunctionsboolean |
Whether any lane has a junction to draw. What the view's region table and the count labels wait on, so a track of unspliced reads pays for neither. |
bandChips{ leading: BandChipRow | undefined; rows: BandChipRow[]; } |
The chips naming each band that draws, in content space, once for the stack, and the row the topmost section chip carries (bandChips). |
| junctionLegendKeys |
The splice junction strands and split junction classes drawn in keyWindows, one key row each (junctionKeyOf). Read off the merged junctions and the settled window rather than the projected arcs, so a pan's frames do not rebuild the legend. |
themedThemedSources |
The read colors in the session theme and the marks colored from them (themedIn). |
colorScalesColorScale[] |
LegendMixin's hook: the read fills, the arc or read-cloud colors, the connection curves and the junction strands, merged and deduped by getAlignmentsColorScales. Empty while the legend is hidden, since the category scans are. |
hasLegendKeyboolean |
Always true: the key's category scans run only while the legend is shown, so colorScales is empty while it is hidden and could never offer the row that shows it. |
fittedFeatureHeightnumber |
The read height that makes every lane's reads fill the display without scrolling (fittedReadPitch), each lane's section kept at least as tall as its label chip. The uncapped row count uses a fixed pileup.maxLayoutHeight-row cap, independent of featureHeight, so the fit autorun that writes featureHeight cannot feed back into it. Reads fitTargetHeight, not the reactive height getter — the anti-cycle rule laidOutByGroup follows. |
| renderState |
|
linkRegionsreadonly LinkRegion[] |
The view's displayed regions as the band's connections place their feet (viewRegionTable), and the splice junctions theirs; empty while the band is off and no lane has a junction, so a pan leaves renderState alone on a track that draws neither. |
junctionLabelsreadonly JunctionLabel[] |
The junction read counts, each at its arc's apex (junctionLabels). The one part of junctions that reads the pan, and only while the labels are shown; the same empty array otherwise, so the overlay's observer stops. |
arcsYDomainBpnumber | undefined |
Floored at 1000bp, so an all-concordant set never divides by near zero. |
scoreRulesDrawnboolean |
Overrides ScoreScaleMixin's: coverage.encoding.y.rules are depths, so they draw on the coverage band, while it reserves px. |
valueScalesValueScale[] |
The scales the chrome places the axes from. Coverage rules one band per section, on the right wherever the group label chips take the left edge. The read cloud's insert-size scale rules each section's arc band, captioned TLEN, with a line at each end of the insert-size band the pairs are classed by (pinned, else the one the arcs pool). Each band projects through its section's own scroll; the chrome drops the off-screen ones. |
featureIdUnderMousestring | undefined |
|
mouseoverExtraInformationTooltipPayload | undefined |
|
hoveredConnectorReadIdsreadonly string[] |
The two read ids at the ends of the connector under the cursor. |
hoveredJunctionHoveredJunction | undefined |
The junction or split-read arc under the cursor, whose supporting reads the hover lights. |
overCigarItemboolean |
|
hoverCoverageBandHoverCoverageBand | undefined |
Screen-px coverage band of the section under a coverage/indicator hover; the tooltip draws its vertical hover bar on it. undefined when not hovering. |
hoveredArcHighlightArcHighlight | undefined |
The read-connection arc under the cursor, as the ink ArcHoverOverlay draws. A snapshot from the mousemove that found the arc, like its tooltip. |
selectedChainReadIdsstring[] |
Read ids of the selected read's chain, empty outside chain mode. |
hoverChainReadIdsreadonly string[] |
Read ids the hover lights as one: the chain of the read or connector under the cursor, else a connector's two ends. |
selectedJunctionHighlightArcHighlight | undefined |
The selected splice junction's ink, for the overlay that outlines it. Reads the pan, and only while a junction is selected. |
selectedConnectorHighlightArcHighlight | undefined |
The connectors of the selected read or chain, for the overlay that outlines them. Reads the pan, and only while one is selected. |
hoverInkHighlightRect[] |
The boxes of the hovered read or chain, for the chrome's highlight. Not in renderState: the hovered id changes on nearly every mousemove, and routing it through the canvas would repaint the whole pileup. |
hoverReads{ ids: readonly string[]; strong: boolean; } |
The reads hoverInk boxes, and whether it boxes them as one chain. |
selectionInkHighlightRect[] |
The boxes of the selected read, or of every read in the selected chain — the same walk as hoverInk, so a click repaints the guide's divs, not the canvas. Not in the SVG export, as no display's selection is. |
sortTagstring | undefined |
The worker receives the tag name alone, so rpcProps re-notifies when the tag changes, not when the sort position or a non-tag field flips. |
lodTierLodTier | undefined |
Overridable hook (default undefined: whatever the adapter picks): the detail tier a fetch issued now asks a tiered adapter for, off the settled zoom. LGVSyntenyDisplay resolves it for tiered PIF adapters. In zoomFetchArgs, not rpcProps, like perBaseBinBp. |
liveLodTierLodTier | undefined |
Overridable hook: the same tier off the LIVE zoom, read by dataSuperseded alone — see livePerBaseBinBp for the window it covers. |
perBaseBinBpnumber |
Genomic bp one per-base cell stands for in the worker's extract: the foundation's settledSubPixelBinBp, and 1 in every color mode that does not paint a wall of them. Per-base quality and lettering emit an entry per aligned base of every read, so sampling one base per sub-pixel window bounds the extract by the viewport, not the region. Not an rpcProps field — see zoomFetchArgs. |
livePerBaseBinBpnumber |
The same bin off the LIVE zoom, read by dataSuperseded alone. The debounced bin is the one the held data was fetched under, so it cannot show whether that data is sampled finely enough. Kept out of zoomFetchArgs because FetchVisibleRegions runs on the leading edge: a live key would refetch at every octave a fast gesture passes. |
hoveredFeatureSimpleFeature | undefined |
|
dataSupersededboolean |
MultiRegionDisplayMixin's supersession hook: the settled per-base bin or detail tier has not moved yet, but the live zoom has left it, so the clear is inevitable and not yet committed. Only the debounce half is here: once the settled bin moves, the stamp stops matching fetchInputs and the foundation's isCacheValid covers it. A value compare, never a second derivation of zoomFetchArgs: restated args would latch this true the day they grow a field, and a latched supersession hangs an export until awaitSvgReady times out. |
ownGroupState(string[] | { [k: string]: GroupSize; })[] |
The mixin's hook: the collapses and per-group height overrides dropGroupState clears below. |
gateEnabledboolean |
Opt into RegionTooLargeMixin's byte gate: fetchNeeded passes resolvedByteLimit() to RenderAlignmentData, whose first await is the index estimate, so an over-budget region is refused before a read downloads. |
105 inherited getters from 14 models
From HiddenGroupsMixin: , , groupStateKey
From FacetWritesMixin: writtenFacet
From ColorWritesMixin: writtenColor
From ParkedColorMixin: parkedColor, parkedIdentity
From LegendMixin: showLegend, legendRight, legendTop, legendSpec, keyDrawnByHost
From ScoreScaleMixin: scaleType, scaleZero, fenceQuantile, clipFenceQuantile, symlogConstant, domainMin, domainMax, autoscaleGroup, scaleTitle, grid, showAxis, scoreRules, axisGuide
From ScoreAxisMixin: axisReachesZero, resolvedDomainMin, resolvedDomainMax, autoscaledDomain, pinsDomain, axes
From MultiRegionDisplayMixin: host, canvasWidthPx, settledSubPixelBinBp, canRender, rendersCanvas, trackVisibleRegions, viewportWithinLoadedData, viewportEmpty, fetchSuspended, fetchHeld, renderBlocks, fetchInputs, regionPayloads, hasRegionData, staleSettingsDrawn, dataCurrent, loadedAssembly, phaseViewportCurrent, svgReady, paintInert, paintSuperseded, displayPhase
From FetchMixin: isLoading, isLoadingOrCanceled, fetchInert, awaitingPrerequisite, awaitingDependentData, settingsFetchInputs
From RenderLifecycleMixin: painted
From RegionTooLargeMixin: byteGateAdapterConfig, densityTooLarge, byteGateAdapterPath, adapterFetchSizeLimit, gateViewportSpanBp, gateViewport, configuredFetchSizeLimit, configForceLoad, aboveForceLoadFloor, gateExempt, estimatedFetchBytes, gateByteLimit, gateActive, gateMeasurementStale, densityGateActive, tooLargeStatus, regionTooLarge, regionTooLargeReason, zoomCanReleaseGate, gateSkipsMeasuredViewport
From HeightModeMixin: heightMode, autoHeight, fitHeightToDisplay, growMaxHeight, fitTargetHeight, grownHeight, height, hostInitialized
From TrackHeightMixin: allottedHeight, resizing, scrollableHeight
From BaseDisplay: parentTrack, selectedFeatureId, RenderingComponent, DisplayBlurb, adapterConfig, isMinimized, featureWidgetType, plotKeys, plot, configNotices, notices, cornerNotices, plotExamples, configDocsUrl
Methods
| Member | Description |
|---|---|
filterNarrowing(selects?: (field: string) => boolean) => Reversible |
How filter differs from what the track's config declares, as a count of the fields that moved: the "Filter by" count, and what "Clear all filters" writes back. selects narrows it to the fields in effect. |
| nonReferenceAt |
The loaded reads differing from the reference at a variant's sort column, or with allele only those with it, over the reads spanning it in the lanes not hidden. Undefined until a fetch reaching the column completes. |
configProblemsOf(conf: AnyConfigurationModel) => string[] |
The schema's rules, then what the reads cannot draw as written (alignmentsConfigProblems). |
groupChipLabel(label: string) => string |
The text a group's chip shows for its section label |
legendItems(palette: ColorPalette) => LegendItem[] |
|
connectionLegendItems(palette: ColorPalette) => LegendItem[] |
Key for the connection colors drawn: the band's and the pileup connectors', which paint one field through one palette, and the row for a junction through a region not shown. |
findFeatureInRpcData(featureId: string) => ReadHit | undefined |
|
laneFor(key: string) => AlignmentLane | undefined |
One lane by group key, for the per-key questions a component asks with a groupKey in hand. undefined for a key that isn't drawn. |
| getFeatureInfoById |
|
| readLayoutRecord |
Layout rect of one read of readArraysByGroup, Y in content space: subtract scrollTop for the screen. A read past the row cap sits on the cap's overflow row. None while its lane draws no rows (Show → Show pileup off, or a collapsed lane). |
junctionSupportingReadSlots(junction: HoveredJunction) => ReadSlot[] |
The slots of the reads that support the junction, in its lane, or in every drawn lane for a junction naming none. |
colorsIn(theme: JBrowsePalette) => ColorPalette |
The read palette over theme, with the category colors encoding.color sets: what the display paints its reads, arcs, connectors and junctions from, in the session theme or the one an export renders with. |
themedIn(theme: JBrowsePalette) => ThemedSources |
The read palette over theme, with the category colors encoding.color sets, and the read connections and splice junctions colored from it, each joined to its laid-out section. The SVG export passes the theme it renders with. Each member is its own computed, so while themed is observed a member rebuilds only when what it reads changes. |
connectorStylerIn(theme: JBrowsePalette) => ConnectorStyler |
How this display's connectors paint a connection between two reads, in theme. The breakpoint split view draws its curves between panels through it, so they agree with the arcs and connectors inside each panel. |
colorScalesIn(theme: JBrowsePalette) => ColorScale[] |
colorScales in another theme: the SVG export's, whose theme need not be the session's. |
readIdsSharingChainWith(featureId: string) => string[] |
Read ids sharing a chain with the named read, its own included. Empty outside chain mode, for a read in no chain, and for an id no fetched region holds. The hover, the right-click pin and the selection all light a chain through it. |
readInk(ids: readonly string[], strong: boolean) => HighlightRect[] |
The boxes the named reads painted, every region's copy, clipped to their sections. Reading readIdIndex builds over the whole fetched dataset, so it waits until something is hovered or selected. |
slotInk(slots: readonly ReadSlot[], strong: boolean) => HighlightRect[] |
The boxes the reads in these slots painted, clipped to their sections. |
| rpcProps |
Fields that invalidate the fetched data, every one worker-bound. Arc-only fields (readConnections and the connection filter) are not here: arcsResult reads them and they need no refetch. Non-tag sort changes and tag coloring (readFillColors, baked in laidOutByGroup) stay main-thread. Every field is read off self: a subclass override captures the base as a bare function, which would lose a this. |
zoomFetchArgs() => { perBaseBinBp: number; lodTier: LodTier | undefined; } |
MultiRegionDisplayMixin's per-region content axis: the zoom-derived worker arguments, which the fetch spreads into its RPC and the foundation stamps beside every region it loads. Only the per-base bin and the detail tier move it, so a zoom refetches the regions on screen only when one flips; neither is in rpcProps. Its own views block, after the getters it reads, like rpcProps. |
fetchExportedFeatures(request: ExportedFeaturesRequest) => Promise<ExportedFeatures> |
Save track data's reads, outside the lanes the user hid: every read the coverage counts for a depth, the drawn ones for a read format. The worker samples, lanes and filters them as it does to render, so the file agrees with the bands and the pileup. After rpcProps, whose filter and facet it sends. |
| groupByColor |
The color the Group by dialog's choice of field writes: a color by the field when ticked, left alone while it already paints; and, unticked, the plain fill only where the reads paint the field chosen, or for None the field it leaves, so regrouping keeps a color by another field. The feature display's rule too. Undefined where the color stays as it is. |
groupByPlot(field: string | undefined, colorByGroup: boolean) => Plot |
The Group by dialog's choice of field as plot settings, which its Apply writes and its Edit plot button shows. |
() => MenuItem[] |
Track menu items |
() => MenuItem[] |
11 inherited methods from 5 models
From ParkedColorMixin: parkedColorOf
From LegendMixin: legendSpecIn
From MultiRegionDisplayMixin: regionHasData, isCacheValid
From RegionTooLargeMixin: gateFetchState, resolvedByteLimit
From BaseDisplay: renderingProps, exportedFeatures, liftPlot, plotProblems, plotWrites
Actions
| Member | Description |
|---|---|
setShowCoverage(show: boolean) => void |
|
setShowCoverageAlleles(show: boolean) => void |
Turns the coverage band's allele colors on or off, coverage.alleles.show |
setCoverageMinAlleleFraction(fraction: number) => void |
|
setShowInterbase(show: boolean) => void |
|
| setFilterFields |
Replaces the entries on each field the patch names, undefined returning a field to its defaults; every other field keeps what was written. |
setShowPileup(show: boolean) => void |
Writes the height the track has before the switch, so an unset height resolving off pileup.show does not resize the track now or on reload. |
setShowMismatches(show: boolean) => void |
|
setShowSoftClips(value: boolean) => void |
|
setShowConnectors(flag: boolean) => void |
A main-thread tier-2/4 setting, not in rpcProps: toggling never refetches. |
setMismatchOpacityField(field?: "baseQuality") => void |
Writes field and value, so a written domain and range survive the fade being turned off and on. Unset draws every mismatch opaque, as the constant 1, since an unwritten opacity fades by baseQuality. |
setShowJunctions(show: boolean) => void |
Writes junctions.show alone. Without the coverage band the arcs draw in a separate strip (effectiveJunctionsPlacement). |
setJunctionsPlacement(placement: "above" | "auto" | "below" | "overlay") => void |
|
setShowJunctionLabels(show: boolean) => void |
|
setJunctionFilter(patch: JunctionFilterPatch) => void |
|
setDrawnReadConnections(mode: ReadConnectionsMode) => void |
What the "Read arcs" and "Read cloud" checkboxes write: 'off' hides the band and keeps its mark for the way back. |
setReadConnectionsPlacement(placement: "above" | "below" | "overlay") => void |
|
setReadConnectionsStrokeWidth(width?: number) => void |
Stroke a one-read connection width px, keeping the written field, scale type and range ratio, or a constant width; undefined returns to the default 1 px. |
setShowOrdinaryPairs(show?: boolean) => void |
|
setConnectionFilter(patch: Partial<ConnectionFilter>) => void |
|
applyGroupBy(field: string | undefined, colorByGroup: boolean) => void |
What the Group by dialog applies: groupByPlot, the draft its Edit plot button shows, as one write. |
openPlotDialog(seed?: Plot) => void |
"Edit plot...", seeded with a draft a dialog has not applied. |
toggleGroupCollapsed(key: string) => void |
Collapse/expand a stacked group's pileup (coverage stays visible). |
dropGroupState() => void |
The mixin's hook: the collapses and per-group height overrides, both of which use group keys. |
clearMouseoverState() => void |
|
clearHoverUnlessPinned() => void |
What a cursor leaving a read or connector calls. setHoverState refuses writes while the right-click menu pins the hover, so the leave refuses them too. clearMouseoverState is the unconditional form, for closeContextMenu. |
setError(error?: unknown) => void |
|
| setRpcData |
Stage a region as fetched, with this display's payload shape — so a test stands up a loaded display in one call. Production goes through ctx.commitRegion. |
clearSelection() => void |
|
openSolidColorDialog() => void |
The picker Color by's Solid color... opens, on the theme's plain read fill until a constant is written. |
setBases({ show, field, unmodified, filter }: BasesPatch) => void |
Writes the pileup.bases members the patch names, as one action so a layer and its filter refetch once. The read fill is colorByField's and stays as it is. Turning a hidden layer back on clears show, since a named field draws unless it is false. |
sortAtCenterLine(field: ColumnSortField) => void |
|
setSort(sort: SortSetting) => void |
The one writer of sort: a whole-window order, or a column sort. |
setCollapseSections(flag: boolean) => void |
Draw each group as one row, overlap depth shown as tint. Clears the per-group height overrides: an override opts a lane out of the collapse, which means nothing once every lane is a stack again. |
toggleGroupExpanded(key: string) => void |
Lift a group's cap to pileup.maxLayoutHeight without padding its band, or, if a drag or an earlier expand already sized it, return the group to the fit budget. Expanding overflows the viewport, which engages the pileup scroll. |
setGroupHeight(key: string, height: number) => void |
A stacked group's pileup band height, whole, and floored at one row and at what keeps the section as tall as its label chip: below that the section's bottom edge, where its drag handle sits, stops. It caps the group's rows (maxRowsFor) and pads the band where the rows fall short (computeStackedSections), so the band follows a drag in both directions, past its content too. |
setMarkHeight(height?: number) => void |
Set the per-read pixel size. Grow keeps growing at the new size. Fit derives the size, so a chosen size would be dormant: picking one drops back to fixed. |
setPileupMaxLayoutHeight(height?: number) => void |
|
setHeightMode(mode: "fit" | "fixed" | "grow") => void |
The two pieces of transient state a uniform fit/grow contradicts that HeightModeMixin can't know about. The slot write and the scroll reset are its setHeightMode, captured as super above. |
setFittedHeightPx(px: number) => void |
Caches the fitted read height; featureHeight/featureSpacing split it into a body and a derived gap. Written only by the driving autorun. |
setCoverageHeight(height: number) => void |
|
setReadConnectionsHeight(height: number) => void |
With the pileup hidden, clamped to the room that leaves each lane's coverage its floor (dragPileupHiddenStrip). |
setJunctionsHeight(height: number) => void |
Clamped as setReadConnectionsHeight is. |
setUnit(unit: "chain" | "read") => void |
A new unit restacks the whole pileup, so the scroll resets: the scrollableHeight clamp catches only a shorter stack. |
setHoverState(state: AlignmentsHover) => void |
The whole hover state in one action, so no branch of the mousemove handler leaves a field stale. Refused while the right-click menu is open, since openContextMenu pins the hover to the read the menu acts on. |
(feature?: Feature) => void |
|
() => void |
Close the right-click menu and release the hover it pinned. setHoverState refuses writes while the menu is up, so this is the only place the pin comes off. |
selectFeature(feature: Feature) => void |
|
startRenderingBackend(backend: AlignmentsRenderingBackend) => void |
|
| withFeatureById |
Fetch the feature behind featureId and hand it to onFeat. For a menu item that needs the whole feature but is offered before one is in hand. |
selectFeatureById(featureId: string) => Promise<void> |
|
(info: AlignmentsContextMenuInfo) => void |
Open the right-click menu over a hit. The block, the clicked column and the mark hit arrive as one ContextMenuHit, so a consumer cannot read a block without its hit. Resets the read feature and, when the hit has one, fills it by async RPC, so a repositioned menu cannot inherit the prior read's items. Also clears the hover, then re-pins the highlight box on the menu's read, in that order. |
fetchNeeded(needed: IndexedRegion[]) => Promise<void> |
|
renderSvg(opts?: ExportSvgDisplayOptions) => Promise<ReactNode> |
|
clearHoveredFeature() => void |
Fills BaseDisplay's hover-clear hook, which the fetch foundation's reaction calls on every viewport change. A pan, zoom or internal scroll under a stationary cursor fires no mousemove or mouseleave, so the highlight and tooltip would keep naming the read that was there. |
64 inherited actions from 13 models
From HiddenGroupsMixin: , hideGroup, showAllGroups
From FacetWritesMixin: facetByField, setFacetSort
From ColorWritesMixin: colorByField, setColorValue, colorByIdentity, colorByScheme, pickDefaultColor, pickSolidColor
From ParkedColorMixin: parkColor
From LegendMixin: setShowLegend, dismissLegendSection
From ScoreScaleMixin: setScaleType, setScaleZero, setFenceQuantile, setDomainMin, setDomainMax, setMinScore, setMaxScore, setAutoscaleGroup, setGrid, setScoreRules, resetYScale
From MultiRegionDisplayMixin: setLoadedRegion, evictRegionStore, dropLoadedRegion, clearDisplaySpecificData, clearSettingsBakedData, lapseHeldFetch, clearAllRpcData, invalidateSettings, reload, fetchRegions, afterAttach
From FetchMixin: setStatusMessage, stopActiveFetch, openStatusStream, cancelFetch, cancelFetchByUser, beforeDestroy, beginFetch, endFetch, runFetch
From RenderLifecycleMixin: markCanvasDrawn, resetCanvasDrawn, stopRenderingBackend, renderNow, setOffScreen, setRenderError, attachRenderingBackend
From RegionTooLargeMixin: clearByteEstimate, clearGateMeasurements, setForceLoadTrack, commitFetchBytes, forceLoad
From HeightModeMixin: resizeHeight
From TrackHeightMixin: setScrollTop, setHostHeight, setHeight, expandToContentHeight