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.
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
$ npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill single-cell-rna-qc -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install FreedomIntelligence/OpenClaw-Medical-Skills single-cell-rna-qc --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/FreedomIntelligence/OpenClaw-Medical-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/single-cell-rna-qc .claude/skills/single-cell-rna-qc && 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 "single-cell-rna-qc" agent skill from https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/single-cell-rna-qc into .claude/skills/single-cell-rna-qc/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "single-cell-rna-qc", 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/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/single-cell-rna-qcType 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 FreedomIntelligence/OpenClaw-Medical-Skills --skill single-cell-rna-qc -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install FreedomIntelligence/OpenClaw-Medical-Skills single-cell-rna-qc --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/single-cell-rna-qc .agents/skills/single-cell-rna-qc && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "single-cell-rna-qc" agent skill from https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/single-cell-rna-qc into .agents/skills/single-cell-rna-qc/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "single-cell-rna-qc", 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 FreedomIntelligence/OpenClaw-Medical-Skills --skill single-cell-rna-qc -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install FreedomIntelligence/OpenClaw-Medical-Skills single-cell-rna-qc --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/single-cell-rna-qc .cursor/skills/single-cell-rna-qc && 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 "single-cell-rna-qc" agent skill from https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/single-cell-rna-qc into .cursor/skills/single-cell-rna-qc/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "single-cell-rna-qc", 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/FreedomIntelligence/OpenClaw-Medical-Skills.git --path skills/single-cell-rna-qc--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 FreedomIntelligence/OpenClaw-Medical-Skills --skill single-cell-rna-qc -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install FreedomIntelligence/OpenClaw-Medical-Skills single-cell-rna-qc --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/single-cell-rna-qc .gemini/skills/single-cell-rna-qc && 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 "single-cell-rna-qc" agent skill from https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/single-cell-rna-qc into .gemini/skills/single-cell-rna-qc/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "single-cell-rna-qc", 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 FreedomIntelligence/OpenClaw-Medical-Skills single-cell-rna-qcInstalls 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 FreedomIntelligence/OpenClaw-Medical-Skills --skill single-cell-rna-qc -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/single-cell-rna-qc .github/skills/single-cell-rna-qc && 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 "single-cell-rna-qc" agent skill from https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/single-cell-rna-qc into .github/skills/single-cell-rna-qc/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "single-cell-rna-qc", 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 FreedomIntelligence/OpenClaw-Medical-Skills --skill single-cell-rna-qc -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install FreedomIntelligence/OpenClaw-Medical-Skills single-cell-rna-qc --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/single-cell-rna-qc .opencode/skills/single-cell-rna-qc && 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 "single-cell-rna-qc" agent skill from https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/single-cell-rna-qc into .opencode/skills/single-cell-rna-qc/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "single-cell-rna-qc", 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.
single-cell-rna-qcPerforms quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Single Cell Rna Qc is an agent skill from FreedomIntelligence/OpenClaw-Medical-Skills. Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations. Use when users request QC analysis, filtering low-quality cells, assessing data quality, or following scverse/scanpy best practices for single-cell analysis.
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/scverse_qc_guidelines.md`, `scripts/qc_analysis.py` and `scripts/qc_core.py`).
It sits in Research & Science, covering Bioinformatics. It works with Scanpy. The repository describes itself as: The largest open-source medical AI skills library for OpenClaw🦞. The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit b1f9b6e. 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 3 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3From 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.
Single Cell Rna Qc loads about 2k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 700 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); the scripts in this folder are not scanned.
The full file from FreedomIntelligence/OpenClaw-Medical-Skills at commit b1f9b6e, republished under its Apache-2.0 licence (© FreedomIntelligence). 700 words, ~2,008 tokens.
.claude/skills/single-cell-rna-qc/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.Automated QC workflow for single-cell RNA-seq data following scverse best practices.
Use when users:
Supported input formats:
.h5ad files (AnnData format from scanpy/Python workflows).h5 files (10X Genomics Cell Ranger output)Default recommendation: Use Approach 1 (complete pipeline) unless the user has specific custom requirements or explicitly requests non-standard filtering logic.
For standard QC following scverse best practices, use the convenience script scripts/qc_analysis.py:
python3 scripts/qc_analysis.py input.h5ad
# or for 10X Genomics .h5 files:
python3 scripts/qc_analysis.py raw_feature_bc_matrix.h5The script automatically detects the file format and loads it appropriately.
When to use this approach:
Requirements: anndata, scanpy, scipy, matplotlib, seaborn, numpy
Parameters:
Customize filtering thresholds and gene patterns using command-line parameters:
--output-dir - Output directory--mad-counts, --mad-genes, --mad-mt - MAD thresholds for counts/genes/MT%--mt-threshold - Hard mitochondrial % cutoff--min-cells - Gene filtering threshold--mt-pattern, --ribo-pattern, --hb-pattern - Gene name patterns for different speciesUse --help to see current default values.
Outputs:
All files are saved to <input_basename>_qc_results/ directory by default (or to the directory specified by --output-dir):
qc_metrics_before_filtering.png - Pre-filtering visualizationsqc_filtering_thresholds.png - MAD-based threshold overlaysqc_metrics_after_filtering.png - Post-filtering quality metrics<input_basename>_filtered.h5ad - Clean, filtered dataset ready for downstream analysis<input_basename>_with_qc.h5ad - Original data with QC annotations preservedIf copying outputs to /mnt/user-data/outputs/ for user access, copy individual files (not the entire directory) so users can preview them directly as Claude.ai artifacts.
The script performs the following steps:
For custom analysis workflows or non-standard requirements, use the modular utility functions from scripts/qc_core.py and scripts/qc_plotting.py:
# Run from scripts/ directory, or add scripts/ to sys.path if needed
import anndata as ad
from qc_core import calculate_qc_metrics, detect_outliers_mad, filter_cells
from qc_plotting import plot_qc_distributions # Only if visualization needed
adata = ad.read_h5ad('input.h5ad')
calculate_qc_metrics(adata, inplace=True)
# ... custom analysis logic hereWhen to use this approach:
Available utility functions:
From qc_core.py (core QC operations):
calculate_qc_metrics(adata, mt_pattern, ribo_pattern, hb_pattern, inplace=True) - Calculate QC metrics and annotate adatadetect_outliers_mad(adata, metric, n_mads, verbose=True) - MAD-based outlier detection, returns boolean maskapply_hard_threshold(adata, metric, threshold, operator='>', verbose=True) - Apply hard cutoffs, returns boolean maskfilter_cells(adata, mask, inplace=False) - Apply boolean mask to filter cellsfilter_genes(adata, min_cells=20, min_counts=None, inplace=True) - Filter genes by detectionprint_qc_summary(adata, label='') - Print summary statisticsFrom qc_plotting.py (visualization):
plot_qc_distributions(adata, output_path, title) - Generate comprehensive QC plotsplot_filtering_thresholds(adata, outlier_masks, thresholds, output_path) - Visualize filtering thresholdsplot_qc_after_filtering(adata, output_path) - Generate post-filtering plotsExample custom workflows:
Example 1: Only calculate metrics and visualize, don't filter yet
adata = ad.read_h5ad('input.h5ad')
calculate_qc_metrics(adata, inplace=True)
plot_qc_distributions(adata, 'qc_before.png', title='Initial QC')
print_qc_summary(adata, label='Before filtering')Example 2: Apply only MT% filtering, keep other metrics permissive
adata = ad.read_h5ad('input.h5ad')
calculate_qc_metrics(adata, inplace=True)
# Only filter high MT% cells
high_mt = apply_hard_threshold(adata, 'pct_counts_mt', 10, operator='>')
adata_filtered = filter_cells(adata, ~high_mt)
adata_filtered.write('filtered.h5ad')Example 3: Different thresholds for different subsets
adata = ad.read_h5ad('input.h5ad')
calculate_qc_metrics(adata, inplace=True)
# Apply type-specific QC (assumes cell_type metadata exists)
neurons = adata.obs['cell_type'] == 'neuron'
other_cells = ~neurons
# Neurons tolerate higher MT%, other cells use stricter threshold
neuron_qc = apply_hard_threshold(adata[neurons], 'pct_counts_mt', 15, operator='>')
other_qc = apply_hard_threshold(adata[other_cells], 'pct_counts_mt', 8, operator='>')For detailed QC methodology, parameter rationale, and troubleshooting guidance, see references/scverse_qc_guidelines.md. This reference provides:
Load this reference when users need deeper understanding of the methodology or when troubleshooting QC issues.
Typical downstream analysis steps:
© FreedomIntelligence, 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 5 other files (scripts, references) in skills/single-cell-rna-qc of FreedomIntelligence/OpenClaw-Medical-Skills.
Open the folder on GitHubat commit b1f9b6e
We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in FreedomIntelligence/OpenClaw-Medical-Skills, which our catalogue first saw on October 9, 2026.
Single Cell Rna Qc 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 |
|---|---|---|---|---|---|---|
| Single Cell Rna Qc this skillFreedomIntelligence/OpenClaw-Medical-Skills | 3.1k | 2 repos | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Scanpy Single-Cell Analysisdavila7/claude-code-templates | 33k | 15 repos | ~2.8k | Automated safety check: Pass | MIT | |
| Single Cell Rna AnalysisPKU-YuanGroup/OpenAI4S | 622 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Anndatadavila7/claude-code-templates | 33k | 11 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Cellxgene Censusdavila7/claude-code-templates | 33k | 11 repos | ~3.8k | Automated safety check: Pass | MIT | |
| Bulk RnaseqK-Dense-AI/scientific-agent-skills | 48k | 1 repos | ~4.2k | 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.
PKU-YuanGroup/OpenAI4S
Reproducible Scanpy workflow for human or mouse 10x scRNA-seq and snRNA-seq count matrices: single-sample descriptive QC, clustering and annotation, or comparative donor-aware pseudobulk DE and Milo…
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…
davila7/claude-code-templates
Query CZ CELLxGENE Census (61M+ cells). An agent skill from davila7/claude-code-templates.
K-Dense-AI/scientific-agent-skills
Prepares bulk RNA-seq FASTQ, Salmon, STAR or featureCounts output for gene-level differential expression.
K-Dense-AI/scientific-agent-skills
Performs pathway and gene-set enrichment analysis on gene lists or ranked gene data and interprets the results.
FreedomIntelligence/OpenClaw-Medical-Skills
Select and apply numerical differentiation schemes for PDE/ODE discretization.
FreedomIntelligence/OpenClaw-Medical-Skills
FHIR API development guide for building healthcare endpoints.
FreedomIntelligence/OpenClaw-Medical-Skills
Select and configure linear solvers for systems Ax=b in dense and sparse problems.
FreedomIntelligence/OpenClaw-Medical-Skills
Query 14+ biomedical databases for drug repurposing, target discovery, clinical trials, and literature research.
FreedomIntelligence/OpenClaw-Medical-Skills
Plan and evaluate mesh generation for numerical simulations.
FreedomIntelligence/OpenClaw-Medical-Skills
Select and configure nonlinear solvers for f(x)=0 or min F(x).
Works with
Categories
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations. Single Cell Rna Qc is an agent skill from FreedomIntelligence/OpenClaw-Medical-Skills.h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Single Cell Rna Qc fits situations like: users request QC analysis; filtering low-quality cells; assessing data quality; following scverse/scanpy best practices for single-cell analysis.
Run `npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill single-cell-rna-qc -a claude-code`. Or copy the skill folder (skills/single-cell-rna-qc in FreedomIntelligence/OpenClaw-Medical-Skills) into .claude/skills/single-cell-rna-qc in your project. Claude Code loads it when a task matches its description.
Run `npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill single-cell-rna-qc -a codex`. Or copy the skill folder (skills/single-cell-rna-qc in FreedomIntelligence/OpenClaw-Medical-Skills) into .agents/skills/single-cell-rna-qc 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 FreedomIntelligence/OpenClaw-Medical-Skills --skill single-cell-rna-qc -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/single-cell-rna-qc, .gemini/skills/single-cell-rna-qc, .github/skills/single-cell-rna-qc and .opencode/skills/single-cell-rna-qc in your project.
Going by SKILL.md and its folder, Single Cell Rna Qc needs Python for the scripts in its folder and the command-line tools its instructions call (python3). 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Single Cell Rna Qc is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 8k 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 1.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Single Cell Rna Qc: Scanpy Single-Cell Analysis (davila7/claude-code-templates, 33k stars), Single Cell Rna Analysis (PKU-YuanGroup/OpenAI4S, 622 stars), Anndata (davila7/claude-code-templates, 33k stars) and Cellxgene Census (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
FreedomIntelligence (a GitHub organization) maintains it in FreedomIntelligence/OpenClaw-Medical-Skills, which has 3,053 GitHub stars. The repository holds 279 skills in this directory. The repository was last updated on July 21, 2026.
Source: FreedomIntelligence/OpenClaw-Medical-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.