Skip to content

Panels

The Panels tab lays out the same cells several times on one embedding, each panel colored its own way: gene A next to gene B, a cluster labeling next to a pathway score. It is for side-by-side comparison and for multi-panel embedding figures you export as PNG.

Where to find it

The Panels tab above the plot. A saved Panels figure reopens from the Figures tab with Open in Panels.

How it works

Opening the tab with no figure makes a 2×2 figure of every cell on the embedding the Embedding tab shows. It starts from the Display panel's background, point size, opacity, color scale and label size. There is no separate create step.

While Panels shows a figure of the active dataset, the coloring actions in the Genes and Cells panes color the active panel instead of the Embedding. The active panel is outlined; click a panel to make it active. Clicking a gene, a set's 🎨, bivariate coloring, a score-matrix column or a Cells-pane Color button all route to it, and the Embedding keeps its own coloring. A panel computes its colors exactly as Display would on the figure's dataset (transform, clip percentile, layer, per-gene normalization, aggregation, UCell), so a panel colored by a set shows the same values the Embedding would.

Point size, opacity, background and the grid are shared by all panels, and so are pan and zoom, which keeps the panels aligned. Each panel has its own color scale and title.

Build a figure

  1. Open the Panels tab. A 2×2 figure of every cell appears.
  2. Pick a Layout: 1×1, 1×2, 2×1, 1×3, 2×2, 2×3 or 3×3.
  3. Click a panel, then color it from the Genes or Cells pane, or with the sidebar's Active panel controls.
  4. Optionally, select cells on the Embedding and click Crop to selection (N) to show only those cells; All cells undoes the crop.
  5. Add highlight layers to the overlay (below).
  6. Click Save to keep the figure in the dataset, or Export PNG to download it.

Toolbar

Control What it does
Figure title Optional title above the grid.
Layout Rows × columns of panels.
Background Figure background. Titles switch to dark ink on a light background.
Point size Point radius in pixels, shared by all panels.
Opacity Point opacity, shared by all panels.
Grid An N×N reference grid in every panel, with its color and line width; drawn into the PNG too.
Crop to selection (N) Show only the cells selected in the Embedding tab. Appears when cells are selected on the same embedding.
All cells Undo a crop.
Export DPI 1× (screen), 2× (~150 DPI), 3× (~225 DPI) or 4× (~300 DPI).
Export PNG Download the figure at the chosen scale.
Save Store the figure in the dataset (see Save and reopen).
New figure Discard this figure and start a new one on the embedding the Embedding tab shows.

Active panel controls

Control What it does
Title The panel's title. Blank means automatic. You can also click a title on the plot to rename it.
Color none, gene / gene set, bivariate (genes / sets), metadata, or score column (when the panel was colored from a score matrix).
Gene set / Or gene For gene coloring: a set from the Genes panel, or a single gene typed in.
Axis 1 (red) / Axis 2 (blue) / Colormap For bivariate coloring: two sets and a two-color map (default (red / blue), pink / green, orange / purple, custom).
Column For metadata coloring: an .obs column.
Color scale For continuous values: viridis, plasma, magma, inferno, cividis, coolwarm, blues or reds.
Labels For a category column: on plot writes each category's name at the median position of its cells, with a font size in px. Labels are drawn into the PNG.
Background, Border The panel's own background and border.
Overlay show on this panel turns the figure's overlay off for this panel only.

A panel's title follows its coloring (the gene, the set, the column, or "A vs B" for bivariate) until you rename it. When a panel shows expression or a numeric column, high-value cells are drawn on top so bright cells are not hidden under low ones.

Text labels placed on the embedding (see Shapes and text labels) appear in every panel, read-only.

The overlay

A figure has one overlay of highlight layers, drawn on every panel that shows it. While Panels is open, the 🖍 tools in the Genes pane add layers to this overlay rather than to the Embedding's. Copy from Embedding (N) starts the overlay from the Embedding's current highlight layers (or replaces it), and × removes a layer. See Display settings and highlights for the layer types.

Save and reopen

Save stores the figure in the dataset as a figure record of kind embedding_panels in uns['skopia_figures'], next to the other figures, and lists it in the Figures tab. It is written to the .h5ad when you save the file (see Save and export). Each save is a step in the analysis record.

The record is a specification, not pixels: the embedding and its two columns, the cells (every cell, or the crop's indices), the layout, each panel's coloring, title, labels and look, the overlay (a gene-set layer as its genes and cutoffs, a cell-set layer as its cells), and the Display scoring settings the panels were computed with. Next to Save, the toolbar says Not saved, Unsaved changes (fig_3) or Saved as fig_3. Saving again after a crop updates the same figure id.

To reopen a saved figure, select it in the Figures tab and click Open in Panels. It is drawn with the scoring settings it was saved with, even if Display has changed since. The sidebar then says Scored with the Display settings saved with this figure and offers Use current Display settings. A gene-set overlay layer is rescored with the settings it was first scored with, so its cutoffs select the same cells.

Unsaved changes are guarded

New figure, opening another saved figure, and leaving or reloading the page ask before discarding unsaved changes.

A figure is tied to the cells it was made on

A crop and a cell-set overlay layer are stored as cell indices, numbered against the dataset's cell count. Once cells are deleted or filtered, such a figure (or a Duplicate of it) refuses to open and says why, rather than drawing on the wrong cells. A figure of every cell with no cell-set layer still opens.

The same check applies to the figure on screen: after cells are deleted or filtered, or another file is loaded into the same dataset slot, the tab shows The cells under this figure have changed. and offers New figure instead of drawing old positions with new values.

In the Figures tab a Panels figure shows a summary only. Export it and edit it in Panels; the Figures tab's Export and Attach to record buttons are disabled for this kind. In the exported notebook, a cell-set overlay layer of more than 50,000 cells (the record's selection cap) is left out of the replayed figure.

Other datasets

When another dataset is active, the Panels sidebar says which dataset the figure shows, and the Genes and Cells panes color that other dataset as usual. Switch back to the figure's dataset to color panels again, or start a New figure on the active one.

What it writes

Where What
uns['skopia_figures'][<id>] The saved figure record (kind embedding_panels), on Save only.
uns['skopia_figures_seq'] The counter that numbers figure ids.

Building and exporting a figure without saving it writes nothing to the AnnData.