Skip to content

Modules overview

Every analysis step in Smage is a module in the workflow tree. Modules are chained: each one sees the data produced by the modules above it, applies its own settings, and passes the result down.

Workflow

How modules behave

  • Save vs Run. Changing settings marks a module as modified. Downstream modules only see the saved state, so press Save after editing. Modules that produce data (Import, Segmentation, Feature Down, Feature Up, Gate2Col) also have a Run/Calculate action that writes their output.
  • Locking. A module that has saved output locks; upstream modules cannot be changed until the output is removed or the module is unlocked. Smage shows a lock badge in the workflow tree.
  • Generated files. Only some modules write files: Data Import writes the normalized table, Segmentation writes masks, Unmix writes unmixed columns for tables and unmixed image channels, Region writes converted 0/1 channels, and Feature Down/Up and Gate2Col write new tables. Other modules compute on demand and are always up to date with the saved settings above them.
  • Display-only steps. The Scale module never changes values — it only changes how they are drawn.

Reference

Group Module What it does
Input Data Import Normalize FCS, image and tabular files into the project table
Input Rename Rename columns or files for downstream modules
Input Subsample Keep a fixed random number of events per file
Input Subset Restrict which files and columns downstream modules see
Map values Compensation Apply a spillover matrix to flow-cytometry channels
Map values Illumination Correction Correct uneven illumination per channel
Map values Batch Align Align batches with CytoNorm (reference-based) or ComBat (reference-free)
Map values Calculation Build new channels with Clip, Scale, Add or a custom contrast curve
Display Scale log10 / arcsinh / linear display transform
Gating Gating Create gates and per-gate statistics
Image Segmentation Cellpose, StarDist or threshold masks
Image Region Detect Regions and expose them downstream as 0/1 image channels
Table Region (table) Detect regions in a two-column plane and expose them as 0/1 columns
Analyse Region Size Area of each Region in each file (pixels, events or coordinate area)
Generate Unmix — Spectrum Extraction Build reference spectra from single stains
Generate Unmix — Matrix Unmixing Signatures, similarity and generated unmixed channels
Features Feature Down Aggregate values per class into a feature table
Features Feature Up Map feature-table columns back to events
Features Gate2Col Turn gate membership into 0/1 columns
Compute Cluster K-means, FlowSOM, PhenoGraph, Leiden, DBSCAN, Hierarchical, PARC
Compute Dimensionality Reduction UMAP or t-SNE embeddings
Compute Data Clean PeacoQC quality control
Output Figure Scatter, histogram and image plots
Output Heatmap Clustered heatmap of feature values
Output Export Write tables and plots to disk