Datasets, split view and compare¶
Skopia can hold several datasets at once, show them side by side, and show one dataset in two embeddings at the same time. Use this to compare samples that you have not combined, or to see where a UMAP cluster sits in the tissue.
Where to find it
File → Load… (choose New dataset under Load into:), the dataset tabs above the plot, Split at the right end of the tabs, and ◫ Compare in the toolbar.
This page covers three features that are often confused:
| Feature | What it shows | Cells involved |
|---|---|---|
| Dataset tabs | One loaded dataset at a time; the tab you click is the one the panels act on | One dataset |
| Split | Every loaded dataset side by side | Different datasets |
| ◫ Compare | One dataset in two embeddings side by side | The same cells, twice |
File formats and the Load dialog itself are covered in Load your data. To merge several files into one dataset instead of holding them side by side, see Combine datasets.
Load more than one dataset¶
- Open File → Load….
- Set Load into: to New dataset. The other choices, Replace followed by a dataset's name, unload that dataset and put the new file in its place.
- Pick the file and click Load.
Once two or more datasets are loaded, a row of tabs appears above the plot, one per dataset. The + at the end of the tabs opens the same dialog with New dataset already selected.
Replacing a dataset discards its session
Replace unloads the dataset in that slot. Clusterings, embeddings, figures and the analysis record you made on it in this session are gone unless you exported first (Save and export). Reloading the file does not bring them back.
Dataset tabs¶
Each tab is named after its file. The tab you click becomes the active dataset: the Cells panel, the Genes panel, the Analyze menu and every export act on it.
- Rename a tab by double-clicking it. The name you type replaces the filename in the tab until you clear it; Esc abandons the edit. Hover a tab to see the underlying filename.
- Reorder tabs by dragging. In split view, tab order is pane order.
- Close a dataset with the × on its tab. Skopia asks first, then frees the backend's copy. Closing the dataset you were looking at moves you to its neighbor.
The tab row is hidden while only one dataset is loaded, so the last dataset cannot be closed from a tab. To unload everything, use File → New session… (Save and export).
Each dataset keeps its own state: its selection, comparison groups, saved subsets, display settings and the embedding shown. Switching tabs does not carry a selection or a column choice from one dataset to another, because cell indices from one matrix mean nothing in another.
Split: datasets side by side¶
Click Split at the right end of the tab row to show every loaded dataset at once. Click it again to return to the active dataset alone.
- Two or three datasets sit in one row. Four or more form a grid that is as square as the count allows: 4 datasets give 2 × 2, 6 give 2 × 3 (two rows of three), 9 give 3 × 3.
- Each pane has its own embedding picker, legend and camera (pan and zoom).
- Click inside a pane to make that dataset active. The panels on either side follow it.
- Drag the divider between two panes to resize them. A drag changes only the two panes it separates; panes do not shrink below 120 px. Double-click a divider for equal sizes.
◫ Compare: one dataset, two embeddings¶
◫ Compare shows the active dataset twice, each pane with its own embedding and its own camera. The typical use is tissue on one side and an expression embedding on the other.
The button appears when the dataset has more than one embedding and Split is off. When you turn it on, the second pane offers the complement of what the first shows: a spatial embedding in the first pane gets a UMAP in the second, and the other way round. Change it with the embedding picker inside the second pane.
Because both panes show the same cells, they share:
- Selection. Lasso a cluster in the UMAP pane and the same cells light up at their tissue positions.
- Coloring, expression overlays and highlights.
What differs between panes:
- Draw and Adjust act on the first pane's embedding only and do nothing in the second, so a line drawn on a UMAP never appears on the tissue.
- The µm scale bar appears only in a pane that shows real spatial coordinates.
Each dataset remembers its own second embedding. If you switch to a dataset that lacks the embedding the second pane was showing, Skopia picks one the new dataset has.
After a page refresh¶
A browser refresh does not unload anything. On startup Skopia asks the backend what is loaded and restores every dataset, together with:
- the tab order,
- names you typed for tabs,
- whether Split was on,
- the pane sizes you dragged.
Only that arrangement is stored in the browser (local storage). The datasets themselves come from the backend, which kept them in memory. Restarting the backend is different: it unloads everything. See Session persistence.
Tips and pitfalls¶
Combine or Split?
Split keeps datasets separate: each has its own genes, clustering and coordinates, and nothing you run on one touches another. To run one clustering or one differential expression test across samples, combine them into one dataset with Combine datasets.
Several datasets cost memory
Every loaded dataset stays in the backend's memory until you close it, whether or not its pane is visible. Close datasets you have finished with.
Related¶
- Load your data: formats and the Load dialog
- Combine datasets
- Save and export
- Navigate and adjust embeddings
- Select, mask and delete