-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnextflow.config
150 lines (124 loc) · 3.68 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/****************************
Default parameter values
nextflow run script.nf --genome "./test-data/ref/*.fasta"
****************************/
params {
help = false
// Output directory
outdir = './GATK_Results'
// Reference genome to map against when looking for SNPs
genome = false
gtf = false
// Either input reads as a glob pattern or as a tab delimited file
seq = 'dna'
reads = false
reads_file = false
long_reads = false
// invariant
invariant = false // Keep invariant sites in vcf
// link executables (optional)
singularity_img = 'shub://aseetharam/gatk:latest'
docker_img = 'j23414/gatk4'
container_img = 'docker://ghcr.io/aseetharam/gatk:master'
gatk_app = 'gatk'
gatk_haplotype_caller_params = ""
star_app = 'STAR'
bwamem2_app = 'bwa-mem2'
samtools_app = 'samtools'
bedtools_app = 'bedtools'
datamash_app = 'datamash'
vcftools_app = 'vcftools'
pbmm2_app = 'pbmm2'
star_index_params = "" //Example use case to limit memory during STAR_index : https://github.com/alexdobin/STAR/issues/1159
star_index_file = false // Speedup by using a pre-existing star index file
// other runtime options
java_options = false // example "-Xmx60g -XX:+UseParallelGC"
window = 100000
queueSize = 40
account = false // HPC account name
gatk_cluster_options = false
threads = false
}
env {
// == link executables
bwamem2_app = "$params.bwamem2_app"
samtools_app = "$params.samtools_app"
star_app = "$params.star_app"
star_index_params = params.star_index_params ? "$params.star_index_params" : " "
star_index_file = params.star_index_file
bedtools_app = "$params.bedtools_app"
gatk_app = "$params.gatk_app"
gatk_HaplotypeCaller_params = params.gatk_haplotype_caller_params ? "$params.gatk_haplotype_caller_params" : " "
datamash_app = "$params.datamash_app"
vcftools_app = "$params.vcftools_app"
pbmm2_app = "$params.pbmm2_app"
// == slurm or other options
account_flag = params.account ? " --account $params.account " : ' '
java_options = params.java_options ? "$params.java_options" : "-Xmx80g -XX:+UseParallelGC -Djava.io.tmpdir=\$TMPDIR"
threads = params.threads ? $params.threads : 4
gatk_clusterOptions = params.gatk_cluster_options ? "$params.gatk_cluster_options" : "-n 1 -n 36 -t 24:00:00"
}
/****************************
Default process settings
****************************/
process {
publishDir = "$params.outdir"
}
/****************************
Settings for different computiong hardware
****************************/
executor {
queueSize = "$params.queueSize"
submitRateLimit = '10 sec'
}
profiles {
local {
cpus = 4
}
slurm {
includeConfig 'configs/slurm.config'
}
condo {
includeConfig 'configs/slurm.config'
}
atlas {
includeConfig 'configs/slurm.config'
}
ceres {
includeConfig 'configs/slurm.config'
}
docker {
includeConfig 'config/container.config'
docker.enabled = true
}
singularity {
includeConfig 'configs/container.config'
singularity.enabled = true
}
// miniconda { process.conda = 'environment.yml' }
// awsbatch, conda, test can be added later
}
singularity.autoMounts = true
docker.runOptions = '-u \$(id -u):\$(id -g)'
/*****************************
Generate html runtime reports
-with-timeline timeline.html
-with-report report.html
*****************************/
timeline {
enabled = true
file = "$params.outdir/timeline.html"
}
report {
enabled = true
file = "$params.outdir/report.html"
}
/**********************************
Author and software info here
**********************************/
manifest {
name = 'isugifNF/GATK'
description = 'GATK pipeline'
mainScript = 'main.nf'
version = '1.0.0'
}