Skip to content

Display settings and highlights

Display settings control how the plot is drawn: point size and opacity, background, color scales, how gene sets are scored, and reference marks such as a grid or a µm scale bar. The highlight overlay marks cells in a color of your choice on top of whatever coloring is active, for example epithelium in green while the rest of the tissue keeps a bivariate coloring.

Where to find it

Display at the right end of the toolbar. The highlight overlay is in the Genes panel under Color → Highlight (overlay), and on each gene-set row as 🖍.

Display settings

Display settings belong to the dataset: with two datasets loaded, each keeps its own. Click outside the panel to close it.

Setting Default What it does
Point Size 1 Radius of each cell, 0.5 to 10.
Point Opacity 85% 10% to 100%.
Label Font Size 13 px Size of category names drawn by Show labels on plot, 8 to 24 px. Labels are laid out so none overlap; a snapshot pane shrinks them further to fit.
Background Color #1a1a2e (dark blue) A color picker plus eight presets, from black to off-white.
Continuous Color Scale Viridis The ramp for genes, gene sets, score columns and continuous .obs columns: Viridis, Plasma, Magma, Inferno, Cividis, Coolwarm, Blues, Reds, Sunset, Ocean, Grape, Mint.
Bivariate Colormap Red / Blue / Yellow The 2D map for bivariate coloring. The alternatives are Pink / Green / Brown and Orange / Purple / Maroon.
Gene Set Aggregation Mean / per-gene norm, Z-score (MAD), Mean How a gene set becomes one score per cell. Described in Color cells.
Color-ramp clip percentile 0% Trim the values at the Nth and (100−N)th percentiles before setting the color ramp's ends, 0 to 5% in 0.5 steps. Applies to single-gene, gene-set and bivariate coloring. 0 means no clipping.
Normalize + Log1p off Color by count-depth-normalized, log(x + 1) values computed for display. Leave off when the Source matrix is already log-normalized.
Coordinate Grid off Draws a grid with tick labels in data coordinates along the bottom and left edges. Useful for reading off positions, for example to check where two sections sit before a Quilt move.
Scale Bar on Shown only for a dataset with spatial coordinates. Draws a µm scale bar once the scale is known (below).

The defaults in the table are the ones shipped in Skopia's config.yaml. To change them for yourself, put a display: section in ~/.skopia/config.yaml; see Configure defaults.

Spatial scale

An .h5ad file does not record units. Curio Seeker writes µm, plain Visium writes full-resolution image pixels, and a Localize map inherits its reference's units. So Skopia asks instead of guessing:

  1. Open Display.
  2. Under µm per coordinate unit, enter the physical size of one unit of the dataset's spatial coordinates. For Curio Seeker and Visium HD, enter 1. Leave it empty if you do not know; the bar then stays hidden.
  3. Press Enter or click elsewhere.

The value is stored in uns['skopia_spatial_scale'] and travels with the exported file. Visium HD data loaded through Skopia's loader is recognized as µm without asking. The bar always shows a round length (1, 2 or 5 × 10ⁿ µm) and rescales as you zoom.

Highlight overlay

A highlight layer blends one color over the cells it marks and leaves the active coloring underneath. Layers stack: each blends over the result of the ones before it, in the order they were added. Selected and masked cells are not tinted.

There are two kinds of layer.

Gene-set layers mark cells whose set score passes a threshold. The score uses the Mean / per-gene norm pipeline from Display, even when Display is set to UCell. A layer shows the score's histogram with a draggable cutoff and a threshold mode:

  • ≥ marks cells at or above the cutoff (the default; the cutoff starts at the median of the nonzero scores),
  • ≤ marks cells at or below it,
  • ⇔ marks cells between two cutoffs (they start at the 25th and 75th percentiles).

Cell-set layers mark a fixed list of cells: the current selection, or every cell with one value of a categorical column. The list is frozen when the layer is made; changing the selection later does not change the layer.

Add a layer

In the Genes panel, open Color and expand Highlight (overlay), then:

  • + Gene set: pick a set and click Add.
  • + Selection (N): snapshot the N selected cells.
  • + Category…: pick a column and a value.

Two shortcuts make the same layers:

  • 🖍 on a gene-set row in the Sets tab adds that set's layer and opens its controls under the row. On a set that already has a layer, 🖍 opens and closes the controls; the × in the controls removes the layer, so a tuned threshold is never one click from lost. The icon is ringed in the layer's color while the layer is shown. A set edited after its layer was made reads as not shown, because the layer holds the old genes.
  • The small two-color dot at the end of a category's row in the Cells panel adds that category as a cell-set layer.

A set is refused as a layer when none of its genes are in the dataset (or all are hidden by the gene mask), or when its score is the same in every cell: an ≥ threshold on a flat score would tint the whole plot.

Layer controls

Control Default What it does
Color one of eight palette colors, starting with green #22c55e; a gene-set layer takes the first one not already on screen The highlight color.
Threshold mode and cutoff (gene-set layers) ≥, median of the nonzero scores Which cells the layer marks.
Opacity 85% How strongly the highlight color covers the cells' own color.
dot size 1× Draws the marked cells larger, 1 to 4 times the point size. Size follows membership, not opacity, so a layer at 0% opacity can mark cells by size alone. A cell in several layers takes the largest size.
× Removes the layer. Clear all in the section header removes every layer.

Highlight layers live in the browser for the session; they are not written to the .h5ad. A Panels figure keeps its own overlay, which is saved with the figure.