sc-preprocessing
БесплатноБез исполняемых скриптовНе проверенBase scRNA preprocessing after QC: QC-aware filtering, normalization, highly variable gene selection, and PCA.
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
🧫 Single-Cell Base Preprocessing
This skill is the base preprocessing stage for scRNA data. It stops at a normalized, PCA-ready object so that users can choose the next branch explicitly:
- go to
sc-batch-integrationif multiple batches need correction - or go directly to
sc-clusteringif batch correction is not needed
Why This Exists
- Without it: users manually chain QC-aware filtering, normalization, HVG selection, and PCA with inconsistent defaults.
- With it: one run produces a stable normalized, PCA-ready AnnData plus standard OmicsClaw outputs.
- Why OmicsClaw: the wrapper reuses shared single-cell canonicalization, QC, and filtering logic, and keeps a stable downstream contract.
Scope Boundary
Implemented methods:
scanpyseuratsctransformpearson_residuals
Method-specific wrapper controls:
scanpy:normalization_target_sum,scanpy_hvg_flavorseurat:seurat_normalize_method,seurat_scale_factor,seurat_hvg_methodsctransform:sctransform_regress_mtpearson_residuals:pearson_hvg_flavor,pearson_theta
This skill does:
- reuse existing QC state when available, otherwise compute the minimum needed QC metrics
- filter cells and genes through the shared filtering logic
- normalize or transform the expression matrix
- select highly variable genes
- compute PCA
- export a normalized, PCA-ready
processed.h5ad
This skill does not:
- remove ambient RNA
- remove doublets
- perform batch integration
- build the final neighbor graph, UMAP, or clusters
- annotate cells or run DE
Input Expectations
- preferred input: raw-count-like AnnData or a QC-annotated count-oriented object
- if QC metrics already exist, they are reused instead of recomputed
- if the user has not reviewed QC yet and does not provide filtering thresholds, the recommended path is
sc-qcfirst - the public output contract is:
X = normalized_expressionlayers["counts"] = raw_countsadata.raw = raw_counts_snapshotobsm["X_pca"]available for downstreamsc-clusteringorsc-batch-integration
Workflow
- Load input through the shared single-cell loader.
- Preflight the matrix state, QC state, and method-specific requirements.
- Reuse existing QC metrics or canonicalize count-like input and compute the minimum needed QC metrics.
- Apply shared cell/gene filtering.
- Run the selected normalization / transformation backend.
- Select HVGs and compute PCA.
- Export
processed.h5ad, figures, tables,figure_data/,report.md, andresult.json.
Downstream Branching
After this skill:
- if batch/sample effects are expected: run
sc-batch-integration - otherwise: run
sc-clustering - doublet removal:
sc-preprocessingremoves doublets automatically during filtering whenpredicted_doubletordoublet_scorecolumns (fromsc-doublet-detection) are present. Pass--no-remove-doubletsto opt out. Runsc-doublet-detection→sc-preprocessingto activate.
Output Contract
Successful runs write:
processed.h5adreport.mdresult.jsonfigures/manifest.jsonfigure_data/manifest.jsontables/preprocess_summary.csvtables/hvg_summary.csvtables/pca_variance_ratio.csvtables/pca_embedding.csvtables/qc_metrics_per_cell.csv
Workflow Position
- Upstream step:
sc-filter(recommended) or directly fromsc-count/sc-qc - Usual next step:
sc-batch-integration(multiple batches) orsc-clustering(single batch)
CLI Parameters
| Flag | Type | Default | Description | Validation |
|---|---|---|---|---|
--input |
path | — | Input AnnData file (.h5ad); required unless --demo |
— |
--output |
path | — | Output directory (required) | — |
--demo |
flag | false |
Run with built-in demo data | — |
--method |
enum | scanpy |
Preprocessing backend: scanpy, seurat, sctransform, pearson_residuals |
— |
--min-genes |
int | 200 (per method default) |
Minimum detected genes per retained cell | Must be >= 0 |
--min-cells |
int | 3 (per method default) |
Minimum cells expressing a retained gene | Must be >= 0 |
--max-mt-pct |
float | 20.0 (per method default) |
Maximum mitochondrial percentage | Must be in [0, 100] |
--n-top-hvg |
int | 2000 (per method default) |
Number of highly variable genes to select | Must be >= 1 |
--n-pcs |
int | 50 (per method default) |
Number of principal components | Must be >= 1 |
--normalization-target-sum |
float | 10000.0 |
Total counts per cell after normalization (scanpy only) | Must be >= 1 |
--scanpy-hvg-flavor |
enum | seurat |
HVG selection flavor: seurat, cell_ranger, seurat_v3 (scanpy only) |
— |
--pearson-hvg-flavor |
enum | seurat_v3 |
HVG flavor for Pearson residuals: seurat_v3, seurat (pearson_residuals only) |
— |
--pearson-theta |
float | 100.0 |
Negative binomial theta for Pearson residuals (pearson_resi |
Установить sc-preprocessing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sc-preprocessing?
Base scRNA preprocessing after QC: QC-aware filtering, normalization, highly variable gene selection, and PCA.
Как установить скилл sc-preprocessing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-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