Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  1. tfidf_lsi

This skill does:

  1. cell filtering by detected peaks
  2. peak filtering by cell support
  3. wrapper-level top-peak selection
  4. TF-IDF normalization
  5. truncated SVD / LSI embedding
  6. graph construction, UMAP, and Leiden clustering
  7. downstream-ready AnnData export

This skill does not:

  1. start from fragment files
  2. call peaks from BAM / fragments
  3. compute motif enrichments
  4. compute gene activity scores
  5. perform differential accessibility
  6. perform multi-sample integration

Those belong to later OmicsClaw scATAC skills.

Core Capabilities

  1. Implementation-aligned scATAC preprocessing: sparse accessibility matrix to TF-IDF + LSI + graph + clustering in one run
  2. Compact public controls: a small parameter set tunes QC sparsity thresholds, feature budget, latent dimensionality, graph locality, and clustering granularity
  3. Stable gallery contract: UMAP clusters, QC violin, top accessible peaks, and LSI variance figures under figures/
  4. Structured figure-data layer: figure_data/ exports summary, cluster, peak, LSI, UMAP, and QC tables for downstream customization
  5. Downstream-ready AnnData: processed peak matrix, raw counts layer, raw snapshot over retained peaks, LSI embeddings, graph, and cluster labels
  6. 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-peaks is 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.h5ad stores the retained peak space used for TF-IDF + LSI. The original full peak universe is not preserved in X.

Workflow

  1. Load: read input via the shared single-cell loader or synthetic demo data.
  2. Validate: confirm the matrix is non-negative and looks compatible with count-like accessibility preprocessing.
  3. QC and filtering:
    • compute total_counts, n_peaks_by_counts, and fraction_accessible
    • filter cells by min_peaks
    • filter peaks by min_cells
  4. Select feature space: retain the globally most accessible peaks up to n_top_peaks after filtering
  5. 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
  6. Write standard outputs: processed.h5ad, report, result JSON, gallery, figure-data CSVs, summary tables, READ
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить scatac-preprocessing с