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

Flow Cytometry Pipeline Usage Guide

Overview

This workflow processes flow cytometry data from raw FCS files through compensation, transformation, clustering or gating, and differential analysis.

Prerequisites

BiocManager::install(c('CATALYST', 'flowCore', 'diffcyt'))
install.packages(c('FlowSOM', 'uwot'))

Quick Start

Tell your AI agent what you want to do: - "Run the cytometry pipeline on my FCS files" - "Cluster my CyTOF data and find differential populations" - "Analyze my immunophenotyping experiment"

Example Prompts

Basic Analysis

"I have FCS files from a CyTOF experiment, run the full pipeline"

"Cluster my flow cytometry data with FlowSOM"

Differential Analysis

"Compare immune populations between treatment and control groups"

"Find differentially abundant cell types in my flow data"

Customization

"Use manual gating instead of clustering for my data"

"Run differential state analysis on my T cell markers"

When to Use This Pipeline

Required Inputs

  1. FCS files - One per sample
  2. Panel file - Channel to marker mapping with marker classes
  3. Sample metadata - Conditions, patient IDs, batches

Panel File Format

fcs_colname,antigen,marker_class
FSC-A,FSC,none
SSC-A,SSC,none
CD45,CD45,type
CD3,CD3,type
CD4,CD4,type
Ki67,Ki67,state
IFNg,IFNg,state

Marker classes: - type: Lineage markers for clustering/phenotyping - state: Functional markers for differential state analysis - none: Scatter or non-analyzed channels

Pipeline Steps

1. Data Loading

2. Compensation

3. Transformation

4. QC

5. Clustering or Gating

6. Dimensionality Reduction

7. Differential Analysis

Analysis Approaches

Approach 1: Unsupervised Clustering

Best for: High-dimensional panels, discovery

  1. Cluster on lineage markers
  2. Annotate clusters based on expression
  3. Test differential abundance

Approach 2: Manual Gating

Best for: Well-defined populations, lower dimensions

  1. Gate populations hierarchically
  2. Export gated populations
  3. Compare frequencies

Cofactor Guidelines

Platform Typical Cofactor
Flow cytometry 150-500
CyTOF 5
Spectral flow ~150

Statistical Considerations

Differential Abundance

Differential State

Common Issues

Compensation problems

Poor clustering

No significant results

Output Files

File Description
cytometry_analysis.rds Complete analysis object
da_results.csv Differential abundance results
umap_clusters.png Cluster visualization (runDR embedding)
heatmap.png Cluster x marker expression heatmap
da_heatmap.png Differential abundance heatmap
abundances.png Population frequencies per sample

Tips

References