scarf-single-cell
하는 일
이 도구는 대규모 단일 세포 RNA 시퀀싱(RNA-seq) 데이터를 분석하도록 돕습니다. 데이터가 컴퓨터 메모리에 들어가지 않을 만큼 커도 수백만 개의 세포를 처리할 수 있으며, 모든 과정의 단계를 기록합니다.
사용하는 경우
- ✓메모리에 들어가지 않을 만큼 수백만 개 세포의 RNA-seq 데이터가 있을 때.
- ✓다른 형식(H5AD, 10x, MTX)의 데이터를 Scarf 형식으로 변환할 때.
- ✓품질 관리, 군집화, 샘플 간 비교를 포함한 완전한 단일 세포 분석을 수행할 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/scarf-single-cell/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Scarf를 사용해 메모리에 들어가지 않는 수백만 개 세포의 단일 세포 RNA-seq 데이터를 어떻게 분석할 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
Scarf는 디스크나 클라우드에 저장된 작은 블록(스트림) 단위로 데이터를 처리합니다. 각 분석 단계는 변경할 수 없는 산출물(artifact)로 기록되어, 전체 과정을 추적하고 재현할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Scarf single-cell analysis
Scarf streams Zarr-backed count matrices in bounded blocks and records every computation as an
immutable, content-addressed artifact. This skill encodes how to drive core Scarf for single-cell
RNA analysis: which calls to make, in what order, what evidence to check, and what not to do.
It does not use or describe scarf.agent.
Read this file first. Then open only the reference modules you need (index below). Paths in this skill are relative to the skill directory. The maintained copy lives in the Scarf repository at https://github.com/NygenAnalytics/scarf/tree/master/skills/scarf-single-cell. Every recipe in the modules was run against a real store. Numbers quoted there come from the 10x 5K PBMC documentation dataset and are illustrations, not thresholds.
When to Use This Skill
- Use when a task involves a Scarf
.zarrstore,scarf.DataStore,ds.pipelineor aPipelineRun. - Use when converting H5AD, 10x, MTX or Seurat data into a Scarf store, or opening and mounting a Cytebase dataset.
- Use for single-cell RNA-seq analysis with core Scarf: QC with removal audits, HVG, PCA and neighbour graphs, Leiden and Paris clustering, UMAP, markers and cautious annotation, batch correction, donor-level comparisons, headless plotting, provenance and export.
- Use when counts are too large for memory or live on object storage, so they must be streamed under an explicit memory budget.
- Do not use it for
scarf.agent(the automated agent package), which this skill does not cover.
Setup
- Install into the environment you run Python from:
pip install "scarf[extra]>=1.0.0rc17", plusscarf[cytebase]for Cytebase. The explicit pre-release floor matters: a barescarf[extra]resolves to the old 0.32 series, whose API this skill does not describe. - Set resources per process before importing Scarf. Defaults claim all detected RAM and every CPU:
SCARF_MEM_BUDGET=8G SCARF_WORKERS=8(memory specs need a unit; a bare8is rejected). - Headless:
MPLBACKEND=Agg, call plots withshow=False, thenresult.save(path)andresult.close(). - Quiet logs for scripts:
scarf.configure_output(level="WARNING", progress=False). - First look at a store: open it read-only and follow "Open and inspect a store"
(
references/data-access.md) and "Check the matrix first" (references/quality-control.md) for cell and feature counts, runs, artifact kinds and whether counts look raw. Then review every metadata column yourself: design columns (donor, sample, batch, condition), author annotations to hold out (rule 14) and author-derived columns. The maintained copy of this skill in the Scarf repository also shipsscripts/inspect_store.py, a read-only command that runs these checks and flags those columns by name (annotation values stay hidden unless you pass--show-annotation-values). This catalogue copy is Markdown only and does not include the script. - Long steps (a pipeline run on tens of thousands of cells over remote counts can take many
minutes): write the step as a script that logs to a file and ends with a
DONEorFAILEDline, run it in the background, and wait with a bounded loop that also stops on aTracebackor a dead process. If you launch through a wrapper such asuv run, puttimeoutinside it (uv run timeout N python step.py; the reverse can leave stalerunningrecords), and track the process by$!rather thanpgrep -f. Seereferences/performance-and-export.md. Never poll without a time limit.
Mental model
- A DataStore is one Zarr directory: a shared cell table
ds.cells, one group per assay (ds.RNA, feature tableds.RNA.feats, counts as cell-majorcountsplus gene-majorcountsT), artifacts, andpipeline/runs. QC columns are assay-prefixed:RNA_nCounts,RNA_nFeatures,RNA_percentMito,RNA_percentRibo. Iis the live boolean cell key. Analytical filters never edit it; they return a frozen cell selection artifact.- Every result is an
ArtifactRef(scope,kind,artifact_id,assay). Producers take refs and return refs:select_hvgs -> run_normalization -> run_pca -> build_ann_index -> query_neighbors -> build_connectivity_map -> run_leiden_clustering / run_umap -> run_marker_search. An identical call returns the existing artifact without recomputing. ds.pipeline.run(label=...)runs that whole RNA recipe (filtering, cell cycle, HVG,
…
자주 묻는 질문
‘단일 세포 RNA-seq’란 무엇인가요?
개별 세포의 RNA를 분석하는 기술입니다. 각 세포의 기능에 대한 매우 자세한 정보를 제공합니다.
‘수백만 개의 세포’는 무엇을 뜻하나요?
매우 많은 수의 세포를 포함한 분석을 뜻합니다. 이를 처리하려면 특별한 도구가 필요할 수 있습니다.
이 맥락에서 ‘산출물(artifact)’이란 무엇인가요?
각 분석 단계의 결과물입니다(예: 군집이나 유전자 마커). Scarf는 각 산출물을 기록하므로 결과가 어떻게 얻어졌는지 정확히 알 수 있습니다.
상세 정보
작성자의 원본 설명
Analyze single-cell RNA-seq at million-cell scale with Scarf: out-of-core Zarr stores on disk or object storage, provenance-tracked artifacts, audited QC, clustering, markers and donor comparisons.
인기도
- GitHub 스타
- 48k
- 순위
- #5679
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.