/bionexus-reliability:scvi-toolsfrom bionexus-reliability
Trains official scvi-tools models (scVI/scANVI/totalVI/PeakVI/MultiVI/veloVI) on raw counts for probabilistic batch integration and multi-modal analysis. Includes automated hyperparameter tuning, label transfer, and differential expression scripts.
Ships in bionexus-reliability. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Train official scvi-tools models. Use after the scRNA gold chain (or on raw counts). Do not log-normalize before setup_anndata.
Pins and pitfalls live in bionexus.versions (scvi-tools 1.1+, train on counts only).
| Script | Purpose | Usage |
|---|---|---|
prepare_data.py | QC, filter, HVG selection | python scripts/prepare_data.py raw.h5ad prepared.h5ad --batch-key batch |
hyperparam_search.py | Automated hyperparameter optimization | python scripts/hyperparam_search.py prepared.h5ad results/ --model scvi --n-trials 20 --batch-key batch |
train_model.py | Train any scvi-tools model | python scripts/train_model.py prepared.h5ad results/ --model scvi --batch-key batch |
cluster_embed.py | Neighbors, UMAP, Leiden | python scripts/cluster_embed.py adata.h5ad results/ |
differential_expression.py | Probabilistic DE analysis | python scripts/differential_expression.py model/ adata.h5ad de.csv --groupby leiden |
transfer_labels.py | Label transfer with scANVI | python scripts/transfer_labels.py ref_model/ query.h5ad results/ |
integrate_datasets.py | Multi-dataset integration | python scripts/integrate_datasets.py results/ data1.h5ad data2.h5ad |
validate_adata.py | Check data compatibility | python scripts/validate_adata.py data.h5ad --batch-key batch |
scvi_smoke.py | 1-epoch scVI on layers['counts'] | python scripts/scvi_smoke.py prepared.h5ad -o smoke.h5ad |
scripts/hyperparam_search.py)Tune latent dimensions (n_latent), network depth (n_layers), hidden layer width (n_hidden), gene likelihood (nb vs zinb), and learning rates:
# Bayesian hyperparameter optimization with Optuna
python scripts/hyperparam_search.py prepared.h5ad tuning_results/ \
--model scvi \
--batch-key batch \
--n-trials 20 \
--epochs-per-trial 35 \
--retrain-best
Outputs include:
hyperparam_tuning_summary.json: Detailed trial records and best hyperparameter configurationoptimal_model/: Saved scvi model trained with the best parameter combinationadata_optimal.h5ad: AnnData annotated with optimal latent representationsLICENSE.txt (opens in a new tab)references/atac_peakvi.md (opens in a new tab)references/batch_correction_sysvi.md (opens in a new tab)references/citeseq_totalvi.md (opens in a new tab)references/data_preparation.md (opens in a new tab)references/environment_setup.md (opens in a new tab)references/label_transfer.md (opens in a new tab)references/multiome_multivi.md (opens in a new tab)references/rna_velocity_velovi.md (opens in a new tab)references/scarches_mapping.md (opens in a new tab)references/scrna_integration.md (opens in a new tab)references/spatial_deconvolution.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/cluster_embed.py (opens in a new tab)scripts/differential_expression.py (opens in a new tab)scripts/hyperparam_search.py (opens in a new tab)scripts/integrate_datasets.py (opens in a new tab)scripts/model_utils.py (opens in a new tab)scripts/prepare_data.py (opens in a new tab)scripts/scvi_smoke.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub herry423/bionexus --plugin bionexus-reliability10 skills in this plugin
/external-evidence-auditAudit completed results from literature, database, analysis, sequence, structure, or slide capabilities, then optionally assemble an explicitly adjudicated multi-source claim assessment. Passive only; never select tools, infer evidence relationships, or make the final scientific decision./instrument-data-to-allotropeConvert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV using native allotropy or declarative YAML mapping rules. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis./nextflow-developmentPrepare nf-core samplesheets, cluster nextflow.config, and write launch artifacts. nfcore_launch.py only wraps nf-core/rnaseq and nf-core/scrnaseq with optional nextflow -preview. Other pipelines still use generate_samplesheet.py plus a hand-written nextflow run. Does not reimplement the pipelines./provenance-and-auditSHA-256 hashes, environment snapshot, and activity-aware Methods text. Use to attach a reproducibility sidecar to an analysis. Do not use for 21 CFR Part 11, GxP, ALCOA+, or CLIA audit claims./scientific-problem-selectionThis skill should be used when scientists need help with research problem selection, project ideation, troubleshooting stuck projects, or strategic scientific decisions. Use this skill when users ask to pitch a new research idea, work through a project problem, evaluate project risks, plan research strategy, navigate decision trees, or get help choosing what scientific problem to work on. Typical requests include "I have an idea for a project", "I'm stuck on my research", "help me evaluate this project", "what should I work on", or "I need strategic advice about my research"./single-cell-de-auditReview completed multi-donor single-cell differential expression before submission. Accept existing DE tables, sample sheets, AnnData, scripts and claims; produce located findings, evidence gaps, repairs and human review. Record pilot observations without claiming validated benefit.Other plugins' skills for the same job