DensityTierMixin
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release — see pluggable elements for concepts. Built into JBrowse core. View source.
The density tier: where the region-too-large gate refuses the features, a
display with a density source draws features per bin in the banner's place.
The verdict stays exactly what RegionTooLargeMixin derives — the feature
fetch still stops at the gate — and this mixin adds the swap decision, the
bins and the small read that fills them, through the shared fetch skeleton
on its own rotation so the primary fetch's cancel never reaches it. Composed
after RegionTooLargeMixin; the display decides how the bins are drawn.
Volatiles
| Member | Description |
|---|---|
densityBinsdensityBins: regionDataMap<FeatureDensity>('densityBins') | Features per bin by displayedRegionIndex, at the zoom bucket the last read was issued for. Cleared on chromosome navigation. |
densityBinsKeydensityBinsKey: undefined as string | undefined | The issue key of the bins held, which the read compares against. |
| densityBinsRead | What the held bins were read over: the buffered regions, the zoom bucket and the adapter, so a pan or a zoom inside them re-reads nothing. |
densityLoadingdensityLoading: false |
Getters
| Member | Description |
|---|---|
densitySourceConfigunknown | The densityAdapter slot of the adapter the gate measures, read off the live track config so a tiered display's swap follows it. |
densityTierMode"auto" | "density" | "features" | |
densityTierThresholdBpPerPxnumber | |
hasDensitySourceboolean | |
densityTierActiveboolean | Whether the band stands in for features right now. |
fetchSuspendedboolean | FetchMixin's hook, from resolveFetchSuspended over the tier's verdict. A display whose band needs somewhere to draw (alignments, whose coverage band can be hidden) overrides it with that term. |
Actions
| Member | Description |
|---|---|
| setDensityBins | |
clearDensityBins() => void | |
setDensityLoading(loading: boolean) => void |