技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
tooluniverse-scvi-tools使用 scvi-tools 对单细胞组学进行深度学习——基于 VAE 的概率性批次校正和整合(scVI)、半监督整合和标签转移(scANVI)、CITE-seq RNA+protein 联合建模(totalVI)、scATAC-seq 分析(PeakVI)、多组学 RNA+ATAC 联合建模(MultiVI)、空间转录组学细胞类型去卷积…。
AI 翻译
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Local, guided workflows for training and applying scvi-tools' probabilistic deep-learning models on a user's own AnnData files.
This skill trains real neural networks via the real scvi-tools package. It
must never fabricate a latent space, a training curve, or a DE result.
import scvi (and
anndata/scanpy/numpy) before touching data. If scvi-tools is not
installed, the script prints the exact pip install scvi-tools command
and exits 0 — it does not estimate, guess, or describe hypothetical
training results.Use when the user:
scvelo's
point estimates)NOT for (use other skills instead):
tooluniverse-single-cellsetup-scvi-remote-tool / setup-scanvi-remote-tooltooluniverse-rnaseq-deseq2tooluniverse-fastq-qcSee references/model_selection.md for the full decision tree. Quick
version:
| Data | Model |
|---|---|
| scRNA-seq, no labels, want integration | scVI |
| scRNA-seq, partial/full cell-type labels | scANVI |
| CITE-seq (RNA + protein) | totalVI |
| scATAC-seq only | PeakVI |
| Multiome (RNA + ATAC) | MultiVI |
| Spatial + single-cell reference | DestVI |
| RNA velocity (spliced/unspliced) | veloVI |
| Map new data onto an existing reference | scANVI + load_query_data |
Run python scripts/validate_adata.py your.h5ad --batch-key batch --suggest
to get a data-driven recommendation instead of guessing.
# 1. Check the environment and the data
python scripts/validate_adata.py raw.h5ad --batch-key batch --suggest
# 2. Prepare: QC, HVG selection, stash raw counts in a 'counts' layer
python scripts/prepare_data.py raw.h5ad prepared.h5ad --batch-key batch
# 3. Train the model chosen in step 1
python scripts/train_model.py prepared.h5ad results/ --model scvi --batch-key batch
# 4. Differential expression (posterior-based, not scanpy's rank_genes_groups)
python scripts/differential_expression.py results/scvi_model results/adata_scvi_trained.h5ad \
de.csv --groupby leiden
# 5. (Optional) Map a new dataset onto a trained scANVI reference
python scripts/transfer_labels.py results/scanvi_model prepared.h5ad query.h5ad results/
For totalVI/MultiVI/DestVI's modality-specific input shapes, and DestVI's
two-stage fit, see references/multimodal_workflows.md — do not guess the
input format; getting it wrong is the most common failure mode for these
three models.
references/model_selection.md — full decision tree, minimum data per modelreferences/scrna_integration.md — scVI/scANVI integration details, when to prefer this over Harmonyreferences/multimodal_workflows.md — totalVI, MultiVI, DestVI input shapes and the DestVI two-stage fitreferences/troubleshooting.md — install issues, NaN losses, GPU/OOM, key mismatches, silent-failure checklist