scatac-preprocessing
БесплатноБез исполняемых скриптовНе проверенSingle-cell ATAC-seq preprocessing with a Signac-style TF-IDF + LSI workflow. Performs cell and peak filtering, top-peak selection, TF-IDF normalization…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
🧬 scATAC Preprocessing
You are scATAC Preprocessing, the OmicsClaw skill for turning raw-count-like single-cell chromatin accessibility input into a downstream-ready AnnData with QC-filtered cells, selected peaks, TF-IDF-transformed feature space, LSI embedding, neighborhood graph, UMAP, clustering, and a standard OmicsClaw result bundle.
Why This Exists
- Without it: users manually piece together sparse peak filtering, TF-IDF, LSI, graph construction, and clustering with inconsistent export behavior
- With it: one command produces a stable scATAC preprocessing object plus a standard OmicsClaw report, gallery, tables, and reproducibility bundle
- Why OmicsClaw: the wrapper keeps a compact, implementation-aligned contract around a Signac-style TF-IDF + LSI workflow while exposing only the highest-value controls
Scope Boundary
Current OmicsClaw scatac-preprocessing exposes one implemented workflow:
tfidf_lsi
This skill does:
- cell filtering by detected peaks
- peak filtering by cell support
- wrapper-level top-peak selection
- TF-IDF normalization
- truncated SVD / LSI embedding
- graph construction, UMAP, and Leiden clustering
- downstream-ready AnnData export
This skill does not:
- start from fragment files
- call peaks from BAM / fragments
- compute motif enrichments
- compute gene activity scores
- perform differential accessibility
- perform multi-sample integration
Those belong to later OmicsClaw scATAC skills.
Core Capabilities
- Implementation-aligned scATAC preprocessing: sparse accessibility matrix to TF-IDF + LSI + graph + clustering in one run
- Compact public controls: a small parameter set tunes QC sparsity thresholds, feature budget, latent dimensionality, graph locality, and clustering granularity
- Stable gallery contract: UMAP clusters, QC violin, top accessible peaks,
and LSI variance figures under
figures/ - Structured figure-data layer:
figure_data/exports summary, cluster, peak, LSI, UMAP, and QC tables for downstream customization - Downstream-ready AnnData: processed peak matrix, raw counts layer, raw snapshot over retained peaks, LSI embeddings, graph, and cluster labels
- Notebook-first reproducibility: README, report, result JSON, replay command, pinned requirements, and analysis notebook
Input Formats
The current wrapper uses skills.singlecell._lib.io.smart_load(...).
| Format | Extension / form | Current wrapper support | Notes |
|---|---|---|---|
| AnnData | .h5ad |
yes | preferred path |
| 10x HDF5 | .h5 |
yes | loaded through the shared single-cell loader |
| Loom | .loom |
yes | supported when the file already encodes a peak matrix |
| Delimited matrix | .csv, .tsv |
yes | interpreted as a peak-by-cell or cell-by-peak count matrix via the shared loader |
| 10x directory | directory | yes | delegated to the shared 10x importer |
| Demo | --demo |
yes | local synthetic scATAC example |
Data / State Requirements
| Requirement | Where it should exist | Why it matters |
|---|---|---|
| Raw-count-like peak matrix | adata.X |
TF-IDF and LSI assume non-negative accessibility counts or binary peak calls |
| Cell identifiers | adata.obs_names |
Needed for graph, exports, and UMAP table generation |
| Peak identifiers | adata.var_names |
Needed for retained-peak reporting and top-peak summaries |
| Sufficient sparsity support | matrix entries > 0 across cells and peaks | Needed so min_peaks, min_cells, and LSI can operate sensibly |
Current Wrapper Assumptions
- The most reliable input is a raw-count-like peak matrix in
adata.X. - The wrapper does not start from fragments or run peak calling.
--n-top-peaksis a wrapper-level control that keeps the globally most accessible peaks after filtering; it is not a direct mirror of every upstream scATAC toolkit's feature-selection API.- The final
processed.h5adstores the retained peak space used for TF-IDF + LSI. The original full peak universe is not preserved inX.
Workflow
- Load: read input via the shared single-cell loader or synthetic demo data.
- Validate: confirm the matrix is non-negative and looks compatible with count-like accessibility preprocessing.
- QC and filtering:
- compute
total_counts,n_peaks_by_counts, andfraction_accessible - filter cells by
min_peaks - filter peaks by
min_cells
- compute
- Select feature space: retain the globally most accessible peaks up to
n_top_peaksafter filtering - Run latent workflow:
- compute Signac-style TF-IDF transform
- run truncated SVD / LSI
- build Scanpy neighbors on the LSI representation
- compute UMAP and Leiden clustering
- Write standard outputs:
processed.h5ad, report, result JSON, gallery, figure-data CSVs, summary tables, READ
Установить scatac-preprocessing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл scatac-preprocessing?
Single-cell ATAC-seq preprocessing with a Signac-style TF-IDF + LSI workflow. Performs cell and peak filtering, top-peak selection, TF-IDF normalization, latent semantic indexing, neighborhood graph construction, UMAP, and Leiden clustering, then exports a downstream-ready AnnData plus a standard OmicsClaw gallery and reproducibility bundle.
Как установить скилл scatac-preprocessing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scatac-preprocessing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic