技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
model-fitting-internals【数据与研究】Inspect and control PyDESeq2 staged model-fitting internals, normalization helpers, VST, AnnData storage keys, Cooks refits, and DefaultInference behavior.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an agent must inspect, debug, or manually control PyDESeq2's staged internals instead of only running the high-level DeseqDataSet.deseq2() wrapper.
fit_size_factors, dispersion fitting, MAP shrinkage, LFC fitting, Cooks distances, and outlier refits.obs, var, varm, layers, obsm, and uns.deseq2_norm_fit and deseq2_norm_transform.vst, vst_fit, or vst_transform failures and choose blind versus design-aware VST.DefaultInference, n_cpus, joblib backends, or low_memory side effects.references/internals-reference.md for staged fitting order, method responsibilities, storage keys, and inference behavior.references/vst-and-normalization.md for size-factor modes, control genes, preprocessing helpers, VST order, and train/test patterns.references/troubleshooting.md for actionable fixes for common internals failures and warnings.scripts/inspect_stepwise_pipeline.py runs a local synthetic stepwise fit with --n-cpus 1 by default and prints expected AnnData keys after each stage.scripts/check_normalization.py demonstrates deseq2_norm_fit on training counts and deseq2_norm_transform on held-out counts without network access.Example commands:
python scripts/inspect_stepwise_pipeline.py --help
python scripts/inspect_stepwise_pipeline.py --n-cpus 1 --use-design-vst
python scripts/check_normalization.py --help
python scripts/check_normalization.py --as-json
If PyDESeq2 is missing, install it with a generic package command such as python -m pip install pydeseq2 in the active Python environment.
DeseqDataSet.deseq2() and DeseqStats, route to ../dea-workflows/SKILL.md.../data-io-validation/SKILL.md.../statistics-and-results/SKILL.md.DefaultInference(n_cpus=1) in examples and verification unless the user explicitly asks to parallelize.fit_type="parametric" for DESeq2-like defaults, but switch to fit_type="mean" when parametric trend fitting repeatedly falls back or the user asks for the mean trend.size_factors_fit_type="ratio" when geometric means are valid; use "poscounts" for sparse positive-count settings and "iterative" only when the staged MLE behavior is intended.