Agent skill

Scatac Preprocessing

by TianGzlab in TianGzlab/OmicsClaw

Load when preprocessing a single-cell ATAC peak × cell AnnData via Signac-style TF-IDF + LSI + Leiden, producing a clustered UMAP-ready object.

MITAuto-check passedResearch & Science

Install Scatac Preprocessing

skills CLI
$ npx skills add TianGzlab/OmicsClaw --skill scatac-preprocessing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TianGzlab/OmicsClaw scatac-preprocessing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TianGzlab/OmicsClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/singlecell/scatac/scatac-preprocessing .claude/skills/scatac-preprocessing && rm -rf skills-src

Use ~/.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/

Facts

Skill name
scatac-preprocessing
GitHub stars
161
Token cost
~1.4k tokens
SKILL.md length
436 words
Files
8 (incl. references)
Skills in repo
95
Repo updated
First seen
Licence
MIT

At a glance

Load when preprocessing a single-cell ATAC peak × cell AnnData via Signac-style TF-IDF + LSI + Leiden, producing a clustered UMAP-ready object.

  • Works in 7 steps: Load the peak × cell input via the… → Validate .X is present, non-empty,… → Compute per-cell n_peaks_by_counts /… → …
  • Tasks that involve Bioinformatics
  • SKILL.md covers When to use, Inputs & Outputs, Flow and Gotchas, plus 2 more sections
  • Runs Python scripts from its folder; calls python

What it does

Scatac Preprocessing is an agent skill from TianGzlab/OmicsClaw. Load when preprocessing a single-cell ATAC peak × cell AnnData via Signac-style TF-IDF + LSI + Leiden, producing a clustered UMAP-ready object. Skip when input is fragments; BAM (peak calling not implemented here); scRNA preprocessing (use sc-preprocessing).

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `references/methodology.md`, `references/output_contract.md` and `references/parameters.md`).

It sits in Research & Science, covering Bioinformatics. It works with UMAP and 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 MIT.

When your agent uses it

  • Tasks that involve Bioinformatics

Example prompts

  • “/scatac-preprocessing”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Load the peak × cell input via the shared smart_load (AnnData / 10x H5 / loom / CSV / 10x dir).
  2. Validate .X is present, non-empty, non-negative.
  3. Compute per-cell n_peaks_by_counts / total_counts; filter cells by --min-peaks and peaks by --min-cells.
  4. Retain the globally most accessible peaks up to --n-top-peaks.
  5. Run Signac-style TF-IDF (--tfidf-scale-factor); truncated-SVD LSI to --n-lsi components.
  6. Build neighbour graph (--n-neighbors), UMAP, Leiden (--leiden-resolution).
  7. Save processed.h5ad, tables, figures, report.md, result.json.

What it can do on your machine

Read from SKILL.md and the folder at commit 6fbd79f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Scatac Preprocessing loads about 1.4k tokens when it runs, and up to ~4.3k if it reads all its reference files. Until then it costs about 70 tokens; SKILL.md has 436 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.3k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from TianGzlab/OmicsClaw at commit 6fbd79f, republished under its MIT licence (© TianGzlab). 436 words, ~1,389 tokens.

Download SKILL.mdSave it as .claude/skills/scatac-preprocessing/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
scatac-preprocessing
description
Load when preprocessing a single-cell ATAC peak × cell AnnData via Signac-style TF-IDF + LSI + Leiden, producing a clustered UMAP-ready object. Skip when input is fragments; BAM (peak calling not implemented here); scRNA preprocessing (use sc-preprocessing).
version
0.2.0
author
OmicsClaw
license
MIT
emoji
🧬
tags
singlecell, scatac, atac, preprocessing, tfidf, lsi, clustering, leiden
requires
anndata, matplotlib, numpy, pandas, phate, scanpy, scikit-learn, scipy, seaborn

scatac-preprocessing

When to use

