Agent skill
STAgent
Install this agent skill to your Project
npx add-skill https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/spatial-transcriptomics-analysis/STAgent
SKILL.md
name: spatial-transcriptomics-agent description: Spatial analyst keywords:
- spatial
- h5ad
- H&E
- clustering
- SVG measurable_outcome: For each sample, deliver ≥1 spatial domain map + SVG list + narrative interpretation within 30 minutes. license: MIT metadata: author: LiuLab version: "1.0.0" compatibility:
- system: Python 3.9+ allowed-tools:
- run_shell_command
- read_file
- web_fetch
Spatial Transcriptomics Agent
Run STAgent to align histology images with expression matrices, perform clustering/SVG detection, and generate literature-backed spatial reports.
When to Use
- Analysis of Visium/Xenium or similar ST datasets.
- Visual reasoning over spatial plots, H&E images, or cluster maps.
- Automatically generating Scanpy/Squidpy code for new ST workflows.
- Hypothesis generation about spatial gene expression patterns.
Core Capabilities
- Dynamic code generation: Create/execute Python scripts for QC, clustering, SVG detection.
- Visual reasoning: Interpret spatial plots to identify tissue domains and cell neighborhoods.
- Literature retrieval: Pull references that contextualize findings.
- Report generation: Deliver publication-style writeups with plots and SVG tables.
Workflow
- Env setup:
conda env create -f environment.yml && conda activate STAgent. - Data prep: Supply
expression_path(.h5ad/Spaceranger) +image_path(H&E/IF) and metadata. - Task selection: Choose tasks such as
cluster,find_svg,annotate_domains, or composite instructions; runpython repo/src/main.py --data_path ... --task "...". - Execute & interpret: Let STAgent generate scripts, run analyses, and interpret results with literature references.
- Package outputs: Save UMAP/spatial plots, SVG tables, QC details, and summary markdown.
Example Usage
User: "Analyze this breast cancer ST dataset, find immune infiltrates."
Agent: loads data, runs `sqidpy.gr.spatial_neighbors`, computes Leiden clusters, plots marker genes (CD3D, CD19), and summarizes which clusters map to tumor core vs. stromal/immune zones.
Guardrails
- Document coordinate systems and any scaling between imaging and expression coordinates.
- Avoid definitive cell-type labels without supporting markers.
- Capture QC parameters for reproducibility.
References
- Source repo: https://github.com/LiuLab-Bioelectronics-Harvard/STAgent
- See local
README.mdfor detailed instructions.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
vcf-annotator
Annotate VCF variants with VEP, ClinVar, gnomAD frequencies, and ancestry-aware context. Generates prioritised variant reports.
chemist-analyst
Analyzes events through chemistry lens using molecular structure, reaction mechanisms, thermodynamics, kinetics, and analytical techniques (spectroscopy, chromatography, mass spectrometry). Provides insights on chemical processes, material properties, reaction pathways, synthesis, and analytical methods. Use when: Chemical reactions, material analysis, synthesis planning, process optimization, environmental chemistry. Evaluates: Molecular structure, reaction mechanisms, yield, selectivity, safety, environmental impact.
bio-alignment-io
Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO. Supports Clustal, PHYLIP, Stockholm, FASTA, Nexus, and other alignment formats for phylogenetics and conservation analysis. Use when reading, writing, or converting alignment file formats.
sleep-analyzer
分析睡眠数据、识别睡眠模式、评估睡眠质量,并提供个性化睡眠改善建议。支持与其他健康数据的关联分析。
metabolomics-workbench-database
Access NIH Metabolomics Workbench via REST API (4,200+ studies). Query metabolites, RefMet nomenclature, MS/NMR data, m/z searches, study metadata, for metabolomics and biomarker discovery.
bio-hi-c-analysis-matrix-operations
Balance, normalize, and transform Hi-C contact matrices using cooler and cooltools. Apply iterative correction (ICE), compute expected values, and generate observed/expected matrices. Use when normalizing or transforming Hi-C matrices.
Didn't find tool you were looking for?