Scarf Single Cell
NygenAnalytics/scarf
Analyze single-cell data with core Scarf, the out-of-core Zarr DataStore library with immutable artifacts and pipeline runs.
Load when integrating multi-sample scRNA-seq with Harmony, scVI, scANVI, BBKNN, Scanorama, SIMBA, or supported R-backed methods to remove batch effects.
$ npx skills add TianGzlab/OmicsClaw --skill sc-batch-integration -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install TianGzlab/OmicsClaw sc-batch-integration --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/singlecell/scrna/sc-batch-integration .claude/skills/sc-batch-integration && 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 "sc-batch-integration" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/singlecell/scrna/sc-batch-integration into .claude/skills/sc-batch-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sc-batch-integration", 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/singlecell/scrna/sc-batch-integrationType 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 sc-batch-integration -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install TianGzlab/OmicsClaw sc-batch-integration --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/singlecell/scrna/sc-batch-integration .agents/skills/sc-batch-integration && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sc-batch-integration" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/singlecell/scrna/sc-batch-integration into .agents/skills/sc-batch-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sc-batch-integration", 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 sc-batch-integration -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install TianGzlab/OmicsClaw sc-batch-integration --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/singlecell/scrna/sc-batch-integration .cursor/skills/sc-batch-integration && 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 "sc-batch-integration" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/singlecell/scrna/sc-batch-integration into .cursor/skills/sc-batch-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sc-batch-integration", 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/singlecell/scrna/sc-batch-integration--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 sc-batch-integration -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install TianGzlab/OmicsClaw sc-batch-integration --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/singlecell/scrna/sc-batch-integration .gemini/skills/sc-batch-integration && 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 "sc-batch-integration" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/singlecell/scrna/sc-batch-integration into .gemini/skills/sc-batch-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sc-batch-integration", 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 sc-batch-integrationInstalls 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 sc-batch-integration -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/singlecell/scrna/sc-batch-integration .github/skills/sc-batch-integration && 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 "sc-batch-integration" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/singlecell/scrna/sc-batch-integration into .github/skills/sc-batch-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sc-batch-integration", 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 sc-batch-integration -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 sc-batch-integration --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/singlecell/scrna/sc-batch-integration .opencode/skills/sc-batch-integration && 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 "sc-batch-integration" agent skill from https://github.com/TianGzlab/OmicsClaw/tree/main/skills/singlecell/scrna/sc-batch-integration into .opencode/skills/sc-batch-integration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sc-batch-integration", 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.
sc-batch-integrationLoad when integrating multi-sample scRNA-seq with Harmony, scVI, scANVI, BBKNN, Scanorama, SIMBA, or supported R-backed methods to remove batch effects.
Sc Batch Integration is an agent skill from TianGzlab/OmicsClaw. Load when integrating multi-sample scRNA-seq with Harmony, scVI, scANVI, BBKNN, Scanorama, SIMBA, or supported R-backed methods to remove batch effects. Skip when the data is one sample (no batch effect to integrate); upstream merging only (use sc-multi-count).
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including reference files (for example `_api.py`, `examples/example_step.py` and `references/methodology.md`).
It sits in Research & Science, covering Bioinformatics. It works with UMAP. 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.
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), 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.
Sc Batch Integration loads about 2.1k tokens when it runs, and up to ~4.5k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 841 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). 841 words, ~2,062 tokens.
.claude/skills/sc-batch-integration/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.Correct batch effects in merged, normalised scRNA data. The nine methods are Harmony (default), scVI, scANVI, BBKNN, Scanorama, SIMBA, fastMNN, Seurat CCA and Seurat RPCA. Check batch/condition confounding before correction: a batch fully confounded with the biological contrast cannot be separated statistically.
Start a notebook step with python skills/_sdk/notebook/run.py new integration.
Inside it, use integration = load_skill("sc-batch-integration"), then
adata = integration.integrate(adata, method="harmony", batch_key="batch").
This returns the corrected representation; choose neighbours, UMAP and
clustering separately with sc-clustering. After BBKNN, call
load_skill("sc-clustering").cluster(adata, use_existing_graph=True) to keep
the corrected graph. The default clustering call rebuilds it and loses BBKNN's
batch correction.
The CLI additionally builds neighbours/UMAP and writes the legacy report.
See examples/example_step.py for a runnable PBMC example.
Input is AnnData with a batch column and normalised X. Keep counts in
layers['counts'] for scVI/scANVI and R integration. Existing PCA is optional.
The API returns AnnData and separate table/Figure helpers; it writes no output
directory. R methods retain the existing H5AD bridge and need zellkonverter.
CLI outputs are processed.h5ad, report.md, result.json and
reproducibility/{commands.sh,requirements.txt}. Non-empty tables are written
to tables/{integration_summary,batch_sizes,cluster_sizes,batch_mixing_matrix,integration_metrics}.csv.
Label-dependent tables and plots are optional. Plot data, including UMAP
coordinates, live under figure_data/, not tables/umap.csv.
See references/output_contract.md for the conditional inventory.
result.json.data.requested_method, executed_method, fallback_used and
fallback_reason record scANVI's fallback to scVI when labels are absent.
Supply --labels-key to choose an existing label column.tables/integration_metrics.csv omits unavailable LISI/ASW values; this is
not evidence of good or bad integration. Label-free input has no label ASW._api.py:303: run_info(adata) contains a small JSON summary. The retained Seurat bridge
also returns old R UMAP coordinates under the private
uns['_omicsclaw_legacy_integration_umap'] key. The CLI moves these to
obsm['X_umap'] and removes the private key; the API adds no UMAP to obsm._api.py:39: obsm['X_harmony'] uses existing PCA only when the requested PCA size would
exceed the data's rank. Normal-sized input still recomputes PCA._api.py:182: SIMBA uses a temporary working directory; do not run it concurrently in
threads. Its returned AnnData can be a cell-subset copy.python skills/singlecell/scrna/sc-batch-integration/sc_integrate.py --demo --output /tmp/sc_integrate_demo
python skills/singlecell/scrna/sc-batch-integration/sc_integrate.py --input merged.h5ad --output results/integration --method harmony --batch-key sample_id --seed 0
python skills/singlecell/scrna/sc-batch-integration/sc_integrate.py --input labelled.h5ad --output results/scanvi --method scanvi --labels-key cell_type --no-gpu --n-epochs 200--seed controls Harmony, Scanorama and scVI/scANVI and the Python CLI UMAP.
It does not control SIMBA or the retained R integration bridge.
<!-- api:begin generated from _api.py; regenerate with run.py api <skill dir> --write -->
integrate(adata, *, method: str='harmony', batch_key: str='batch', harmony_theta: float=2.0, n_pcs: int=50, n_latent: int=30, n_epochs: int | None=None, use_gpu: bool=True, labels_key: str | None=None, bbknn_neighbors_within_batch: int=3, scanorama_knn: int=20, integration_features: int=2000, integration_pcs: int=30, simba_n_top_genes: int=3000, simba_n_components: int=15, simba_k: int=15, simba_num_workers: int=4, random_state: int=0)Integrate batches and return AnnData with a corrected representation.
harmony reads log-normalised expression and batch labels, writes
obsm['X_harmony'] and preserves cells and genes. It recomputes PCA on
ordinary inputs; when n_pcs exceeds the small input's rank, it reuses
an existing PCA or computes the largest valid PCA. No neighbours or UMAP
are computed. Diagnostics are available through :func:run_info.
:param method: harmony (default), scvi, scanvi, bbknn,
scanorama, simba, fastmnn, seurat_cca or seurat_rpca.
BBKNN writes its batch-balanced neighbour graph, not a new embedding.
:param batch_key: Batch column in obs; default batch.
:param harmony_theta: Harmony diversity penalty; default 2.0.
:param n_pcs: Requested Harmony components; default 50.
:param n_latent: scVI/scANVI latent dimensions; default 30.
:param n_epochs: Training epochs; None uses 400 for scVI, 200 for scANVI.
:param use_gpu: Request a GPU for scVI/scANVI; default True, CPU if unavailable.
:param labels_key: scANVI labels; None searches cell_type/leiden/louvain/
seurat_clusters. With no labels it falls back to scVI and records why.
:param bbknn_neighbors_within_batch: BBKNN neighbours per batch; default 3.
:param scanorama_knn: Scanorama matching neighbours; default 20.
:param integration_features: R integration variable genes; default 2000.
:param integration_pcs: R integration components; default 30.
:param simba_n_top_genes: SIMBA variable genes; default 3000.
:param simba_n_components: SIMBA inter-batch components; default 15.
:param simba_k: SIMBA inter-batch neighbours; default 15.
:param simba_num_workers: SIMBA training workers; default 4.
:param random_state: Backend seed; default 0.
Passed to Harmony, Scanorama and scVI/scANVI. SIMBA and the retained
R bridge do not expose this seed. SIMBA runs in a temporary working
directory; do not call it concurrently from multiple threads.
:returns: AnnData, modified in place for Python methods except SIMBA.
SIMBA and R methods can return a cell-subset copy. scVI/scANVI require
raw counts in layers['counts']; other Python methods use X.
:raises ValueError: The method, batch column or PCA dimensions are invalid.
:raises ImportError: The chosen optional backend is unavailable.
run_info(adata, *, keep: bool=True) -> dictReturn integration diagnostics; set keep=False to remove them from uns.
integration_metrics(adata, *, batch_key: str='batch', label_key: str | None=None, embedding_key: str='X_harmony') -> pd.DataFrameReturn LISI and ASW diagnostics; unavailable metrics are logged and omitted.
LISI values are also attached to obs["ilisi"] and, with labels,
obs["clisi"]. The corrected embedding and batch column must exist.
batch_mixing_table(adata, *, batch_key: str='batch', label_key: str | None=None) -> pd.DataFrameReturn each label's fraction of cells from each batch; empty without labels.
batch_sizes_table(adata, *, batch_key: str='batch') -> pd.DataFrameReturn batch labels and cell counts, largest first.
batch_sizes_figure(adata, *, batch_key: str='batch')Return a Figure of cell counts per batch; the caller owns saving and closing it.
<!-- api:end -->
sc-multi-count merges samples; sc-clustering clusters the returned
representation; sc-cell-annotation supplies labels. CLI tuning details are
in references/parameters.md.
Python packages this skill's script needs. They are not installed for you — check before a long run.
anndata, bbknn, harmonypy, matplotlib, numpy, pandas, phate, scanorama, scanpy, scikit-learn, scipy, scvi-tools, seaborn, simba-bio, torch
© 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 11 other files (references) in skills/singlecell/scrna/sc-batch-integration of TianGzlab/OmicsClaw.
Open the folder on GitHubat commit 90a3bec
Sc Batch Integration 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 |
|---|---|---|---|---|---|---|
| Sc Batch Integration this skillTianGzlab/OmicsClaw | 161 | — | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| Scarf Single CellNygenAnalytics/scarf | 126 | — | ~5.6k | Automated safety check: Pass | BSD-3-Clause | |
| ScanpyK-Dense-AI/scientific-agent-skills | 48k | 1 repos | ~5.1k | Automated safety check: Pass | BSD-3-Clause | |
| Spatial S2 Normalize ClusterQING1105/ezST | 101 | — | ~428 | Automated safety check: Pass | MIT | |
| Umap Tsne Analysisaipoch/medical-research-skills | 2k | — | ~2.7k | Automated safety check: Pass | MIT | |
| Bio Single Cell ClusteringGPTomics/bioSkills | 1.2k | 1 repos | ~3.5k | Automated safety check: Pass | MIT |
NygenAnalytics/scarf
Analyze single-cell data with core Scarf, the out-of-core Zarr DataStore library with immutable artifacts and pipeline runs.
K-Dense-AI/scientific-agent-skills
Performs Scanpy single-cell RNA-seq QC, normalization, HVG selection, PCA/UMAP/t-SNE, clustering, exploratory marker ranking, pseudobulk preparation, visualization, and Seurat or…
QING1105/ezST
Stage 2 of the spatial transcriptomics workflow — normalize 10x Visium data and cluster spatial spots.
aipoch/medical-research-skills
A skill your agent uses when performing sample-level dimensionality reduction and visualization on abundance or OTU-style matrices with a companion group file, generating UMAP and/or t-SNE…
GPTomics/bioSkills
Dimensionality reduction and graph-based clustering for single-cell RNA-seq with Scanpy (Python) and Seurat (R).
GPTomics/bioSkills
Plots spatial transcriptomics expression, clusters, and annotations on tissue using Squidpy and Scanpy.
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 integrating multi-sample scRNA-seq with Harmony, scVI, scANVI, BBKNN, Scanorama, SIMBA, or supported R-backed methods to remove batch effects. Sc Batch Integration is an agent skill from TianGzlab/OmicsClaw. Load when integrating multi-sample scRNA-seq with Harmony, scVI, scANVI, BBKNN, Scanorama, SIMBA, or supported R-backed methods to remove batch effects.
Sc Batch Integration fits situations like: tasks that involve Bioinformatics.
Run `npx skills add TianGzlab/OmicsClaw --skill sc-batch-integration -a claude-code`. Or copy the skill folder (skills/singlecell/scrna/sc-batch-integration in TianGzlab/OmicsClaw) into .claude/skills/sc-batch-integration in your project. Claude Code loads it when a task matches its description.
Run `npx skills add TianGzlab/OmicsClaw --skill sc-batch-integration -a codex`. Or copy the skill folder (skills/singlecell/scrna/sc-batch-integration in TianGzlab/OmicsClaw) into .agents/skills/sc-batch-integration 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 sc-batch-integration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sc-batch-integration, .gemini/skills/sc-batch-integration, .github/skills/sc-batch-integration and .opencode/skills/sc-batch-integration in your project.
Going by SKILL.md and its folder, Sc Batch Integration needs Python 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.
Sc Batch Integration 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 2.1k tokens (SKILL.md is roughly 8.2k 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 2.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Sc Batch Integration: Scarf Single Cell (NygenAnalytics/scarf, 126 stars), Scanpy (K-Dense-AI/scientific-agent-skills, 48k stars), Spatial S2 Normalize Cluster (QING1105/ezST, 101 stars) and Umap Tsne Analysis (aipoch/medical-research-skills, 2k 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.