LinearWiggleDisplay
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Provided by the wiggle plugin. View source.
The quantitative display: one plot per rendering, drawn over one source or
over many. rows: 'source' puts each source in a separate row, with the
clustering sidebar, row labels and separators beside them, and holds the
arrangement a reader sets; unset, every source shares one plot box.
Example usage
A complete QuantitativeTrack config to paste into tracks:
{
type: 'QuantitativeTrack',
trackId: 'coverage',
name: 'Coverage',
assemblyNames: ['hg38'],
adapter: { type: 'BigWigAdapter', uri: 'https://example.com/coverage.bw' },
displays: [
{
type: 'LinearWiggleDisplay',
displayId: 'coverage-LinearWiggleDisplay',
height: 100,
},
],
}The two row-ordering triggers are display properties, not config slots, so
they go on the display node in a session — defaultSession here, and the
same shape a session=spec- link uses. Written in the track config's
displays entry they would be dropped as unknown slots.
runClustering is a transient declarative launch spec, the same idea as
LinearGenomeView's init: it runs the real "Cluster columns" RPC once
automatically (no dialog) as soon as subtrack data is available, then clears
itself so a saved session never re-triggers it. sortRowsBy is the other
one, and the declarative form of the right-click "Sort rows by score here" —
where clustering orders rows by the whole region in view, this ranks them by
the score each has at one base, so a cohort can open already ranked at a
candidate locus with the surrounding context still on screen. Use one or the
other; whichever applies last owns the row order.
defaultSession: {
name: 'Copy number at CCL3L1',
views: [
{
type: 'LinearGenomeView',
assembly: 'hg38',
loc: 'chr17:36,080,000-36,270,000',
tracks: [
{
trackId: 'pur_copynumber_1000g',
type: 'LinearWiggleDisplay',
sortRowsBy: { refName: 'chr17', pos: 36180000 },
},
],
},
],
}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"LinearWiggleDisplay" |
Always "LinearWiggleDisplay", the name a snapshot selects this model by. |
configurationLinearWiggleDisplayConfig |
The config node this model reads its settings from, through getConf. Its slots are documented on its config schema page. |
5 inherited properties from 3 models
From TreeSidebarMixin: runClustering, clusterRegion, sortRowsBy
From ParkedColorMixin: parkedColors
From BaseDisplay: id
Volatiles
| Member | Description |
|---|---|
lastGroupingFieldstring |
28 inherited volatiles from 10 models
From ContextMenuMixin:
From TreeSidebarMixin: hoveredTreeNode, treeCanvas, mouseoverCanvas
From LegendMixin: dismissedLegendSections
From StoredHoverMixin: storedHoveredFeature
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 |
|---|---|
rpcDataMapReadonlyMap<number, WiggleDataResult> |
The fetched scores, keyed by displayedRegionIndex — the foundation's per-region store, narrowed. |
resolutionnumber |
Points per pixel the fetch asks for, clamped to what the Resolution menu offers: the slot is reachable from a track config, which runs no setter, and 0 there divides by zero inside the adapter. |
originnumber |
The value bars grow from, which a color scale also reads where its domain is unset. |
lineWidthnumber |
A line's width, encoding.strokeWidth or 1 px while unset. |
sizenumber |
A point's diameter, encoding.size or 2 px while unset. |
extent"min-max" | "none" |
|
renderingType"density" | "line" | "linecenter" | "scatter" | "xyplot" |
|
colorSettingColorSetting |
The encoding.color channel as written, value undefined while nothing names a color and the layout decides (effectiveColor). |
rowsFieldstring |
rows.field: source for a row per source, a source attribute for a row per value with its sources overlaid, '' for one shared box. |
isRowLayoutboolean |
Whether the sources are drawn in rows rather than one shared box: the row labels, the separators and the row-order sort hang off it. |
showRowSeparatorsboolean |
|
isDensityModeboolean |
|
colorKeyTitlestring |
The heading both color keys carry: encoding.color.legend.title as written ('' draws none), else the y axis title the key replaces, else Score. |
isOverlayboolean |
Every source in one plot box. The complement of the row layout, named for what is drawn rather than for the setting that is off. |
prefersOffsetboolean |
Rows, the "Showing N of M rows" chip a narrowing draws in any layout, or one plot's y-axis; one density plot, or one with axis.show off, has nothing else at its top-left. |
hasResolutionboolean |
Asked of the display's own adapter, for the GC track the synthesized GCContentAdapter: the resolution slot it gates is passed to whatever this display fetches from. |
liveNoticesstring[] |
What the loaded sources said they could not serve, and rowNotices. |
legendColorstring |
The one color the circular view's key names this track by (CircularLegendSource), which a ring of this display answers where it draws no ramp. The positive side, which is the whole plot wherever nothing parts. |
tooltipShowsMinMaxboolean |
Whether a summary bin's tooltip lists its min and max: where they are drawn, or where the bar is one of them rather than the mean. |
autoClusterReadyboolean |
TreeSidebarMixin's hook. On a log or symlog axis it also waits for the domain the matrix places scores through, which lags the data until the view settles; with no scores loaded there is none to wait for. |
150 inherited getters from 14 models
From TreeSidebarMixin: showTree, showBranchLength, showRowLabels, treeAreaWidth, rowSort, rowLabels, storedRowTree, rowTreeProvenance, rowFocus, rowFilter, rowColorChannel, rowColorPins, rowSubtitleField, rowAnnotationChannels, finerTreeHint, , internalRowFields, baseRowColorChannel, baseRowColorSetting, rowColorIsCustom, rowColorChoice, rowColorFieldsOffered, rowArrangementIsCustom, rotatableRowTree, rowsContentHeight, hierarchy, , , awaitingDependentData, spatialIndex, clusterPartition, treelessBandCount, baseRowFilter, rowBandingNotices, rowNarrowingClears, rowNarrowingNotices, rowSettingNotices, rowNotices, rowNarrowingHint, treeOnFinerRows, treeHasBranchLengths
From ParkedColorMixin: parkedColor, parkedIdentity
From LegendMixin: showLegend, colorScales, legendRight, legendTop, legendSpec, hasLegendKey, keyDrawnByHost
From StoredHoverMixin: hoveredFeature
From YFieldConfigMixin: yField, summaryField
From WiggleScoreConfigMixin: axisReachesZero
From ScoreScaleMixin: scaleType, scaleZero, fenceQuantile, clipFenceQuantile, symlogConstant, domainMin, domainMax, autoscaleGroup, scaleTitle, grid, showAxis, scoreRulesDrawn, scoreRules, axisGuide
From ScoreAxisMixin: defaultScoreDomain, valueScales, autoscaleRange, valuesInView, resolvedDomainMin, resolvedDomainMax, autoscaledDomain, pinsDomain, axes
From MultiRegionDisplayMixin: host, canvasWidthPx, settledSubPixelBinBp, canRender, rendersCanvas, trackVisibleRegions, viewportWithinLoadedData, viewportEmpty, fetchSuspended, layoutReady, dataSuperseded, fetchHeld, renderBlocks, fetchInputs, regionPayloads, hasRegionData, staleSettingsDrawn, dataCurrent, loadedAssembly, phaseViewportCurrent, svgReady, paintInert, paintSuperseded, displayPhase
From FetchMixin: isLoading, isLoadingOrCanceled, fetchInert, awaitingPrerequisite, settingsFetchInputs
From RenderLifecycleMixin: painted
From RegionTooLargeMixin: gateEnabled, byteGateAdapterConfig, densityTooLarge, byteGateAdapterPath, adapterFetchSizeLimit, gateViewportSpanBp, gateViewport, configuredFetchSizeLimit, configForceLoad, aboveForceLoadFloor, gateExempt, estimatedFetchBytes, gateByteLimit, gateActive, gateMeasurementStale, densityGateActive, tooLargeStatus, regionTooLarge, regionTooLargeReason, zoomCanReleaseGate, gateSkipsMeasuredViewport
From TrackHeightMixin: configuredHeight, allottedHeight, height, resizing, scrollContentHeight, scrollViewportHeight, scrollableHeight
From BaseDisplay: parentTrack, selectedFeatureId, RenderingComponent, DisplayBlurb, adapterConfig, isMinimized, featureNoun, featureWidgetType, plotKeys, plot, configNotices, notices, cornerNotices, plotExamples, configDocsUrl
Methods
| Member | Description |
|---|---|
exportedFeatures(features: Feature[]) => Feature[] |
The exported features this display draws: those of a subtrack no filter, focus or subtree hides, each scored by the field plotted (exportedWiggleFeatures). Asked of the rows hidden rather than the rows shown, so an export before the first fetch lists its subtracks keeps every feature. |
configProblemsOf(conf: AnyConfigurationModel) => string[] |
The schema's rules, then what the plot cannot paint as written: threshold cuts past eight, and a gradient on a line. |
() => MenuItem[] |
|
() => MenuItem[] |
Right-click menu, built from the column under the click. The position is captured here rather than read inside the onClick, because closeContextMenu runs first when an item is clicked. |
17 inherited methods from 6 models
From TreeSidebarMixin: , rowColorFor, orderDropsRowTree, rowOrderWillDropTree, unreadFilterFieldNotice, rowAnnotationNotices
From ParkedColorMixin: parkedColorOf
From LegendMixin: colorScalesIn, legendSpecIn
From MultiRegionDisplayMixin: regionHasData, isCacheValid
From RegionTooLargeMixin: gateFetchState, resolvedByteLimit
From BaseDisplay: renderingProps, liftPlot, plotProblems, plotWrites
Actions
| Member | Description |
|---|---|
| setRpcData |
Stage a region as fetched, with this mixin's payload shape — so a test stands up a loaded display in one call. Production goes through ctx.commitRegion. |
selectFeature(feat: WiggleHoveredFeature) => void |
|
setResolution(res: number) => void |
|
setOrigin(val?: number) => void |
|
| setMark |
The plot's mark.type, and a line's mark.interpolate; any other type resets interpolate, which only a line reads. |
setY(field: string) => void |
The field plotted on the value axis: a stored summary (score, minScore, maxScore) or any feature field. |
setExtent(val: "min-max" | "none") => void |
|
setPointSize(val?: number) => void |
|
setStrokeWidth(val?: number) => void |
|
setRowsField(field: string) => void |
The layout half of a Plot type leaf — source (Multi-row), a source attribute (Rows by group) or '' (Overlapping), each holding the five plot names. Writes the field alone, so the arrangement survives a trip through the shared plot and comes back with the rows. A grouping field left behind is kept as lastGroupingField, which the Plot type menu offers to return to. |
setRowLayout(on: boolean) => void |
setRowsField as a switch: a row per source, or one shared box. |
startRenderingBackend(backend: WiggleRenderingBackend) => void |
|
setShowRowSeparators(arg: boolean) => void |
|
| setPlot |
A Plot type leaf whole: setMark then setRowsField in one action, so the regions encode once and never as the new plot in the old layout. rowLayout is the older spelling (v5.0.0 betas): true is rowsField: 'source', false is ''. |
openPlotDialog(seed?: Plot) => void |
The arrangement dialog's "Edit plot..." button: the color object and the rows beside it as text, the escape for a ramp, several cut points or a typed row order, none of which the dialog's own controls offer. |
sortRowsByScoreAt(refName: string, pos: number) => boolean |
Rank the rows by each source's score at one genomic base. Reads the region data already in hand — no refetch, no RPC — and writes the order through rows.sort, the same channel clustering and the arrangement dialog write, so "Reset row order" undoes all three.Named by coordinate rather than by loaded-region index because both entry points are: the right-click hit resolves to one, and a session's sortRowsBy holds one across a reload. Resolving that region and refusing the two cases where a sort would only cost a rows.sort write are sortRowsAtColumn's, shared with the multi-row feature display's twin, and so is the returned "did it sort" the declarative entry point reads to decide whether to keep its trigger for a later fetch. |
fetchNeeded(needed: IndexedRegion[]) => Promise<void> |
|
renderSvg(opts?: ExportSvgDisplayOptions) => Promise<ReactNode> |
76 inherited actions from 12 models
From ContextMenuMixin: ,
From TreeSidebarMixin: setShowTree, setShowBranchLength, setShowRowLabels, setTreeAreaWidth, setRunClustering, setClusterRegion, setSortRowsBy, setHoveredTreeNode, setTreeCanvasRef, setMouseoverCanvasRef, setRowOrder, setRowLabels, setRowFocus, showAllRows, applyRowEdits, resetRowArrangement, setRowColorChoice, focusLegendEntry
From ParkedColorMixin: parkColor
From LegendMixin: setShowLegend, dismissLegendSection
From StoredHoverMixin: setHoveredFeature, clearHoveredFeature
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: setError, 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 TrackHeightMixin: setScrollTop, setHostHeight, setHeight, resizeHeight, expandToContentHeight
Related links
- Tutorial: AlphaGenome 2 predictions by cell type
- Tutorial: Single-cell RNA and ATAC pseudobulk
- User guide: Quantitative track