Nextflow params 使用說明
🔹 在 main.nf 中定義參數
main.nf 中定義參數params.input = "data/sample.csv"
params.outdir = "results"
params.threads = 4process EXAMPLE {
input:
path sample_file from file(params.input)
output:
path "*.txt" into result_files
script:
"""
cp $sample_file output.txt
"""
}🔹 執行時使用命令列覆蓋 params
params🔹 在 nextflow.config 中設定預設值
nextflow.config 中設定預設值🔹 使用三元運算設定預設值
🔹 結合 YAML 檔傳入參數
🔹 檢查與除錯 params
params🔹 常見使用場景
場景
範例
Last updated