FeatureGateMixin
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Provided by the features plugin. View source.
The density axis of the region-too-large gate, composed after
MultiRegionDisplayMixin. A display opts in by composing this, spreading
featureGateConfigSchemaFields into its config, and calling
commitGateMeasurements from its fetch's onComplete.
Volatiles
| Member | Description |
|---|---|
densityStatsPerRegionObservableMap<number, RegionDensityStats> |
Per-region feature counts, so the verdict is a live max at the current bpPerPx. |
Getters
| Member | Description |
|---|---|
gateEnabledboolean |
types.compose resolves a collision to the later argument, so this mixin must follow the one declaring the byte-gate opt-in. |
visibleFeatureDensityPerPxnumber |
Density at the throttled coarseBpPerPx, so the verdict shares the layout cadence. |
configuredMaxFeatureScreenDensitynumber |
The maxFeatureScreenDensity slot. Overridable for a display that holds it under a sub-schema (the variant display's records). |
maxFeatureDensitynumber | undefined |
Undefined when the axis may not act. |
densityTooLargeboolean |
Methods
| Member | Description |
|---|---|
observedMaxDensity(bpPerPx: number) => number |
Actions
| Member | Description |
|---|---|
| setDensityStats |
|
clearGateMeasurements() => void |
RegionTooLargeMixin's hook: the density axis drops its counts on the trigger that drops the byte estimate, so a gate's measurements always come from one file. |
| commitGateMeasurements |
Judged by the tier captured at issue. |