본문으로 건너뛰기
Skillpedia
머신러닝48k · #5679

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/scarf-single-cell/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 .zarr store, scarf.DataStore, ds.pipeline or a PipelineRun.
  • 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", plus scarf[cytebase] for Cytebase. The explicit pre-release floor matters: a bare scarf[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 bare 8 is rejected).
  • Headless: MPLBACKEND=Agg, call plots with show=False, then result.save(path) and result.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 ships scripts/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 DONE or FAILED line, run it in the background, and wait with a bounded loop that also stops on a Traceback or a dead process. If you launch through a wrapper such as uv run, put timeout inside it (uv run timeout N python step.py; the reverse can leave stale running records), and track the process by $! rather than pgrep -f. See references/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 table ds.RNA.feats, counts as cell-major counts plus gene-major countsT), artifacts, and pipeline/runs. QC columns are assay-prefixed: RNA_nCounts, RNA_nFeatures, RNA_percentMito, RNA_percentRibo.
  • I is 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.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5679
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