技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
pyscenic【数据与研究】Use pySCENIC for single-cell SCENIC regulatory network inference, motif pruning, AUCell scoring, data export, and CLI or container workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves pySCENIC, the Python implementation of the SCENIC pipeline for single-cell transcription factor and regulon analysis.
references/overview.md for the SCENIC pipeline phases, required inputs, and expected outputs.python scripts/check_pyscenic_environment.py --check-cli when a user environment may be missing pySCENIC, CLI entry points, or compatible dependencies.references/troubleshooting.md for cross-cutting install, dependency, resource, and file-format failures.references/repo-provenance.md before deciding whether this skill is current for a repository checkout.sub-skills/network-inference/SKILL.md for pyscenic grn, pyscenic add_cor, arboreto_with_multiprocessing.py, add_correlation(), and modules_from_adjacencies().sub-skills/motif-pruning-and-regulons/SKILL.md for pyscenic ctx, prune2df(), find_features(), enriched motif tables, cisTarget databases, and regulon output formats.sub-skills/aucell-and-binarization/SKILL.md for pyscenic aucell, aucell(), thresholds, binarization, activity plots, and regulon specificity scores.sub-skills/data-io-and-export/SKILL.md for CSV/TSV/loom/h5ad loading, csv2loom, export2loom(), AnnData metadata, SCope loom output, and GraphML regulon export.sub-skills/cli-and-containers/SKILL.md for end-to-end grn -> ctx -> aucell command plans, @args.txt, Docker/Podman/Singularity/Apptainer, and HPC cautions.For a normal user environment, prefer a fresh Python environment compatible with scientific Python wheels, then install pySCENIC:
pip install pyscenic
python -c "import pyscenic; print('pyscenic import ok')"
pyscenic --help
If a source checkout is being inspected or developed, install that checkout into an isolated environment and run the same import and CLI checks. Avoid installing broad notebook, Scanpy, or documentation extras unless the task specifically requires them.
ctx step.pySCENIC does not download large ranking databases or motif annotation resources automatically. Treat those files as explicit user-provided inputs and validate their format before launching expensive runs.