The user has a peak × cell scATAC AnnData (raw-count-like accessibility matrix in .X) and wants the standard "filter → TF-IDF → LSI → graph → UMAP → Leiden" pipeline in one shot. Currently a single backend: tfidf_lsi (Signac-style). The skill stops at clustered UMAP — no fragment QC, no peak calling, no motif / gene-activity scoring, no multi-sample integration. For scRNA preprocessing use sc-preprocessing.

Inputs & Outputs

<!-- AUTO-GENERATED from skill.yaml (interface) — do not edit by hand. Regenerate: python scripts/generate_skill_md.py <skill_dir> -->

Inputs

  • Input kinds: file, directory
  • Modalities: scatac
  • File types: .h5ad, .h5, .loom, .csv, .tsv

Outputs

  • tables/cell_metadata.csv
  • tables/cluster_summary.csv
  • tables/lsi_variance_ratio.csv
  • tables/peak_summary.csv
  • tables/preprocess_summary.csv
  • tables/qc_metrics_per_cell.csv
  • tables/umap_points.csv
  • figures/clustering_comparison.png
  • figures/feature_umap.png
  • figures/lsi_variance.png
  • figures/pca_loadings.png
  • figures/pca_scatter.png
  • figures/pca_variance.png
  • figures/qc_violin.png
  • figures/top_accessible_peaks.png
  • analysis_summary.txt
  • processed.h5ad
  • report.md
  • result.json
  • Processed AnnData (saves_h5ad) — adds obs: leiden; obsm: X_lsi, X_umap; layers: counts
  • AnnData processing state after success: preprocessed

Flow

  1. Load the peak × cell input via the shared smart_load (AnnData / 10x H5 / loom / CSV / 10x dir).
  2. Validate .X is present, non-empty, non-negative.
  3. Compute per-cell n_peaks_by_counts / total_counts; filter cells by --min-peaks and peaks by --min-cells.
  4. Retain the globally most accessible peaks up to --n-top-peaks.
  5. Run Signac-style TF-IDF (--tfidf-scale-factor); truncated-SVD LSI to --n-lsi components.
  6. Build neighbour graph (--n-neighbors), UMAP, Leiden (--leiden-resolution).
  7. Save processed.h5ad, tables, figures, report.md, result.json.

Gotchas

  • Filtering can wipe everything. scatac_preprocessing.py:149 raises RuntimeError("All cells were removed by min_peaks. Lower the threshold.") and :154 raises RuntimeError("All peaks were removed by min_cells. Lower the threshold.") — both are hard fails. Inspect n_peaks_by_counts distribution before tightening these thresholds; --min-peaks 200 (default) assumes a typical 10x scATAC depth.
  • LSI hard-fails on a degenerate matrix. scatac_preprocessing.py:228 raises RuntimeError("Not enough cells or peaks remain to compute a stable LSI embedding.") when the matrix is too sparse / small after filtering. Either lower QC thresholds or feed a richer dataset.
  • Input must be non-negative count-like in .X. scatac_preprocessing.py:118 raises ValueError("Input AnnData has no matrix in adata.X."); :122 raises ValueError("Input matrix is empty."); :124 raises ValueError("scATAC preprocessing requires a non-negative accessibility matrix."). Already-TF-IDF-transformed data will fail the non-negativity check.
  • processed.h5ad keeps only retained peaks. scatac_preprocessing.py:176 does adata = adata[:, keep].copy() — var is filtered to the top n_top_peaks accessible. The original peak universe is not preserved in X (the deleted peaks are gone). Snapshot the input before running if you need the full peak space later.
  • --input mandatory unless --demo. scatac_preprocessing.py:809 raises ValueError("--input required when not using --demo").
  • Single backend only. scatac_preprocessing.py:272 raises ValueError(f"Unknown preprocessing method '{method}'") for anything other than tfidf_lsi. The --method flag exists for forward compatibility; today it's effectively a no-op.
