常見的 Snakemake 專案目錄結構
my-snakemake-pipeline/
├── Snakefile # 主要流程入口,可 include 或 use 模組
├── config.yaml # 使用者參數設定檔(建議放常數與樣本資訊)
├── envs/ # Conda 環境定義檔
│ └── tool.yaml # 每個工具一個環境
├── rules/ # 各步驟規則拆分(使用 include)
│ ├── qc.smk
│ └── align.smk
├── modules/ # Snakemake 模組(使用 use rule from)
│ └── fastp/
│ └── Snakefile
├── scripts/ # 外部執行用 script(bash, R, Python)
│ └── helper.py
├── resources/ # 參考檔案(如 GTF, BED)
│ └── hg38.gtf
├── data/ # 測試或示範資料
│ └── test_R1.fastq.gz
├── results/ # 輸出資料目錄(可忽略於 git)
│ └── logs/
├── logs/ # 執行 log 或錯誤輸出
├── .gitignore # 忽略資料夾,如 results/, .snakemake/
├── README.md # 說明與執行方式文件
├── LICENSE # 授權條款(建議使用 MIT 或 GPL)
├── .github/ # GitHub Actions CI(可選)
│ └── workflows/
│ └── test.yaml
└── docs/ # 說明文件、圖表、報告(可搭 GitHub Pages)
└── usage.md✅ 建議事項
Last updated