-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
95 lines (82 loc) · 4.33 KB
/
nextflow.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* -------------------------------------------------
* TRON-Bioinformatics/tronflow-haplotype-caller Nextflow config file
* -------------------------------------------------
* Default config options for all environments.
*/
params.memory_haplotype_caller = "16g"
params.cpus_haplotype_caller = 2
profiles {
conda { params.enable_conda = true }
debug { process.beforeScript = 'echo $HOSTNAME' }
test {
params.reference = "$baseDir/test_data/ucsc.hg19.minimal.fasta"
params.intervals = "$baseDir/test_data/intervals.minimal.bed"
params.dbsnp = "$baseDir/test_data/gnomad.minimal.vcf.gz"
params.hapmap = "$baseDir/test_data/gnomad.minimal.vcf.gz"
params.thousand_genomes = "$baseDir/test_data/gnomad.minimal.vcf.gz"
params.memory_haplotype_caller = "2g"
params.cpus_haplotype_caller = 1
params.memory_filter = "2g"
params.cpus_filter = 1
timeline.enabled = false
report.enabled = false
trace.enabled = false
dag.enabled = false
}
}
// Export this variable to prevent local Python libraries from conflicting with those in the container
env {
PYTHONNOUSERSITE = 1
}
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
VERSION = '1.0.1'
DOI = 'https://zenodo.org/badge/latestdoi/437462852'
manifest {
name = 'TRON-Bioinformatics/tronflow-haplotype-caller'
author = 'Pablo Riesgo-Ferreiro'
homePage = 'https://github.com/TRON-Bioinformatics/tronflow-haplotype-caller'
description = 'GATKs Haplotype Caller best practices workflow for germline variant calling'
mainScript = 'main.nf'
nextflowVersion = '>=19.10.0'
version = VERSION
doi = DOI
}
params.help_message = """
TronFlow HaplotypeCaller v${VERSION} ${DOI}
Usage:
nextflow run tron-bioinformatics/tronflow-haplotype-caller -profile conda --input_files input_files \
--reference reference.fasta \
--dbsnp dbsnp.vcf \
--thousand_genomes 1000g.vcf \
--hapmap hapmap.vcf
Input:
* input_files: the path to a tab-separated values file containing in each row the sample name, tumor bam and normal bam
The input file does not have header!
Example input file:
name1 bam_file
name2 bam_file_2
* reference: path to the FASTA genome reference (indexes expected *.fai, *.dict)
* dbsnp: path to the dbSNP resource (not required if --skip_vqsr)
* thousand_genomes: path to the 1000 genomes + Omni resource as provided in the GATK bundle (not required if --skip_vqsr)
* hapmap: path to the HapMap resource as provided in the GATK bundle (not required if --skip_vqsr)
Optional input:
* input_bam: the one or more comma separated BAM files (alternative input to --input_files)
* input_name: the sample name (alternative input to --input_files)
* ploidy: use this parameter to provide the ploidy of the sample (default: 2)
* skip_vqsr: skips the Variant Quality Score Recalibration. The variant calls have higher quality but it requires resources not available for all organisms
* intervals: path to a BED file containing the regions to analyse
* output: the folder where to publish output
* memory_haplotype_caller: the ammount of memory used by HaplotypeCaller (default: 16g)
* cpus_haplotype_caller: the number of CPUs used by HaplotypeCaller (default: 2)
* memory_filter: the ammount of memory used by the filter pipeline (default: 16g)
* cpus_filter: the number of CPUs used by the filter pipeline (default: 2)
* min_quality: minimum HaplotypeCaller Phred confidence to emit a call (default: no filter)
* use_soft_clipped_bases: enable the use of soft clipped bases
* indels_hard_filters: when --skip_vqsr these hard filters are applied over indel calls (default: --cluster-window-size 35 --cluster-size 3 -filter "QD < 2.0" -filter-name "QD2" -filter "FS > 30.0" -filter-name "FS30" -filter "ReadPosRankSum < -20.0" -filter-name "ReadPosRankSum-20" )
* snvs_hard_filters: when --skip_vqsr these hard filters are applied over SNV calls (default: --cluster-window-size 35 --cluster-size 3 -filter "QD < 2.0" -filter-name "QD2" -filter "FS > 30.0" -filter-name "FS30" -filter "SOR > 3.0" -filter-name "SOR3" -filter "MQ < 40.0" -filter-name "MQ40" -filter "MQRankSum < -12.5" -filter-name "MQRankSum-12.5" -filter "ReadPosRankSum < -8.0" -filter-name "ReadPosRankSum-8" )
Output:
* Output VCF
* Other intermediate files
"""