Show full SKILL.md (42 more words)Show less

Key CLI

bash
# Demo (built-in synthetic scATAC)
python omicsclaw.py run scatac-preprocessing --demo --output /tmp/scatac_demo

# Standard run on a 10x scATAC h5
python omicsclaw.py run scatac-preprocessing \
  --input atac_peaks.h5 --output results/

# Tune QC + feature budget
python omicsclaw.py run scatac-preprocessing \
  --input atac_peaks.h5ad --output results/ \
  --min-peaks 300 --min-cells 10 --n-top-peaks 20000

# Tune latent space + clustering
python omicsclaw.py run scatac-preprocessing \
  --input atac_peaks.h5ad --output results/ \
  --n-lsi 40 --n-neighbors 20 --leiden-resolution 1.0

See also

  • references/parameters.md — every CLI flag, per-method tunables
  • references/methodology.md — TF-IDF + LSI math; Signac alignment
  • references/output_contract.md — obsm/var schema + table layouts
  • Adjacent skills: sc-preprocessing (parallel — scRNA, NOT scATAC), sc-clustering (downstream — re-cluster on obsm["X_lsi"] if you want a different resolution without re-running TF-IDF)

© TianGzlab, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in skills/singlecell/scatac/scatac-preprocessing of TianGzlab/OmicsClaw.

  • SKILL.md
  • references/methodology.md
  • references/output_contract.md
  • references/parameters.md
  • scatac_preprocessing.py
  • skill.yaml
  • tests/__init__.py
  • tests/test_scatac_preprocessing.py

Open the folder on GitHubat commit 6fbd79f

Compare with similar skills

Scatac Preprocessing 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.

Scatac Preprocessing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Scatac Preprocessing this skillTianGzlab/OmicsClaw161—~1.4kAutomated safety check: PassMIT
ScanpyK-Dense-AI/scientific-agent-skills48k1 repos~5.1kAutomated safety check: PassBSD-3-Clause
Bio Tcr Bcr Analysis Scirpy AnalysisGPTomics/bioSkills1.2k1 repos~4.4kAutomated safety check: PassMIT
Scanpyaipoch/medical-research-skills2k—~3.9kAutomated safety check: PassMIT
Scarf Single CellNygenAnalytics/scarf126—~4.7kAutomated safety check: PassBSD-3-Clause
Scanpy Single-Cell Analysisdavila7/claude-code-templates32k16 repos~2.8kAutomated safety check: PassMIT

Similar skills

  • Scanpy

    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…

    48k GitHub starsUsed in 1 repo~5.1k tokens
    Research & ScienceAuto-check passed
  • Integrates single-cell paired TCR/BCR (10x VDJ, AIRR, dandelion, BD Rhapsody) with gene expression in an AnnData/MuData object using scirpy - chain-pairing QC, clonotype definition, clonal…

    1.2k GitHub starsUsed in 1 repo~4.4k tokens
    Research & ScienceAuto-check passed
  • Scanpy

    aipoch/medical-research-skills

    Standard single-cell RNA-seq analysis pipeline. An agent skill from aipoch/medical-research-skills.

    2k GitHub stars~3.9k tokensUpdated 20 days ago
    Research & ScienceAuto-check passed
  • 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.

    126 GitHub stars~4.7k tokensUpdated yesterday
    Research & ScienceAuto-check passed
  • 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.

    32k GitHub starsUsed in 16 repos~2.8k tokens
    Research & ScienceAuto-check passed
  • Scgpt

    JimLiu/science-skills

    Embed and annotate single-cell expression data with scGPT, a foundation model for single-cell biology.

    227 GitHub starsUsed in 4 repos~1.3k tokens
    Research & ScienceAuto-check passed

More from TianGzlab/OmicsClaw

