scarf-single-cell
Skill này làm gì
Tool này giúp phân tích dữ liệu giải trình tự RNA đơn tế bào ở quy mô lớn. Nó cho phép xử lý hàng triệu tế bào, ngay cả khi dữ liệu quá lớn để nằm trong bộ nhớ máy tính, và ghi lại mọi bước của quá trình.
Khi nào nên dùng
- ✓Khi bạn có dữ liệu RNA-seq từ hàng triệu tế bào mà không vừa bộ nhớ.
- ✓Khi bạn chuyển đổi dữ liệu từ các định dạng khác (như H5AD, 10x, MTX) sang định dạng Scarf.
- ✓Khi bạn muốn thực hiện phân tích đơn tế bào đầy đủ, bao gồm kiểm soát chất lượng, phân cụm và so sánh giữa các mẫu.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/scarf-single-cell/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm sao để tôi phân tích dữ liệu RNA-seq đơn tế bào từ hàng triệu tế bào, không vừa bộ nhớ, bằng Scarf?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Scarf xử lý dữ liệu theo các khối nhỏ (stream) được lưu trên ổ đĩa hoặc trên đám mây. Mỗi bước phân tích được ghi lại dưới dạng một artifact bất biến, đảm bảo toàn bộ quy trình có thể truy vết và tái lập.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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,
…
Câu hỏi thường gặp
“Single-cell RNA-seq” là gì?
Đó là kỹ thuật cho phép phân tích RNA của từng tế bào riêng lẻ, cung cấp thông tin rất chi tiết về chức năng của mỗi tế bào.
“Hàng triệu tế bào” nghĩa là gì?
Nghĩa là phân tích liên quan đến một số lượng tế bào rất lớn, có thể cần các công cụ đặc biệt để xử lý lượng dữ liệu khổng lồ như vậy.
“Artifacts” trong ngữ cảnh này là gì?
Đó là kết quả của mỗi bước phân tích (như cụm hoặc marker gen). Scarf ghi lại từng artifact để bạn biết chính xác kết quả được tạo ra như thế nào.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5679
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
pytorch-patterns
280kGiúp agent của bạn dùng PyTorch cho các mô hình học máy. Áp dụng thực hành tốt nhất để huấn luyện mô hình hiệu quả và đảm bảo kết quả có thể lặp lại.
evm-token-decimals
280kGiúp agent tránh lỗi về số thập phân khi làm việc với các mạng blockchain khác nhau. Đảm bảo giá trị token chính xác trong giao dịch và phép tính.
ito-inference
280kGiúp agent kiểm tra xem các mô hình AI đã sẵn sàng để dùng chưa. Kết nối yêu cầu tài nguyên tính toán với dịch vụ mô hình đã sẵn sàng.