Navigate and adjust embeddings¶
The Embedding tab draws every cell as a point at its coordinates in one .obsm array: spatial positions, a UMAP, PCA, a diffusion map or any other two-or-more-column matrix. This page covers moving around that plot, choosing which embedding and which expression matrix it shows, viewing three columns at once, and editing the coordinates themselves (rotate, flip, and the Quilt tool for stitching tissue sections).
Where to find it
The Embedding tab in the center panel. The View box sits at the bottom left of the plot; Adjust is in the toolbar.
Pan and zoom¶
- Drag to pan.
- Scroll to zoom.
The zoom range is set from the fitted view of the current embedding (the fitted zoom plus or minus 10 steps), so an embedding that spans a fraction of a unit, such as a diffusion map, zooms as freely as a UMAP spanning tens of units.
The camera stays where you left it when the data change in place: deleting or filtering cells, normalizing, recomputing a clustering. It re-centers only when you switch to another embedding.
The View box¶
The floating View box at the bottom left holds two pickers. Drag its title bar to move it, and use its – button to minimize it. The legends on the plot behave the same way.
- Source:
- The matrix that gene expression is read from:
.Xor any layer (for example a smoothed layer from Preprocess → Smooth). Each entry shows Skopia's verdict on that matrix's scale (raw counts, log-normalized, and so on) and its density; the ⓘ badge opens the evidence. See Expression scale detection. The Source applies to single-gene coloring, gene-set scores and bivariate coloring. It is per dataset. - Embedding:
- Every
.obsmarray that can be drawn. Pick one to switch the plot to it. - Axes:
- Shown only for an embedding with more than two columns (PCA, a diffusion map, a cells × features score matrix such as
SCN_score). Choose which column goes on X and which on Y. PCA columns are labeledPC1,PC2, …; a score matrix shows its column names. The chosen columns are the real coordinates for everything drawn or selected on the plot.
Which embedding opens first¶
When a dataset loads, or when the embedding on screen disappears (for example after you delete a subset with its results), Skopia picks the first embedding whose name contains spatial, then umap, then pca (case-insensitive), and otherwise the first one listed.
3D view¶
For an embedding with three or more columns, the 3D button beside the Axes pickers turns on a third axis picker and draws the cells as a point cloud you can orbit.
- Drag to orbit; scroll to zoom.
- Hover over a cell to see it in a tooltip.
- Select works in 3D as a freehand lasso drawn on the screen: it takes the cells whose projected positions fall inside the loop, including cells behind the ones you can see.
- Add and Adjust are 2D-only and are hidden while 3D is on.
Coloring, highlights and the cell mask render the same way as in 2D. Switching to an embedding with only two columns turns 3D off.
Adjust: rotate, quilt and flip¶
The Adjust button's dropdown has three sections. Each edits the coordinates stored in .obsm for the two columns on screen, so the change is saved when you export the .h5ad. Shapes and text labels drawn on the embedding move with the cells.
Rotate¶
- Choose Adjust → Rotate.
- Drag inside the plot to rotate the whole embedding around the centroid of its cells. A badge shows the angle and an orange ring marks the pivot. Hold Shift to snap to 15° steps.
- For exact angles, use the toolbar that appears in the View box: ↺ 90°, ↻ 90°, or type a number of degrees and press Enter (or click Apply).
- Press Esc to leave Rotate mode.
Quilt¶
Quilt moves part of an embedding: for example, to lay adjacent tissue sections side by side or to put a section back in register with its neighbor.
- Choose Adjust → Quilt.
- Lasso the cells you want to move.
- Move them:
- Drag to translate; Shift + drag to rotate them around their own centroid.
- Arrow keys nudge the selection by 0.2% of the embedding's range; Shift + arrow nudges by 2%.
- ↔ Flip X and ↕ Flip Y in the View box mirror the selected cells.
- Press Esc (or click the plot without dragging) to clear the selection and lasso another piece. Press Esc again to leave Quilt mode.
Each Quilt move can be undone: ↩ Undo in the View box, or Ctrl+Z / Cmd+Z. The undo history is held by the backend for the session and does not survive a backend restart.
Flip¶
Flip Horizontal mirrors the embedding left to right (about the vertical axis through its centroid) and Flip Vertical mirrors it top to bottom. These are one-shot actions, not modes. In Quilt mode with cells selected, a flip applies to those cells only.
Whole-embedding rotate and flip have no undo
Only Quilt moves are on the undo stack. To reverse a whole-embedding rotation, rotate by the opposite angle; to reverse a flip, flip again. If the file on disk must keep its original coordinates, export under a new name.
Cells with no coordinates¶
An embedding computed on a named subset (for example X_umap_chondro) has coordinates only for that subset's cells. The other cells have none and are not drawn. When this happens a notice over the plot says how many cells have no coordinates in that embedding (for example 500 of 1,000) and offers a Show all cells on … button. The button goes back to the embedding the subset was drawn on (for a subset nested inside another, one level up), or to the dataset's own counterpart of the key (X_umap_chondro → X_umap).
Reset Mask in the Cells panel makes the same switch when the current embedding cannot show every cell, so clearing the mask always brings every cell back into view. See Select, mask and delete.
Build an embedding from two .obs columns¶
Analyze → Cells → Embedding from .obs makes a two-column embedding from two numeric .obs columns, with an optional log1p on either axis. The usual use is a barnyard plot of per-species counts. The result is named X_<x>_vs_<y> unless you give a name, and appears in the Embedding picker. See PCA, neighbors, UMAP, Leiden for the other Analyze → Cells tools.
Related¶
- Color cells
- Display settings and highlights
- Shapes and text labels
- Datasets, split view and compare: two datasets, or two embeddings of one dataset, side by side
- Named subsets and the subset tree