← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-workflows-imc-pipeline / references / usage-guide.md

IMC Pipeline Usage Guide

Overview

This workflow processes imaging mass cytometry data from raw acquisitions through cell segmentation, phenotyping, and spatial analysis.

Prerequisites

pip install steinbock cellpose squidpy scanpy
BiocManager::install(c('imcRtools', 'cytomapper'))

Quick Start

Tell your AI agent what you want to do: - "Run the IMC pipeline on my MCD files" - "Segment cells and cluster by marker expression" - "Analyze spatial interactions in my tissue images"

Example Prompts

Basic Analysis

"I have IMC data, run the full pipeline from segmentation to clustering"

"Process my MCD files and quantify single-cell marker expression"

Segmentation

"Use Cellpose to segment cells in my IMC images"

"Segment my tissue images using nuclear and membrane markers"

Spatial Analysis

"Run neighborhood enrichment analysis on my cell types"

"Find spatially co-localized cell populations in my tumor samples"

When to Use This Pipeline

Required Inputs

  1. Raw images - MCD files or OME-TIFF stacks
  2. Panel file - Channel to marker mapping
  3. Sample metadata - Conditions, patient IDs

Panel File Format

channel,name,full_name,keep,segment
1,DNA1,Ir191,1,1
2,DNA2,Ir193,1,1
3,CD45,CD45,1,0
4,CD3,CD3,1,0
5,CD8,CD8,1,0

Pipeline Steps

1. Data Preprocessing

2. Cell Segmentation

3. Single-cell Quantification

4. Clustering & Phenotyping

5. Spatial Analysis

6. Differential Analysis

Segmentation Parameters

Tissue Type Method Diameter Notes
FFPE Cellpose 15-20 Smaller nuclei
Frozen Cellpose 20-30 Larger cells
Dense tumor Mesmer Auto Better separation
Sparse Cellpose 25-35 Larger diameter

Quality Metrics

Segmentation Quality

Expression Quality

Common Issues

Poor segmentation

Hot pixel artifacts

No spatial signal

Batch effects

Output Files

File Description
masks/ Cell segmentation masks
intensities/ Single-cell marker expression
imc_analysis.h5ad Complete analysis object
cluster_proportions.csv Per-image frequencies of each Leiden cluster
umap_celltypes.png Cluster visualization
spatial_celltypes.png Spatial cell maps
neighborhood_enrichment.png Spatial interactions

Tips

References