All 95 skills in this repo
  • Bulkrna Batch Correction

    TianGzlab/OmicsClaw

    Load when removing batch effects from a multi-cohort bulk RNA-seq dataset using ComBat (R or Python implementation).

    161 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Bulkrna Coexpression

    TianGzlab/OmicsClaw

    Load when discovering gene co-expression modules and hub genes in a bulk RNA-seq cohort via WGCNA-style soft-thresholded networks.

    161 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Bulkrna De

    TianGzlab/OmicsClaw

    Load when comparing gene expression between two conditions in bulk RNA-seq count data.

    161 GitHub stars~976 tokensUpdated 2 mo ago
    Auto-check passed
  • Bulkrna Deconvolution

    TianGzlab/OmicsClaw

    Load when estimating cell-type proportions in bulk RNA-seq samples from a single-cell or signature-matrix reference.

    161 GitHub stars~984 tokensUpdated 2 mo ago
    Auto-check passed
  • Bulkrna Enrichment

    TianGzlab/OmicsClaw

    Load when running pathway / GO term enrichment on a bulk RNA-seq DE result list.

    161 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Bulkrna Geneid Mapping

    TianGzlab/OmicsClaw

    Load when converting gene identifiers between Ensembl, Entrez, and HGNC symbol in a bulk RNA-seq count matrix.

    161 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Scatac Preprocessing

What does Scatac Preprocessing do?

Load when preprocessing a single-cell ATAC peak × cell AnnData via Signac-style TF-IDF + LSI + Leiden, producing a clustered UMAP-ready object. Scatac Preprocessing is an agent skill from TianGzlab/OmicsClaw. Load when preprocessing a single-cell ATAC peak × cell AnnData via Signac-style TF-IDF + LSI + Leiden, producing a clustered UMAP-ready object.

When should I use Scatac Preprocessing?

Scatac Preprocessing fits situations like: tasks that involve Bioinformatics.

How do I install Scatac Preprocessing in Claude Code?

Run `npx skills add TianGzlab/OmicsClaw --skill scatac-preprocessing -a claude-code`. Or copy the skill folder (skills/singlecell/scatac/scatac-preprocessing in TianGzlab/OmicsClaw) into .claude/skills/scatac-preprocessing in your project. Claude Code loads it when a task matches its description.

How do I install Scatac Preprocessing in Codex?

Run `npx skills add TianGzlab/OmicsClaw --skill scatac-preprocessing -a codex`. Or copy the skill folder (skills/singlecell/scatac/scatac-preprocessing in TianGzlab/OmicsClaw) into .agents/skills/scatac-preprocessing in your project. Codex loads it when a task matches its description.

Can I use Scatac Preprocessing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TianGzlab/OmicsClaw --skill scatac-preprocessing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/scatac-preprocessing, .gemini/skills/scatac-preprocessing, .github/skills/scatac-preprocessing and .opencode/skills/scatac-preprocessing in your project.

What does Scatac Preprocessing need to run?

Going by SKILL.md and its folder, Scatac Preprocessing needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Scatac Preprocessing access the network?

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.

Is Scatac Preprocessing safe to install?

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.

What licence does Scatac Preprocessing use?

Scatac Preprocessing is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Scatac Preprocessing use?

About 1.4k tokens (SKILL.md is roughly 5.6k 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.

What are the alternatives to Scatac Preprocessing?

Skills that share tags, products or a category with Scatac Preprocessing: Scanpy (K-Dense-AI/scientific-agent-skills, 48k stars), Bio Tcr Bcr Analysis Scirpy Analysis (GPTomics/bioSkills, 1.2k stars), Scanpy (aipoch/medical-research-skills, 2k stars) and Scarf Single Cell (NygenAnalytics/scarf, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Scatac Preprocessing?

TianGzlab (a GitHub organization) maintains it in TianGzlab/OmicsClaw, which has 161 GitHub stars. The repository holds 95 skills in this directory. The repository was last updated on July 28, 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.