Skip to content

Commit

Permalink
refactor how parameters are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
priesgo committed Feb 2, 2022
1 parent c61b987 commit a6aa58b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/04_vafator.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ process VAFATOR {

script:
bams_param = bams.collect { b -> "--bam " + b.split(":").join(" ") }.join(" ")
mq_param = "--mapping-quality " + params.mapping_quality
bq_param = "--base-call-quality " + params.base_call_quality
"""
vafator \
--input-vcf ${vcf} \
--output-vcf ${vcf.baseName}.vaf.vcf ${bams_param} ${mq_param} ${bq_param}
--output-vcf ${vcf.baseName}.vaf.vcf \
${bams_param} \
--mapping-quality ${params.mapping_quality} \
--base-call-quality ${params.base_call_quality}
"""
}

Expand Down

0 comments on commit a6aa58b

Please sign in to comment.