scvi-tools
하는 일
이 도구는 DNA와 RNA 같은 복잡한 단일 세포 데이터를 분석하는 과학자를 돕습니다. 수학적 모델을 사용해 세포의 차이와 관계를 이해하도록 합니다.
사용하는 경우
- ✓단일 세포 데이터가 있고 세포의 차이를 이해하고 싶을 때.
- ✓특징(RNA, 단백질 등)에 따라 세포를 묶고 싶을 때.
- ✓서로 다른 실험이나 세포 시료를 비교할 때.
스킬 링크
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/scvi-tools/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 단일 세포 RNA 데이터를 분석해 세포 군집을 찾아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
원시 세포 데이터를 제공하면, 도구가 통계 모델을 적용해 패턴과 차이를 찾습니다. RNA와 단백질 같은 서로 다른 데이터 유형을 통합해 더 완전한 분석을 할 수 있습니다.
기술 내용 (원본 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()
…
자주 묻는 질문
‘단일 세포 데이터’란 무엇인가요?
개별 세포에서 수집된 데이터로, 세포 집단 전체를 보는 것보다 훨씬 자세한 분석을 가능하게 합니다.
‘확률 모델’이란 무엇인가요?
확률을 사용해 결과를 설명하고 예측하는 수학 모델로, 데이터의 불확실성을 이해하도록 돕습니다.
모든 생물학 데이터에 쓸 수 있나요?
RNA, ATAC, 단백질, 메틸화 같은 단일 세포 ‘오믹스’ 데이터에 최적화되어 있습니다. 다른 데이터 유형에는 다른 도구가 필요할 수 있습니다.
상세 정보
작성자의 원본 설명
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
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
13c-metabolic-flux
51k탄소-13 동위원소 추적 데이터를 사용해 대사 흐름(플럭스)을 추정합니다. 세포 대사와 생화학 경로를 분석할 때 유용합니다.
adaptyv
51kAdaptyv API를 사용해 단백질 특성 분석 실험을 설계합니다. 비용을 추정하고, 서열을 제출하며, 실험실 결과를 확인하는 데 도움이 됩니다.
aeon
51k시계열 데이터에 대해 머신러닝 작업을 수행합니다. 순차 데이터를 분류하고, 예측하고, 이상을 탐지하고, 패턴을 찾을 때 유용합니다.
alphagenome
51k유전 변이에 대해 미리 계산된 게놈 영향을 조회합니다. 변이가 게놈에 주는 영향을 이해하도록 점수와 설명을 제공합니다.