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

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

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

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

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:

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

  1. Confirm modality, raw-data provenance, unique cell/feature IDs, feature order, batch/sample metadata, and the intended biological comparison.
  2. 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.
  3. Register the exact data object with that model's setup_anndata or setup_mudata; create and train the model. Setup is registration, not normalization.
  4. Inspect validation history, held-out fit, seed stability, batch mixing and retention of known biology. A well-mixed UMAP alone does not validate integration.
  5. 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.

repo: K-Dense-AI/scientific-agent-skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