Scanpy Single-Cell Analysis
davila7/claude-code-templates
Walks through single-cell RNA-seq analysis with Scanpy: loading .h5ad and 10X data, QC, normalization, PCA and UMAP, Leiden clustering, marker genes and cell type annotation.
Load when converting spatial transcriptomics raw FASTQ pairs through ST-Pipeline into a rawcounts.h5ad ready for spatial-preprocess.
$ npx skills add TianGzlab/OmicsClaw --skill spatial-raw-processing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install TianGzlab/OmicsClaw spatial-raw-processing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/TianGzlab/OmicsClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/spatial/spatial-raw-processing .claude/skills/spatial-raw-processing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "spatial-raw-processing" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/spatial/spatial-raw-processing into .claude/skills/spatial-raw-processing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spatial-raw-processing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/TianGzlab/OmicsClaw/tree/main/skills/spatial/spatial-raw-processingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add TianGzlab/OmicsClaw --skill spatial-raw-processing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install TianGzlab/OmicsClaw spatial-raw-processing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TianGzlab/OmicsClaw.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/spatial/spatial-raw-processing .agents/skills/spatial-raw-processing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "spatial-raw-processing" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/spatial/spatial-raw-processing into .agents/skills/spatial-raw-processing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spatial-raw-processing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add TianGzlab/OmicsClaw --skill spatial-raw-processing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install TianGzlab/OmicsClaw spatial-raw-processing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TianGzlab/OmicsClaw.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/spatial/spatial-raw-processing .cursor/skills/spatial-raw-processing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "spatial-raw-processing" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/spatial/spatial-raw-processing into .cursor/skills/spatial-raw-processing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spatial-raw-processing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/TianGzlab/OmicsClaw.git --path skills/spatial/spatial-raw-processing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add TianGzlab/OmicsClaw --skill spatial-raw-processing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install TianGzlab/OmicsClaw spatial-raw-processing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TianGzlab/OmicsClaw.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/spatial/spatial-raw-processing .gemini/skills/spatial-raw-processing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "spatial-raw-processing" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/spatial/spatial-raw-processing into .gemini/skills/spatial-raw-processing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spatial-raw-processing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install TianGzlab/OmicsClaw spatial-raw-processingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add TianGzlab/OmicsClaw --skill spatial-raw-processing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/TianGzlab/OmicsClaw.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/spatial/spatial-raw-processing .github/skills/spatial-raw-processing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "spatial-raw-processing" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/spatial/spatial-raw-processing into .github/skills/spatial-raw-processing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spatial-raw-processing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add TianGzlab/OmicsClaw --skill spatial-raw-processing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install TianGzlab/OmicsClaw spatial-raw-processing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TianGzlab/OmicsClaw.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/spatial/spatial-raw-processing .opencode/skills/spatial-raw-processing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "spatial-raw-processing" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/spatial/spatial-raw-processing into .opencode/skills/spatial-raw-processing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spatial-raw-processing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
spatial-raw-processingLoad when converting spatial transcriptomics raw FASTQ pairs through ST-Pipeline into a rawcounts.h5ad ready for spatial-preprocess.
Spatial Raw Processing is an agent skill from TianGzlab/OmicsClaw. Load when converting spatial transcriptomics raw FASTQ pairs through ST-Pipeline into a rawcounts.h5ad ready for spatial-preprocess. Skip when input is already a count-matrix AnnData (use spatial-preprocess); non-spatial bulk / scRNA FASTQ (use bulkrna-read-qc).
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including reference files (for example `examples/example_step.py`, `r_visualization/README.md` and `references/methodology.md`).
It sits in Research & Science, covering Bioinformatics. It works with AnnData. The repository describes itself as: Conversational & memory-enabled AI research partner for multi-omics analysis. CLI + Desktop App (installers in Releases). From biological idea to full research paper. The licence is Apache-2.0.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 90a3bec. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python and R), which the agent can run.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Spatial Raw Processing loads about 1.7k tokens when it runs, and up to ~4.8k if it reads all its reference files. Until then it costs about 72 tokens; SKILL.md has 530 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from TianGzlab/OmicsClaw at commit 90a3bec, republished under its Apache-2.0 licence (© TianGzlab). 530 words, ~1,748 tokens.
.claude/skills/spatial-raw-processing/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.This is CLI_ONLY: ST-Pipeline consumes FASTQ files, barcode coordinates and reference indexes. It is not an in-memory analysis function.
from skills._sdk.notebook import run_cli
output = run_cli("spatial-raw-processing", "--input", "data/run_bundle.json",
inputs=["data/run_bundle.json", "data/R1.fastq.gz",
"data/R2.fastq.gz", "data/barcodes.tsv"])Record the reference index version in the module README. The executable example uses synthetic upstream outputs and does not run ST-Pipeline.
The user has paired-end spatial-transcriptomics FASTQ files (read1 =
spatial barcode + UMI, read2 = cDNA) plus a STAR genome index, and
wants the standard ST-Pipeline run that produces a raw_counts.h5ad
with one row per spatial spot. Single backend: st_pipeline (calls
run_stpipeline from skills/spatial/_lib/stpipeline_adapter.py).
After this skill, chain to spatial-preprocess for QC + normalisation.
For non-spatial scRNA FASTQ use sc-fastq-qc. For bulk RNA-seq read
QC use bulkrna-read-qc.
Inputs
file, directory.fastq, .fq, .json, .yaml, .ymlpaired layoutpaired-fastqOutputs
tables/gene_qc.csvtables/raw_gene_qc.csvtables/raw_processing_run_summary.csvtables/raw_processing_spatial_points.csvtables/raw_spot_qc.csvtables/raw_top_genes.csvtables/run_summary.csvtables/saturation_curve.csvtables/spatial_coordinates.csvtables/spot_qc.csvtables/stage_summary.csvtables/top_genes.csvfigures/raw_detected_genes_spatial.pngfigures/raw_spot_qc_histograms.pngfigures/raw_top_genes_barplot.pngfigures/raw_total_counts_spatial.pngfigures/st_pipeline_saturation_curve.pngfigures/st_pipeline_stage_attrition.pngomicsclaw_stpipeline_run.jsonraw_counts.h5adst_pipeline.stderr.txtst_pipeline.stdout.txtreport.mdresult.jsonsaves_h5ad) — adds obs: barcode, x_array, y_array; obsm: spatial--input)._apply_effective_defaults fills missing parameter values (threads, trimming, UMI ranges, etc.)._validate_real_run_bundle: check read1 / read2 / ids / ref-map exist and are well-typed; reject duplicate read1=read2; verify FASTQ extension.run_stpipeline(...) which shells out to ST-Pipeline (requires the stpipeline binary on PATH or --stpipeline-repo + --bin-path).X = raw_counts, layers["counts"], raw = raw_counts_snapshot.raw_counts.h5ad and result.json. Print "next: spatial-preprocess on raw_counts.h5ad".SystemExit(1). spatial_raw_processing.py catches DataError / DependencyError / ParameterError / ProcessingError and re-raises as SystemExit(1). The originating raises live in _validate_real_run_bundle — it raises ParameterError(f"Missing required parameter: {key}") for missing read1/read2/ids; raises DataError(...) for non-existent files; raises DataError("Resolved read1/read2 inputs must be FASTQ files.") for non-FASTQ extensions; raises ParameterError for read1==read2; raises DataError for missing / wrong-type STAR index dir; raises DataError only when --ref-annotation was provided but the path is missing or not a file (the param itself is optional — omitting it doesn't raise).--read1 / --read2 / --ids / --ref-map are all required for real runs (not enforced by argparse required=True, validated later). Missing any → ParameterError. Demo mode skips this validation entirely.raw_counts.h5ad (spatial_raw_processing.py). It's not configurable — the contract is consumed by spatial-preprocess. Multiple runs to the same --output will overwrite.tables/spot_qc.csv and figures/raw_total_counts_spatial.png describe the count matrix; upstream stage and saturation plots depend on available pipeline metrics.spatial_raw_processing.py calls create_demo_upstream_outputs(...) to fabricate a synthetic raw_counts.h5ad. Useful for plumbing checks; does NOT exercise the FASTQ → matrix code path.--platform is a metadata label only. _build_parser documents it as "Label recorded in outputs"; ST-Pipeline doesn't branch on it. Common values: visium, visium_hd, slideseq, custom strings.# Demo (synthetic raw_counts.h5ad — does NOT run ST-Pipeline)
python skills/spatial/spatial-raw-processing/spatial_raw_processing.py --demo --output /tmp/spatial_raw_demo
# Real run with explicit args
python skills/spatial/spatial-raw-processing/spatial_raw_processing.py \
--read1 sample_R1.fastq.gz --read2 sample_R2.fastq.gz \
--ids barcodes.tsv \
--ref-map /refs/star_index_human \
--ref-annotation /refs/genes.gtf \
--exp-name visium_001 --platform visium \
--threads 16 \
--output results/
# Real run from bundle JSON
python skills/spatial/spatial-raw-processing/spatial_raw_processing.py \
--input run_bundle.json --output results/
# Slide-seq with custom UMI range
python skills/spatial/spatial-raw-processing/spatial_raw_processing.py \
--read1 R1.fq.gz --read2 R2.fq.gz --ids barcodes.tsv \
--ref-map /refs/star_index --platform slideseq \
--umi-start-position 1 --umi-end-position 8 \
--output results/references/parameters.md — every CLI flag, ST-Pipeline option mappingreferences/methodology.md — when ST-Pipeline wins vs Space Ranger; barcode-ID formatreferences/output_contract.md — raw_counts.h5ad schemaspatial-preprocess (downstream — required next step; consumes raw_counts.h5ad), bulkrna-read-qc / sc-fastq-qc (parallel — non-spatial FASTQ paths)Python packages this skill's script needs. They are not installed for you — check before a long run.
anndata, matplotlib, numpy, pandas, PyYAML, scipy, seaborn
© TianGzlab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 8 other files (references) in skills/spatial/spatial-raw-processing of TianGzlab/OmicsClaw.
Open the folder on GitHubat commit 90a3bec
Spatial Raw Processing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Spatial Raw Processing this skillTianGzlab/OmicsClaw | 161 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Scanpy Single-Cell Analysisdavila7/claude-code-templates | 32k | 16 repos | ~2.8k | Automated safety check: Pass | MIT | |
| ScgptJimLiu/science-skills | 227 | 4 repos | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| PyDESeq2 Differential Expressiondavila7/claude-code-templates | 32k | 12 repos | ~4k | Automated safety check: Pass | MIT | |
| Anndatadavila7/claude-code-templates | 32k | 12 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Single-Cell Initial AnalysisLigphiDonk/Oh-my--paper | 738 | 1 repos | ~1.4k | Automated safety check: Pass | MIT |
davila7/claude-code-templates
Walks through single-cell RNA-seq analysis with Scanpy: loading .h5ad and 10X data, QC, normalization, PCA and UMAP, Leiden clustering, marker genes and cell type annotation.
JimLiu/science-skills
Embed and annotate single-cell expression data with scGPT, a foundation model for single-cell biology.
davila7/claude-code-templates
Runs differential gene expression analysis on bulk RNA-seq counts with PyDESeq2: design formulas, Wald tests, FDR correction and volcano or MA plots.
davila7/claude-code-templates
This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling…
LigphiDonk/Oh-my--paper
Runs a seven-step quality-control and exploration pipeline on scRNA-seq, CyTOF or flow cytometry data and writes a plain-language report of what it found.
harrisongzhang/TheVirtualBiotech
Single-cell RNA-seq data preparation and quality control pipeline.
TianGzlab/OmicsClaw
Load when comparing gene expression between two conditions in bulk RNA-seq count data.
TianGzlab/OmicsClaw
Load when the user needs Deterministic fixed-period 24-hour single-component cosinor OLS rhythm analysis for a bulk RNA time-course CSV.
TianGzlab/OmicsClaw
Load when checking a bulk RNA-seq count matrix for library-size outliers, gene detection rates, and sample-sample correlation before DE.
TianGzlab/OmicsClaw
Load when checking raw single-cell FASTQ read quality (Phred / GC / adapter / length) before counting.
TianGzlab/OmicsClaw
Load when removing low-quality cells and lowly-detected genes from a single-cell AnnData using QC-derived thresholds or tissue presets.
TianGzlab/OmicsClaw
Load when ranking cluster-level marker genes from a clustered single-cell AnnData via Scanpy Wilcoxon / t-test / logreg or COSG specificity.
Works with
Categories
Load when converting spatial transcriptomics raw FASTQ pairs through ST-Pipeline into a rawcounts.h5ad ready for spatial-preprocess. Spatial Raw Processing is an agent skill from TianGzlab/OmicsClaw.h5ad ready for spatial-preprocess.
Spatial Raw Processing fits situations like: tasks that involve Bioinformatics.
Run `npx skills add TianGzlab/OmicsClaw --skill spatial-raw-processing -a claude-code`. Or copy the skill folder (skills/spatial/spatial-raw-processing in TianGzlab/OmicsClaw) into .claude/skills/spatial-raw-processing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add TianGzlab/OmicsClaw --skill spatial-raw-processing -a codex`. Or copy the skill folder (skills/spatial/spatial-raw-processing in TianGzlab/OmicsClaw) into .agents/skills/spatial-raw-processing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TianGzlab/OmicsClaw --skill spatial-raw-processing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/spatial-raw-processing, .gemini/skills/spatial-raw-processing, .github/skills/spatial-raw-processing and .opencode/skills/spatial-raw-processing in your project.
Going by SKILL.md and its folder, Spatial Raw Processing needs Python and R for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Spatial Raw Processing is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Spatial Raw Processing: Scanpy Single-Cell Analysis (davila7/claude-code-templates, 32k stars), Scgpt (JimLiu/science-skills, 227 stars), PyDESeq2 Differential Expression (davila7/claude-code-templates, 32k stars) and Anndata (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
TianGzlab (a GitHub organization) maintains it in TianGzlab/OmicsClaw, which has 161 GitHub stars. The repository holds 88 skills in this directory. The repository was last updated on October 7, 2026.
Source: TianGzlab/OmicsClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.