From single-cell-spatial-general
Process 10x Genomics single-cell data (scRNA-seq, ATAC, VDJ) using CellRanger on FGCZ infrastructure. Supports cell hashing (HTO), on-chip multiplexing (OCM), CITE-seq, and complex multi-modal experiments. This skill should be used when running cellranger count, cellranger multi, cellranger-atac, or cellranger-arc, especially for demultiplexing workflows or HTO+VDJ combinations not supported by SUSHI.
How this skill is triggered — by the user, by Claude, or both
Slash command
/single-cell-spatial-general:cellranger-fgczThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Process 10x Genomics single-cell sequencing data using CellRanger pipelines on FGCZ compute infrastructure. This skill provides:
assets/example_configs/README.mdassets/example_configs/gex_cite_hto_human.csvassets/example_configs/gex_hto_human.csvassets/example_configs/gex_hto_vdj_mouse.csvassets/example_configs/gex_ocm_human.csvassets/example_configs/gex_simple_human.csvassets/example_configs/hto_bcr_only_mouse.csvassets/feature_references/README.mdassets/feature_references/cite_seq_example.csvassets/feature_references/cite_seq_with_hto.csvassets/feature_references/totalseq_c_hto_4plex.csvassets/feature_references/totalseq_c_hto_8plex.csvreferences/feature_reference_guide.mdreferences/fgcz_references.mdreferences/multi_config_reference.mdscripts/sbatch_cellranger.shscripts/validate_config.pyProcess 10x Genomics single-cell sequencing data using CellRanger pipelines on FGCZ compute infrastructure. This skill provides:
Use this skill for:
What do you need to process?
├─ Single GEX library, no multiplexing
│ └─ Use: cellranger count (simple workflow)
│
├─ GEX + HTO demultiplexing
│ └─ Use: cellranger multi with [feature] and [samples] sections
│
├─ GEX + HTO + VDJ (TCR/BCR)
│ └─ Use: cellranger multi with [gene-expression], [feature], [vdj], [samples]
│
├─ HTO + VDJ without GEX (special case)
│ └─ Use: cellranger multi with [feature], [vdj], [samples] only
│ └─ Note: Not supported by SUSHI - run manually
│
├─ On-chip multiplexing (GEM-X 4-plex)
│ └─ Use: cellranger multi with ocm_barcode_ids (no feature reference needed)
│
├─ GEX + ATAC (multiome)
│ └─ Use: cellranger-arc count
│
└─ Pure ATAC-seq
└─ Use: cellranger-atac count
For single libraries without multiplexing:
/usr/local/ngseq/bin/cellranger count \
--id=sample1 \
--transcriptome=/srv/GT/reference/Homo_sapiens/GENCODE/GRCh38.p13/Annotation/Release_42-2023-01-30/Genes/genes_10XGEX_SC_Mt_rRNA-Mt_tRNA-protein_coding-rRNA-tRNA_Index/ \
--fastqs=/srv/GT/analysis/p12345/fastqs/ \
--sample=sample1 \
--localcores=16 \
--localmem=128
For multiplexing, VDJ, or feature barcoding, use cellranger multi:
Step 1: Create multi config CSV
assets/example_configs/ for working examplesreferences/multi_config_reference.md for complete format specsStep 2: Validate config
python scripts/validate_config.py config.csv
Step 3: Run CellRanger
/usr/local/ngseq/bin/cellranger multi --id=sample1 --csv=config.csv
Common multi workflows:
assets/example_configs/gex_hto_human.csvassets/example_configs/gex_hto_vdj_mouse.csvassets/example_configs/hto_bcr_only_mouse.csvassets/example_configs/gex_ocm_human.csvassets/example_configs/gex_cite_hto_human.csvFor HTO or antibody capture experiments, create a feature reference CSV:
Option A: Use existing template
cp assets/feature_references/totalseq_c_hto_4plex.csv /srv/GT/analysis/p12345/references/feature_reference.csv
Option B: Create custom reference
See references/feature_reference_guide.md for complete instructions.
Critical: Always verify barcode sequences match your actual reagents!
Validate:
python scripts/validate_config.py --feature-ref feature_reference.csv
For long-running jobs, submit to SLURM cluster:
Step 1: Copy and modify template
cp scripts/sbatch_cellranger.sh /srv/GT/analysis/p12345/
nano /srv/GT/analysis/p12345/sbatch_cellranger.sh
# Update: PROJECT_ID, SAMPLE_ID, CONFIG_FILE paths
Step 2: Create log directory
mkdir -p /srv/GT/analysis/p12345/logs
Step 3: Submit job
sbatch /srv/GT/analysis/p12345/sbatch_cellranger.sh
Step 4: Monitor
squeue -u $USER
# Check logs: tail -f /srv/GT/analysis/p12345/logs/cellranger_JOBID.out
# Always load R module first
module load Dev/R/4.5.0
# CellRanger available without module
/usr/local/ngseq/bin/cellranger --version
| Path | Purpose | Access |
|---|---|---|
/srv/GT/analysis/pXXXXX/ | Working directory | Read/Write |
/srv/gstore/projects/pXXXXX/ | Long-term storage | Read-only (use g-req) |
/srv/GT/reference/ | Reference genomes | Read-only |
Standard analysis layout:
/srv/GT/analysis/pXXXXX/
├── fastqs/ # Input FASTQs
├── references/ # Feature references
├── configs/ # Multi config CSVs
├── cellranger_outputs/ # Results
└── logs/ # SBATCH logs
Human (GRCh38.p13):
/srv/GT/reference/Homo_sapiens/GENCODE/GRCh38.p13/Annotation/Release_42-2023-01-30/Genes/genes_10XGEX_SC_Mt_rRNA-Mt_tRNA-protein_coding-rRNA-tRNA_Index//srv/GT/reference/Homo_sapiens/GENCODE/GRCh38.p13/Annotation/Release_42-2023-01-30/Genes/genes_10XVDJ_IndexMouse (GRCm39):
/srv/GT/reference/Mus_musculus/GENCODE/GRCm39/Annotation/Release_M37-2025-07-03/Genes/genes_10XGEX_SC_Mt_rRNA-Mt_tRNA-protein_coding-rRNA-tRNA_Index/srv/GT/reference/Mus_musculus/GENCODE/GRCm39/Annotation/Release_M37-2025-07-03/Genes/genes_10XVDJ_IndexComplete list: See references/fgcz_references.md
Copy results to gstore:
# After CellRanger completes
g-req -w copy /srv/GT/analysis/p12345/cellranger_outputs/sample1/outs/ /srv/gstore/projects/p12345/CellRanger_Results/
# Check status
gstore-list
The multi config CSV is the #1 source of errors. Common mistakes:
Wrong feature type for HTO
Antibody Capture (old)Multiplexing Capture (Cell Ranger ≥ 6.0)FASTQ path doesn't exist
/srv/gstore/ directly/srv/GT/analysis/ firstfastq_id doesn't match FASTQ filenames
GEX_sample1_S1_L001_R1_001.fastq.gzfastq_id must be: GEX_sample1Wrong demux column name
hashtag_idsocm_barcode_idsMissing [samples] section
Complete format reference: references/multi_config_reference.md
1. Create feature reference:
# feature_reference.csv
id,name,read,pattern,sequence,feature_type
HTO1,Sample1,R2,5PNNNNNNNNNN(BC),GCACCTCATTCCTAC,Multiplexing Capture
HTO2,Sample2,R2,5PNNNNNNNNNN(BC),TCAGTATTCTGGGAC,Multiplexing Capture
HTO3,Sample3,R2,5PNNNNNNNNNN(BC),GGTTGTCATAAGAAC,Multiplexing Capture
HTO4,Sample4,R2,5PNNNNNNNNNN(BC),ACTCTCACCCATTCC,Multiplexing Capture
2. Create multi config:
[gene-expression]
reference,/srv/GT/reference/Homo_sapiens/GENCODE/GRCh38.p13/Annotation/Release_42-2023-01-30/Genes/genes_10XGEX_SC_Mt_rRNA-Mt_tRNA-protein_coding-rRNA-tRNA_Index/
create-bam,true
[feature]
reference,/srv/GT/analysis/p12345/references/feature_reference.csv
[libraries]
fastq_id,fastqs,feature_types
Pool1_GEX,/srv/GT/analysis/p12345/fastqs/GEX,Gene Expression
Pool1_HTO,/srv/GT/analysis/p12345/fastqs/HTO,Multiplexing Capture
[samples]
sample_id,hashtag_ids
Sample1,HTO1
Sample2,HTO2
Sample3,HTO3
Sample4,HTO4
3. Validate and run:
python scripts/validate_config.py config.csv --feature-ref feature_reference.csv
cellranger multi --id=pool1 --csv=config.csv
Multi config:
[gene-expression]
reference,/srv/GT/reference/Homo_sapiens/GENCODE/GRCh38.p13/Annotation/Release_42-2023-01-30/Genes/genes_10XGEX_SC_Mt_rRNA-Mt_tRNA-protein_coding-rRNA-tRNA_Index/
create-bam,false
[libraries]
fastq_id,fastqs,feature_types
pool1_GEX,/srv/GT/analysis/p12345/fastqs/pool1,Gene Expression
[samples]
sample_id,ocm_barcode_ids
Control,OB1
Treatment_1,OB2
Treatment_2,OB3
Treatment_3,OB4
Note: No feature reference needed for OCM!
python scripts/validate_config.py config.csv
Checks:
python scripts/validate_config.py --feature-ref feature_reference.csv
Checks:
python scripts/validate_config.py config.csv --feature-ref feature_reference.csv
| Directory | Contents | Purpose |
|---|---|---|
references/ | Multi config reference, FGCZ paths, feature reference guide | Detailed documentation - load when creating configs |
assets/example_configs/ | Working config examples for common workflows | Copy and modify for your project |
assets/feature_references/ | Feature reference templates (HTO, CITE-seq) | Ready-to-use barcode files |
scripts/ | validate_config.py, sbatch_cellranger.sh | Validation and job submission tools |
Load detailed documentation:
references/multi_config_reference.mdreferences/fgcz_references.mdreferences/feature_reference_guide.mdCopy working examples:
# Copy config template
cp assets/example_configs/gex_hto_human.csv /srv/GT/analysis/p12345/config.csv
# Copy feature reference
cp assets/feature_references/totalseq_c_hto_4plex.csv /srv/GT/analysis/p12345/feature_reference.csv
Error: "Invalid header"
Error: "Reference not found"
ls /srv/GT/reference/...references/fgcz_references.md for correct pathsError: "FASTQ path not found"
ls /srv/GT/analysis/p12345/fastqs//srv/GT/analysis/ firstError: "Feature barcode not found"
Error: "No cells detected"
--expect-cells parameterJob killed / out of memory
--mem-per-cpu in SBATCH scriptreferences/multi_config_reference.mdreferences/fgcz_references.mdreferences/feature_reference_guide.md# Load modules
module load Dev/R/4.5.0
# CellRanger count (simple)
/usr/local/ngseq/bin/cellranger count --id=sample1 --transcriptome=REF --fastqs=FASTQS
# CellRanger multi (demux, VDJ, etc.)
/usr/local/ngseq/bin/cellranger multi --id=sample1 --csv=config.csv
# Validate
python scripts/validate_config.py config.csv --feature-ref feature_reference.csv
# Submit job
sbatch scripts/sbatch_cellranger.sh
# Monitor
squeue -u $USER
# Copy to gstore
g-req -w copy /srv/GT/analysis/p12345/outputs/ /srv/gstore/projects/p12345/
# Human GEX
/srv/GT/reference/Homo_sapiens/GENCODE/GRCh38.p13/Annotation/Release_42-2023-01-30/Genes/genes_10XGEX_SC_Mt_rRNA-Mt_tRNA-protein_coding-rRNA-tRNA_Index/
# Human VDJ
/srv/GT/reference/Homo_sapiens/GENCODE/GRCh38.p13/Annotation/Release_42-2023-01-30/Genes/genes_10XVDJ_Index
# Mouse GEX
/srv/GT/reference/Mus_musculus/GENCODE/GRCm39/Annotation/Release_M37-2025-07-03/Genes/genes_10XGEX_SC_Mt_rRNA-Mt_tRNA-protein_coding-rRNA-tRNA_Index
# Mouse VDJ
/srv/GT/reference/Mus_musculus/GENCODE/GRCm39/Annotation/Release_M37-2025-07-03/Genes/genes_10XVDJ_Index
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub cpanse/skills --plugin single-cell-spatial-general