sc-cytotrace
БесплатноБез исполняемых скриптовНе проверенLoad when computing per-cell differentiation potency / stemness scores from gene-expression complexity on a scRNA AnnData via the CytoTRACE-simple method…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
sc-cytotrace
When to use
The user has a normalised (or raw-count) scRNA AnnData and wants a
single per-cell differentiation potency score (0 = differentiated,
1 = stem/totipotent), plus a 6-bin categorical label
(Differentiated, Mostly Differentiated, ..., Totipotent). The
implementation uses the CytoTRACE-simple proxy: gene-expression
complexity (number of genes detected per cell), KNN-smoothed and rank-
normalised. Single backend: cytotrace_simple.
Output goes into obs["cytotrace_score"], obs["cytotrace_potency"],
obs["cytotrace_gene_count"]. For trajectory ordering use
sc-pseudotime; for cell-type labels use sc-cell-annotation.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Normalised or raw scRNA AnnData | .h5ad |
yes (unless --demo) |
| Output | Path | Notes |
|---|---|---|
| Annotated AnnData | processed.h5ad |
adds obs["cytotrace_score"] (float 0-1), obs["cytotrace_potency"] (6-level categorical), obs["cytotrace_gene_count"] (int) |
| Per-cell scores | tables/cytotrace_scores.csv |
always |
| Embedding data | figure_data/cytotrace_embedding.csv |
always |
| Figures | figures/potency_umap.png, figures/score_distribution.png, figures/potency_composition.png |
always |
| Report | report.md + result.json |
always |
Flow
- Load AnnData; preflight requires
.Xto benormalized_expressionORraw_counts(matrix-contract check). - Compute per-cell gene-count complexity (number of detected genes).
- Rank-normalise gene counts; KNN-smooth across
--n-neighborsneighbours. - Min-max rescale to
[0, 1]→cytotrace_score. - Bin score into 6 potency categories; record counts per category.
- Detect degenerate output (≤ 1 unique category) → write
result.json["suggested_actions"]; do NOT raise. - Render figures, save tables,
processed.h5ad,report.md,result.json.
Gotchas
- Single backend only.
sc_cytotrace.py:549argparsechoices=["cytotrace_simple"]— there is no full CytoTRACE 2 / R-backed path here.:580raisesValueError(f"Unknown method: {args.method}")if the registry diverges. - Score is a proxy via gene complexity, not the original CytoTRACE algorithm.
sc_cytotrace.py:193-199documents the simplified pipeline (gene_count → rank → smooth → minmax → 6 bins). Don't quote scores as identical to published CytoTRACE — they're correlated but not numerically equivalent. - Degenerate output is a soft fail. When all cells land in 1 potency bin (e.g., uniformly low complexity),
sc_cytotrace.py:253-271recordsresult.json["n_potency_categories"] ≤ 1, setsdegenerate=True, and writessuggested_actions: [...]— but the script returns 0. Always checkresult.json["n_potency_categories"]before interpreting the score. --inputmandatory unless--demo.sc_cytotrace.py:562raisesValueError("--input required when not using --demo").- The skill OVERWRITES existing
obs["cytotrace_*"]columns.sc_cytotrace.py:245-247directly assigns intoobs. Save the input AnnData first if you need to compare two CytoTRACE runs (e.g., before/after filtering).
Key CLI
# Demo
python omicsclaw.py run sc-cytotrace --demo --output /tmp/sc_cytotrace_demo
# Default on a normalised AnnData
python omicsclaw.py run sc-cytotrace \
--input clustered.h5ad --output results/
# Tighter KNN smoothing for sparse data
python omicsclaw.py run sc-cytotrace \
--input clustered.h5ad --output results/ --n-neighbors 50
# With R-enhanced ggplot figures
python omicsclaw.py run sc-cytotrace \
--input clustered.h5ad --output results/ --r-enhanced
See also
references/parameters.md— every CLI flag, smoothing notesreferences/methodology.md— gene-count proxy vs original CytoTRACE; bin thresholdsreferences/output_contract.md—obs["cytotrace_score"]/cytotrace_potencyschema- Adjacent skills:
sc-pseudotime(parallel — graph-based trajectory ordering, complementary to potency),sc-clustering(upstream — provides UMAP for the potency-on-UMAP plot),sc-cell-annotation(parallel — predicts discrete cell-type labels rather than continuous potency)
Установить sc-cytotrace в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sc-cytotrace?
Load when computing per-cell differentiation potency / stemness scores from gene-expression complexity on a scRNA AnnData via the CytoTRACE-simple method. Skip when ordering cells along a trajectory (use sc-pseudotime) or for marker-based cell-type labelling (use sc-cell-annotation).
Как установить скилл sc-cytotrace?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sc-cytotrace запускает скрипты?
Нет, скилл состоит только из инструкций (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