scvi-tools
यह क्या करती है
यह टूल वैज्ञानिकों को single-cell डेटा, जैसे DNA और RNA, का विश्लेषण करने में मदद करता है। यह cells के बीच अंतर और संबंधों को समझने के लिए mathematical models का इस्तेमाल करता है।
कब इस्तेमाल करें
- ✓जब आपके पास single-cell डेटा हो और आप cells के बीच अंतर समझना चाहते हों।
- ✓cells को उनकी विशेषताओं (RNA, proteins आदि) के आधार पर group करने के लिए।
- ✓अलग-अलग experiments या cell samples की तुलना करने के लिए।
Skill का लिंक
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/scvi-tools/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे single-cell RNA डेटा का विश्लेषण करके cell clusters ढूंढो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आप कच्चा cell डेटा देते हैं, और टूल patterns और अंतर खोजने के लिए statistical models लगाता है। यह अलग-अलग तरह के डेटा (जैसे RNA और proteins) को मिलाकर अधिक पूर्ण विश्लेषण कर सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
scvi-tools
Targets scvi-tools 1.5.1, released September 10, 2026. APIs below were checked against the tagged source and official documentation. The examples are illustrative: the repository tests exercise short CPU synthetic fits for SCVI, SCANVI, TOTALVI, MULTIVI, METHYLVI, PEAKVI and POISSONVI, plus count-preserving preprocessing, DE output contracts, save/load and minification. The tested stack is Python 3.13, Scanpy 1.12.4, AnnData 0.13.4, MuData 0.4.1, PyTorch 2.14.1 and Lightning 2.6.6. Long training, hardware-specific paths and other specialized workflows remain illustrative; these checks do not establish convergence or biological validity.
Choose the model and its input contract
| Task | Class | Required input |
|---|---|---|
| RNA integration | scvi.model.SCVI |
Unnormalized RNA counts |
| RNA annotation | scvi.model.SCANVI |
Counts and partial labels |
| CITE-seq | scvi.model.TOTALVI |
RNA and protein counts, aligned cells |
| RNA + ATAC integration | scvi.model.MULTIVI |
Registered MuData with aligned modality representation |
| ATAC accessibility | scvi.model.PEAKVI |
Cells by peaks, binary/count accessibility |
| Quantitative ATAC | scvi.external.POISSONVI |
Region-level fragment counts |
| Methylation | scvi.external.METHYLVI, METHYLANVI |
MuData with methylated and total coverage counts |
| Cytometry | scvi.external.CYTOVI |
Transformed protein intensities |
| Large cross-system effects | scvi.external.SysVI |
Normalized, log-transformed expression |
| RNA velocity | scvi.external.VELOVI |
Preprocessed spliced/unspliced abundances |
The count rule is model-specific: do not feed raw RNA counts to SysVI or replace methylation coverage with ratios. Likewise, never reconstruct counts by exponentiating log-normalized data. Preserve measured counts and preprocessing provenance.
Read the corresponding references before using a specialized model:
- RNA models: SCVI, SCANVI, AUTOZI, VELOVI, ContrastiveVI, CellAssign, SOLO, LinearSCVI, AmortizedLDA.
- ATAC models: PEAKVI, POISSONVI, SCBASSET.
- Multimodal models: TOTALVI, TOTALANVI, MULTIVI, MRVI, DIAGVI.
- Spatial models: CondSCVI/DestVI, Stereoscope, Tangram, GIMVI, SCVIVA, RESOLVI.
- Specialized models: methylation, cytometry, SysVI, Decipher.
Release boundaries: JAX support, including JaxSCVI, was removed in 1.5.
scvi.model.mlxSCVI remains a separate optional Apple-silicon implementation;
PyTorch MPS and MLX are different backends. Spatial models and DIAGVI remain
importable in 1.5.1, but upstream directs their ongoing maintenance to
scVIVA-tools. Use the pinned
compatibility examples here only for existing scvi-tools workflows.
Workflow
- Confirm modality, raw-data provenance, unique cell/feature IDs, feature order, batch/sample metadata, and the intended biological comparison.
- Perform QC and feature selection before model registration. Use count-aware HVG selection for count layers, and preserve a full-gene count object for later analyses outside the selected feature set.
- Register the exact data object with that model's
setup_anndataorsetup_mudata; create and train the model. Setup is registration, not normalization. - Inspect validation history, held-out fit, seed stability, batch mixing and retention of known biology. A well-mixed UMAP alone does not validate integration.
- Extract representations or model-specific normalized outputs; save the model, data, selected feature order, software versions, seed and training parameters.
Illustrative RNA workflow
Assumes rna_counts.h5ad contains measured, unnormalized counts in .X, with
nonmissing obs['batch']. Choose QC thresholds for the experiment before this block.
import numpy as np
import scanpy as sc
import scvi
from scipy import sparse
scvi.settings.seed = 0
adata = sc.read_h5ad("rna_counts.h5ad")
assert adata.obs_names.is_unique and adata.var_names.is_unique
assert adata.obs["batch"].notna().all()
x = adata.X
values = x.data if sparse.issparse(x) else np.asarray(x)
assert np.isfinite(values).all() and (values >= 0).all()
assert np.allclose(values, np.rint(values))
assert (np.asarray(x.sum(axis=1)).ravel() > 0).all()
adata.layers["counts"] = x.copy()
…
अक्सर पूछे जाने वाले सवाल
'single-cell data' क्या है?
यह अलग-अलग cells से इकट्ठा किया गया डेटा है, जिससे पूरे समूह को एक साथ देखने की तुलना में कहीं अधिक विस्तृत विश्लेषण संभव होता है।
'probabilistic models' क्या हैं?
ये mathematical models हैं जो probability के सहारे परिणामों का वर्णन और अनुमान लगाते हैं, जिससे डेटा में मौजूद अनिश्चितता को समझने में मदद मिलती है।
क्या मैं इसे किसी भी biological डेटा के लिए इस्तेमाल कर सकता हूँ?
यह single-cell 'omics' डेटा के लिए अनुकूलित है, जैसे RNA, ATAC, proteins और methylation। दूसरे प्रकार के डेटा के लिए अलग tools की ज़रूरत पड़ सकती है।
जानकारी
लेखक का मूल विवरण
Fits probabilistic models for single-cell omics, including scVI batch integration, scANVI annotation, totalVI CITE-seq, MultiVI RNA/ATAC integration, and posterior differential expression. Use for generative modeling, reference mapping, multimodal analysis, or model-based uncertainty; use scanpy for standard preprocessing and exploratory analysis.
लोकप्रियता
- GitHub स्टार
- 51k
- रैंकिंग में स्थान
- #3571
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
13c-metabolic-flux
51kकार्बन-13 आइसोटोप ट्रेसिंग डेटा से मेटाबोलिक फ़्लक्स का अनुमान लगाता है। कोशिका के मेटाबॉलिज़्म और बायोकेमिकल मार्गों का विश्लेषण करने के लिए यह उपयोगी है।
adaptyv
51kAdaptyv API का उपयोग करके प्रोटीन कैरेक्टराइज़ेशन प्रयोग डिज़ाइन करता है। लागत का अनुमान लगाने, सीक्वेंस सबमिट करने और लैब के नतीजों पर नज़र रखने में मदद करता है।
aeon
51kटाइम सीरीज़ डेटा पर मशीन लर्निंग के काम करता है। क्रमबद्ध डेटा में वर्गीकरण, पूर्वानुमान, एनोमली डिटेक्शन और पैटर्न खोजने के लिए यह उपयोगी है।
alphagenome
51kजेनेटिक वेरिएंट्स के पहले से गणना किए गए जीनोमिक प्रभाव देखता है। वेरिएंट का जीनोम पर असर समझने के लिए स्कोर और स्पष्टीकरण देता है।
मिलती-जुलती 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 से जोड़ता है।