Skip to content

Commit faae556

Browse files
authored
Merge pull request #6 from TRON-Bioinformatics/fix-vafator-params
ensure VAFator parameters are passed when 0 is provided + change the …
2 parents 811024d + a6aa58b commit faae556

4 files changed

Lines changed: 14 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Optional input:
6060
* --snpeff_organism: the SnpEff organism name (eg: hg19, hg38, GRCh37.75, GRCh38.99)
6161
* --snpeff_datadir: the SnpEff data folder where the reference genomes were previously downloaded. Required if --snpeff_organism is provided
6262
* --snpeff_args: additional SnpEff arguments
63+
* --mapping_quality: VAFator minimum mapping quality (default: 0)
64+
* --base_call_quality: VAFator minimum base call quality (default: 0)
6365
6466
Output:
6567
* Normalized VCF file
@@ -206,7 +208,7 @@ chr1 13325 . CT C . MNV-INDEL OLD_CLUMPED=chr1:13321:AGCCCT/CGCC GT:AD:PS 0:229,
206208
Same as MNVs this behaviour can de disabled with `--skip_decompose_complex`.
207209

208210

209-
## Technical annotations
211+
## Technical annotations (VAFator)
210212

211213
The technical annotations provide an insight on the variant calling process by looking into the context of each variant
212214
within the pileup of a BAM file. When doing somatic variant calling it may be relevant to have technical annotations

main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ params.filter = false
1919
params.cpus = 1
2020
params.memory = "4g"
2121
params.vcf_without_ad = false
22-
params.mapping_quality = false
23-
params.base_call_quality = false
22+
params.mapping_quality = 0
23+
params.base_call_quality = 0
2424
params.skip_multiallelic_filter = false
2525
params.snpeff_organism = false
2626
params.snpeff_args = ""

modules/04_vafator.nf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
params.cpus = 1
22
params.memory = "4g"
33
params.output = ""
4-
params.mapping_quality = false
5-
params.base_call_quality = false
4+
params.mapping_quality = 0
5+
params.base_call_quality = 0
66
params.skip_multiallelic_filter = false
77
params.enable_conda = false
88

@@ -23,12 +23,13 @@ process VAFATOR {
2323

2424
script:
2525
bams_param = bams.collect { b -> "--bam " + b.split(":").join(" ") }.join(" ")
26-
mq_param = params.mapping_quality ? "--mapping-quality " + params.mapping_quality : ""
27-
bq_param = params.base_call_quality ? "--base-call-quality " + params.base_call_quality : ""
2826
"""
2927
vafator \
3028
--input-vcf ${vcf} \
31-
--output-vcf ${vcf.baseName}.vaf.vcf ${bams_param} ${mq_param} ${bq_param}
29+
--output-vcf ${vcf.baseName}.vaf.vcf \
30+
${bams_param} \
31+
--mapping-quality ${params.mapping_quality} \
32+
--base-call-quality ${params.base_call_quality}
3233
"""
3334
}
3435

nextflow.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ env {
2727
// Capture exit codes from upstream processes when piping
2828
process.shell = ['/bin/bash', '-euo', 'pipefail']
2929

30-
VERSION = '2.1.2'
30+
VERSION = '2.1.3'
3131

3232
cleanup=true
3333

@@ -68,6 +68,8 @@ Optional input:
6868
* --snpeff_organism: the SnpEff organism name (eg: hg19, hg38, GRCh37.75, GRCh38.99)
6969
* --snpeff_datadir: the SnpEff data folder where the reference genomes were previously downloaded. Required if --snpeff_organism is provided
7070
* --snpeff_args: additional SnpEff arguments
71+
* --mapping_quality: VAFator minimum mapping quality (default: 0)
72+
* --base_call_quality: VAFator minimum base call quality (default: 0)
7173
7274
Output:
7375
* Normalized VCF file

0 commit comments

Comments
 (0)