Differential Expression Analysis

Differential expression (DE) analysis identifies gene expression variations across different spot groups, such as clusters, lasso-defined spatial regions, or morphological zones. The analysis compares these groups to uncover key differences in gene expression. Results are dynamically linked to group selections and displayed in the Data Panel for interactive exploration.

Select Comparison Groups and Launch Analysis

In Group mode, select the clusters you want to analyze for differential expression. If those clusters belong to different groups, use Selection mode to merge them into a custom group.

Select at least two clusters and click Differential Expression Analysis. In the pop-up dialog, choose your analysis method and click Confirm to start the local computation. Two methods are available:

  • Label vs. others: Identify features differentially expressed between a specific cluster and all other clusters combined.

  • Label vs. label: Identify features that distinguish one cluster from each of the other clusters in the same group.

For large datasets, you can export a CSV file (with the CSV for differential expression analysis option enabled) and pass it to the SAW reanalyze diffExp pipeline. Your file system will open so you can choose a location to save the output.

Pass the CSV file path to SAW reanalyze diffExp pipeline through the --diffexp-csv argument to generate the analysis result. It is important to make the CSV available to both SAW and the computing environment where the pipeline is run.

View the Result and Create Gene List

Once the analysis has been finished, the result table will be show in the Data Panel. You can reorder the table by clicking the “up” and “down” arrows of log2 fold change (L2FC) or p-values of each gene and cluster to see the significant features.

Clicking on a feature name in the table will reveal the corresponding gene expression distribution on the canvas in summarized heatmap. Additionally, for multiple features, you can explore their co-expressed relationship by showing them in multi-color mode.

You can also download the results table for further analysis.

Last updated