Appearance
Tutorial: Analysis Workflow
Core Feature
This tutorial covers features available in all MATISSE Explorer deployments.
This tutorial demonstrates how to use advanced filtering and analysis features to investigate specific biological questions in your spatial transcriptomics data.
Scenario
You want to:
- Find cells that meet multiple criteria
- Use variable sets to analyze pathway activity
- Combine spatial and transcriptional filters
- Save complex filter configurations for reuse
Prerequisites
- Completed the Basic Exploration Workflow
- Familiarity with Filter
Step 1: Define Your Question
Example Question
"Find T cells in the tumor region that have high immune checkpoint expression."
This requires:
- Cell type filter (T cells)
- Spatial filter (tumor region)
- Expression filter (checkpoint genes)
Step 2: Create a Variable Set
First, create a variable set for immune checkpoint genes.
Open Variable Sets
- In Explorer sidebar, click Variable Sets tab
- Click Create Variable Set
Define the Gene Set
- Name: "Immune Checkpoints"
- Description: "Key immune checkpoint molecules"
- Variables:
PDCD1 CTLA4 LAG3 HAVCR2 TIGIT - Click Create
Verify Matches
- View the created variable set
- Check how many genes matched your data
- Note any unmatched genes
Step 3: Define Tumor Region
Use lasso selection to define the tumor region.
Switch to Spatial View
- Ensure you're in Spatial projection
- Color by a relevant marker to identify tumor region
- Navigate to see the full tissue
Draw Tumor Region
- Click Selection mode
- Draw a lasso around the tumor region
- Note the selected cell count
Save to Filter
- Click Items dropdown
- Select Add selection to filter
- The lasso condition is saved
Step 4: Build the Complex Filter
Now combine all criteria in the Filter.
Open Filter
- Open the Filter Panel
- You should see your lasso condition already added
Add Cell Type Condition
- Click Add Condition in the same group
- Select Column type
- Choose cell type column
- Select "T cell" category
- Ensure operator is AND
Add Variable Set Condition
- Click Add Condition
- Select Variable Set type
- Choose "Immune Checkpoints"
- Set combination method to Max
- Set comparison: > 1.0
Review the Filter
Your filter should now read:
(Tumor Region Lasso) AND (cell_type = T cell) AND (Immune Checkpoints Max > 1.0)Step 5: Apply and Analyze
Apply the Filter
- Click Apply
- View the filtered population
- Note the final cell count
Explore the Results
- Color by individual checkpoint genes
- Compare expression levels
- Examine spatial distribution within the tumor
View in UMAP
- Switch to UMAP projection
- See where these cells fall in transcriptional space
- Check if they cluster together
Step 6: Refine the Analysis
Adjust Thresholds
If results are too few or too many:
- Edit the variable set condition
- Adjust the threshold (e.g., > 0.5 or > 2.0)
- Re-apply and check results
Add Additional Conditions
To further refine:
- Add more expression criteria
- Adjust spatial region
- Change combination method
Step 7: Save Your Filter
Save as Preset
- Click Save Preset
- Name: "Tumor T cells - High Checkpoint"
- Click Save
Verify Preset
- Clear the filter
- Load the preset
- Confirm filter is restored
Step 8: Export Results
Export Filtered Data
- With filter active, export annotation data
- Download cell IDs and annotations
- Use in downstream analysis
Document Analysis
Record your analysis:
- Filter configuration
- Variable set contents
- Result counts
- Screenshots
Advanced Techniques
Using OR Logic
Find cells matching any of several criteria:
Group 1 (OR):
├── High PDCD1 (> 2.0)
├── High CTLA4 (> 2.0)
└── High LAG3 (> 2.0)Combining Regions
Compare cells across multiple regions:
Filter (OR):
├── Group 1: Tumor Region AND T cell
└── Group 2: Stroma Region AND T cellNested Logic
Complex queries with groups:
Filter (AND):
├── Group 1 (OR):
│ ├── T cell
│ └── NK cell
└── Group 2 (AND):
├── Tumor Region
└── High CheckpointSummary
In this tutorial, you learned to:
| Step | Skill |
|---|---|
| 1-2 | Create variable sets for gene groups |
| 3 | Define spatial regions with lasso |
| 4 | Build multi-condition filters |
| 5-6 | Apply, analyze, and refine results |
| 7-8 | Save presets and export data |
Next Steps
- Group Comparison Workflow - Compare populations
- Variable Sets - More on gene groups
- Filter Presets - Managing presets