troubleshoot
Skill45 starsChanged 4 months agoMITView on GitHub
Diagnose and resolve common issues in spatial transcriptomics analysis. Use when analysis fails, produces unexpected results, or user encounters errors. Triggers: "error", "failed", "not working", "issue", "problem", "help", "unexpected result", "debug", "fix", "wrong output".
- Installs packages
16 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- nexus-a1/claude-skillstheir own version, first seen Sep 27, 2026
- KUNDURUHIMANEESHREDDY/sabertheir own version, first seen Sep 21, 2026
- braincandy-parallel/tamarindos-workflow-kittheir own version, first seen Sep 18, 2026
- managelm/claude-extensiontheir own version, first seen Sep 17, 2026
- DeL-TaiseiOzaki/claude-code-orchestratheir own version, first seen Sep 10, 2026
Used with
Projects with it also use setup and frontend-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillsetup
Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".
Also in 3 projects that use this
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 3 projects that use this
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- microsoft/vscode★ 196ksame name
- DeL-TaiseiOzaki/claude-code-orchestra★ 198same name
- jamie8johnson/cqs★ 16same name
- pantheon-org/tekhne★ 10same name
- managelm/claude-extension★ 9same name
- naman10parikh/agentgrid★ 9same name
- nicolasestrem/antigravity-gemini-skills★ 8same name
- AndrewTtofi/spine★ 2same name
- jnurre64/sandbox-pal-action★ 2same name
- kt057/claude-code-boilerplate★ 1same name
6 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- cell-compositionSkill
- cell-dynamicsSkill
- cell-interactionSkill
- differential-analysisSkill
- functional-analysisSkill
- publication-readySkill
- spatial-analysisSkill
- spatial-patternsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 103
Check for batch effects
- Distinctive: line 108
All spots have same composition
- Distinctive: line 126
Verify cell type annotations are correct
- Distinctive: line 127
Check species setting matches data
- Very specific: line 228
Use CPU fallback: use_gpu=False
- Distinctive: line 269
When reporting issues, include:
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Troubleshooting Guide
Overview
This skill helps diagnose and resolve common issues in ChatSpatial analysis.
Quick Diagnosis Tree
Q: What type of problem?
│
├─ Analysis fails with error
│ └─ See: Error Messages section
│
├─ Analysis runs but results look wrong
│ └─ See: Result Validation section
│
├─ Performance issues (slow/memory)
│ └─ See: Performance section
│
└─ Dependency/installation problems
└─ See: Environment sectionError Messages
Data Loading Errors
| Error | Cause | Solution |
FileNotFoundError | Path incorrect | Verify file path exists |
KeyError: 'spatial' | No spatial coordinates | Check data format, use correct loader |
ValueError: sparse matrix | Format mismatch | Convert to compatible format |
MemoryError | File too large | Use chunked loading or subsample |
Diagnostic steps:
1. Verify file exists: ls -la <path>
2. Check file size: du -h <path>
3. Try reading header only to test formatPreprocessing Errors
| Error | Cause | Solution |
No highly variable genes | Filtering too strict | Lower min_mean/max_mean thresholds |
Negative values after log | Data not normalized | Use raw counts first |
Empty AnnData after QC | QC too strict | Relax min_genes/min_cells |
Method-Specific Errors
Deconvolution
| Error | Cause | Solution |
No shared genes | Reference mismatch | Check gene naming (symbols vs IDs) |
RCTD failed | R/rpy2 issue | Verify R installation, check rpy2 |
Cell2location GPU error | CUDA issue | Use CPU mode, check GPU availability |
Reference cell types missing | Bad annotation column | Verify cell_type_key exists |
Cell Communication
| Error | Cause | Solution |
CellChat R error | R dependency | Install CellChat in R first |
No interactions found | Stringent filtering | Lower p-value threshold |
Species database not found | Wrong species config | Use "human" or "mouse" |
Trajectory/Velocity
| Error | Cause | Solution |
No spliced/unspliced | Missing layers | Process with velocyto first |
Root cell not found | Bad root specification | Use valid cell barcode or cluster |
Disconnected graph | Poor connectivity | Increase n_neighbors |
Result Validation
Unexpected Clustering Results
Symptoms:
- Too few/many clusters
- Clusters don't match histology
- Known cell types not separated
Solutions:
- Adjust resolution parameter (higher = more clusters)
- Try different clustering methods
- Verify preprocessing quality
- Check for batch effects
Poor Deconvolution Results
Symptoms:
- All spots have same composition
- Proportions don't sum to 1
- Expected cell types missing
Diagnostic checklist:
- Reference and spatial data normalized consistently?
- Sufficient gene overlap (>2000 genes)?
- Reference cell types well-defined?
- Spatial data quality passed QC?
Meaningless Communication Results
Symptoms:
- Random interactions without biological sense
- Same interactions everywhere
- Missing expected pathways
Solutions:
- Verify cell type annotations are correct
- Check species setting matches data
- Try different communication database
- Increase minimum expression threshold
Performance Issues
Memory Problems
Symptoms:
MemoryError- System becomes unresponsive
- Kernel crashes
Solutions by data size:
| Data Size | Strategy |
| <50k cells | Should work, check other processes |
| 50k-100k | Close other applications, increase swap |
| 100k-500k | Use chunked processing, subsample |
| >500k | Requires HPC or cloud resources |
Specific techniques:
1. Subsample for exploration:
sc.pp.subsample(adata, n_obs=50000)
2. Use sparse matrices:
adata.X = scipy.sparse.csr_matrix(adata.X)
3. Process in chunks:
Use batch processing for large datasetsSlow Execution
Common causes and solutions:
| Bottleneck | Solution |
| Neighbor computation | Reduce n_neighbors, use approximate methods |
| Clustering | Use faster method (leiden > louvain) |
| Deconvolution | Use FlashDeconv instead of Cell2location |
| Visualization | Reduce point size, subsample for plotting |
Environment Issues
Python Dependencies
Check installation:
python -c "import scanpy; print(scanpy.__version__)"
python -c "import squidpy; print(squidpy.__version__)"Common fixes:
pip install --upgrade scanpy squidpy
pip install scvi-tools # For deep learning methodsR Dependencies (rpy2)
Check R availability:
import rpy2.robjects as ro
print(ro.r('R.version.string'))Install R packages:
# In R console
install.packages("Seurat")
BiocManager::install("RCTD")
devtools::install_github("sqjin/CellChat")Common rpy2 issues:
1. R_HOME not set:
export R_HOME=/path/to/R
2. Library path issues:
Check .libPaths() in R
3. Version mismatch:
Ensure rpy2 matches R versionGPU/CUDA Issues
Check GPU availability:
import torch
print(torch.cuda.is_available())
print(torch.cuda.device_count())Common fixes:
- Update CUDA drivers
- Install correct torch version for CUDA
- Use CPU fallback:
use_gpu=False
Data Format Issues
AnnData Structure Problems
Verify structure:
print(adata)
print(adata.obs.columns.tolist())
print(adata.var.columns.tolist())
print(list(adata.obsm.keys()))
print(list(adata.layers.keys()))Common fixes:
| Issue | Solution |
| Missing raw counts | adata.raw = adata.copy() before normalization |
| Wrong X matrix | Check if log-transformed when needed |
| Missing obsm keys | Re-run PCA/UMAP computation |
Coordinate System Issues
Spatial coordinates check:
if 'spatial' in adata.obsm:
print(adata.obsm['spatial'].shape)
print(adata.obsm['spatial'][:5])Common problems:
- Coordinates in wrong units
- Flipped/rotated coordinates
- Missing spatial key
Getting Help
Information to Provide
When reporting issues, include:
- Error message: Full traceback
- Data description: n_cells, n_genes, platform
- Command used: Exact parameters
- Environment: Python version, package versions
Quick Diagnostic Commands
# Dataset summary
print(f"Cells: {adata.n_obs}, Genes: {adata.n_vars}")
print(f"Spatial: {'spatial' in adata.obsm}")
print(f"Layers: {list(adata.layers.keys())}")
print(f"Obs columns: {adata.obs.columns.tolist()[:10]}")Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

