Python 风格的可复现工作流引擎,常用于本地、HPC 和云端生信流程编排。Pythonic workflow engine for reproducible pipelines.
mamba install -c conda-forge -c bioconda snakemake
本地运行:
snakemake --cores 8
空跑查看计划:
snakemake --dry-run --printshellcmds
使用 Conda 环境:
snakemake --cores 8 --use-conda
生成 DAG:
snakemake --dag | dot -Tpdf > dag.pdf
生成 HTML report:
snakemake --report report.html
--cores:本地核心数。--dry-run:只展示将运行的任务。--printshellcmds:打印 shell 命令。--use-conda:按 rule 创建 Conda 环境。--configfile:指定配置文件。--rerun-incomplete:重跑未完成任务。