scarf-single-cell
यह क्या करती है
यह tool बड़े पैमाने पर single-cell RNA sequencing (RNA-seq) data का विश्लेषण करने में मदद करता है। यह लाखों cells को process कर सकता है, भले ही data computer की memory में न समाए, और process के हर चरण को रिकॉर्ड करता है।
कब इस्तेमाल करें
- ✓जब आपके पास लाखों cells का RNA-seq data हो जो memory में फिट नहीं होता।
- ✓जब H5AD, 10x, MTX जैसे दूसरे formats से data को Scarf format में बदलना हो।
- ✓quality control, clustering और samples के बीच तुलना सहित पूरा single-cell विश्लेषण करने के लिए।
Skill का लिंक
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 में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं Scarf का इस्तेमाल करके लाखों cells वाले अपने single-cell RNA-seq data का विश्लेषण कैसे कर सकता हूँ, जो memory में फिट नहीं होता?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
Scarf data को छोटे-छोटे blocks (streams) में process करता है, जो disk या cloud पर रखे जाते हैं। हर विश्लेषण चरण को एक immutable artifact के रूप में दर्ज किया जाता है, जिससे पूरी प्रक्रिया traceable और reproducible रहती है।
तकनीकी सामग्री (मूल 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,
…
अक्सर पूछे जाने वाले सवाल
'single-cell RNA-seq' क्या है?
यह एक तकनीक है जिससे अलग-अलग cells के RNA का विश्लेषण किया जाता है, और हर cell के काम के बारे में बहुत विस्तृत जानकारी मिलती है।
'लाखों cells' का क्या मतलब है?
इसका मतलब है कि विश्लेषण में बहुत बड़ी संख्या में cells शामिल हैं, जिन्हें इतना data process करने के लिए खास tools की ज़रूरत पड़ सकती है।
इस संदर्भ में 'artifacts' क्या हैं?
ये हर विश्लेषण चरण के नतीजे होते हैं (जैसे clusters या gene markers)। Scarf हर artifact को रिकॉर्ड करता है, ताकि आप ठीक-ठीक जान सकें कि नतीजे कैसे निकले।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
pytorch-patterns
280kआपके एजेंट को machine learning models के लिए PyTorch इस्तेमाल करने में मदद करता है। कुशल model training के best practices लागू करता है और नतीजों को दोहराने लायक रखता है।
evm-token-decimals
280kयह आपके एजेंट को अलग-अलग blockchain networks पर decimal numbers की गलतियों से बचने में मदद करता है। यह transactions और calculations में token values सही रखने का ध्यान रखता है।
ito-inference
280kआपके एजेंट को AI models की उपलब्धता जाँचने देता है। यह compute request को तैयार model service से जोड़ता है।