Nextflow Module(模組)設計教學
🔹 基本模組結構(單一 process 模組)
process FASTQC {
tag "$sample_id"
input:
tuple val(sample_id), path(reads)
output:
path "${sample_id}_fastqc.zip" emit: fastqc_zip
script:
"""
fastqc $reads -o .
mv *.zip ${sample_id}_fastqc.zip
"""
}🔹 主 workflow 中呼叫模組
🔹 模組匯入方式(include)
🔹 使用 emit 與輸出名稱
🔹 模組化設計原則
原則
說明
🔹 進階:模組參數與 config 整合
🔹 子流程模組(subworkflow)
Last updated