Appearance
Tutorial: Group Comparison Workflow
Core Feature
This tutorial covers features available in all MATISSE Explorer deployments.
This tutorial demonstrates how to compare different cell populations or tissue regions using MATISSE Explorer's visualization and subsetting tools.
Scenario
You want to:
- Define two groups for comparison (e.g., tumor vs. stroma)
- Compare gene expression between groups
- Visualize differences using scatter plots
- Export group assignments for statistical analysis
Prerequisites
- Completed the Basic Exploration Workflow
- Understanding of Lasso Selection
- Familiarity with Scatter Plot
Step 1: Define Comparison Groups
Identify Groups to Compare
Common comparisons:
- Tumor region vs. Normal tissue
- Different anatomical regions
- Treatment vs. Control areas
- Different cell type populations
Example: Tumor vs. Stroma
We'll compare cells in the tumor region to cells in the surrounding stroma.
Step 2: Select Group 1 (Tumor)
Navigate to Tumor Region
- Open Explorer in Spatial view
- Identify the tumor region visually
- You might color by a marker to help identify (e.g., tumor marker)
Draw Lasso Around Tumor
- Switch to Selection mode
- Draw a lasso around the tumor region
- Note the count: "X items selected"
Save as Subset Condition
- Click Items dropdown
- Select Add selection to subset
- The condition is named automatically (e.g., "Lasso Selection (Spatial)")
Rename for Clarity
In the Subset:
- Find the lasso condition
- Note or rename to "Tumor Region" for reference
Step 3: Select Group 2 (Stroma)
Clear Current Selection
- Clear the current subset to see all cells
- Return to Selection mode
Draw Lasso Around Stroma
- Draw a lasso around the stromal region
- Note the count of selected cells
Save as Second Condition
- Add this selection to subset
- Now you have two lasso conditions available
Step 4: Compare Using Color Mapping
View Tumor Cells Only
- Apply subset: Tumor Region only
- Color by a gene of interest
- Observe expression pattern and range
View Stroma Cells Only
- Change subset: Stroma Region only
- Keep same gene coloring
- Compare expression pattern to tumor
Note Observations
- Is expression higher in tumor or stroma?
- Are there spatial gradients?
- Do specific sub-regions show different patterns?
Step 5: Compare Using Scatter Plot
Configure Scatter Plot
- Open the Plot extension
- Set X axis: Gene A expression
- Set Y axis: Gene B expression
- Apply: No subset (show all cells)
Color by Region
Create a visual comparison:
- If you have a region feature, color by it
- Or use cell type coloring
- Observe where different populations fall
Alternative: Subset Toggle
- Apply Tumor Region subset
- View scatter plot
- Switch to Stroma Region subset
- Compare the distributions
Step 6: Create Signatures for Comparison
Tumor Signature Genes
- Create Signature: "Tumor Markers"
- Add genes associated with tumor cells
- Save the signature
Stroma Signature Genes
- Create Signature: "Stroma Markers"
- Add genes associated with stromal cells
- Save the signature
Compare Signatures
- Open Scatter Plot
- X axis: Tumor Markers (Max or Sum)
- Y axis: Stroma Markers (Max or Sum)
- View the separation of populations
Step 7: Quantify Differences
Export Group 1 Data
- Apply Tumor Region subset
- Export gene expression or features
- Save as "tumor_cells.csv"
Export Group 2 Data
- Apply Stroma Region subset
- Export same data
- Save as "stroma_cells.csv"
Statistical Analysis
Use exported data for:
- Differential expression analysis
- Statistical tests (t-test, Wilcoxon)
- Visualization in R/Python
Step 8: Document Comparison
Save Subsets
- Save "Tumor Region" as a saved subset
- Save "Stroma Region" as a saved subset
- Easily return to these views
Screenshot Key Findings
- Capture comparison visualizations
- Save scatter plots showing separation
- Document expression patterns
Record Methods
Note your analysis steps:
- How regions were defined
- Which genes/markers used
- Subset configurations
- Statistical methods applied
Advanced Comparison Techniques
Three-Way Comparison
Compare multiple regions:
Subset (OR):
├── Group 1: Tumor Core
├── Group 2: Tumor Margin
└── Group 3: Normal TissueCell Type Within Region
Nested comparison:
- Subset: Tumor Region
- Then subdivide by cell type
- Compare T cells in tumor vs. stroma
Using UMAP for Comparison
- Switch to UMAP projection
- Color by region assignment
- See if regions cluster separately
- Draw lasso in UMAP space for transcriptional groups
Summary
In this tutorial, you learned to:
| Step | Technique |
|---|---|
| 1-3 | Define comparison groups with lasso |
| 4 | Compare using color mapping |
| 5 | Compare using scatter plots |
| 6 | Create signatures |
| 7 | Export for quantitative analysis |
| 8 | Document your comparison |
Next Steps
- Export data for statistical testing in R/Python
- Create publication-quality figures
- Apply similar workflow to other comparisons
- Explore Subset for complex group definitions