This repository was archived by the owner on Jan 27, 2020. It is now read-only.
forked from nf-core/sarek
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathuppmax-slurm.config
More file actions
141 lines (137 loc) · 3.33 KB
/
uppmax-slurm.config
File metadata and controls
141 lines (137 loc) · 3.33 KB
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
/*
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
* Slurm configuration for UPPMAX clusters
* -------------------------------------------------
*/
params {
genome_base = params.genome == 'GRCh37' ? '/sw/data/uppnex/ToolBox/ReferenceAssemblies/hg38make/bundle/2.8/b37' : params.genome == 'GRCh38' ? '/sw/data/uppnex/ToolBox/hg38bundle' : 'References/smallGRCh37'
runTime = 48.h
singleCPUMem = 7.GB // for processes that are using more memory but a single CPU only. Use the 'core' queue for these
}
process {
clusterOptions = {"-A $params.project"}
cpus = 16
executor = 'slurm'
memory = 110.GB
queue = 'node'
scratch = true
time = 48.h
errorStrategy = {task.exitStatus == 143 ? 'retry' : 'terminate'}
maxErrors = '-1'
maxRetries = 3
$BuildBWAindexes {
}
$BuildPicardIndex {
}
$BuildSAMToolsIndex {
}
$BuildVCFIndex {
}
$ConcatVCF {
queue = 'core'
}
$CreateRecalibrationTable {
cpus = 10
memory = {params.singleCPUMem * 8 * task.attempt}
queue = 'core'
time = {params.runTime * task.attempt}
}
$IndelRealigner {
cpus = 1
memory = {params.singleCPUMem * task.attempt}
queue = 'core'
time = {params.runTime * task.attempt}
}
$MapReads {
time = {params.runTime * task.attempt}
}
$MarkDuplicates {
// looks like overkill, but for deep sequencing we do need all the memory
}
$MergeBams {
memory = {params.singleCPUMem * task.attempt}
queue = 'core'
time = {params.runTime * task.attempt}
}
$RealignerTargetCreator {
time = {params.runTime * task.attempt}
}
$RecalibrateBam {
cpus = 8
memory = {params.singleCPUMem * 8 * task.attempt}
queue = 'core'
time = {params.runTime * task.attempt}
}
$RunAlleleCount {
cpus = 1
memory = {params.singleCPUMem * 2 * task.attempt}
queue = 'core'
}
$RunAscat {
cpus = 1
memory = {params.singleCPUMem * 2 * task.attempt}
queue = 'core'
}
$RunBamQC {
}
$RunBcftoolsStats {
cpus = 1
}
$RunConvertAlleleCounts {
cpus = 1
memory = {params.singleCPUMem * 2 * task.attempt}
queue = 'core'
}
$RunFastQC {
errorStrategy = { task.exitStatus == 143 ? 'retry' : 'ignore' }
}
$RunFreeBayes {
cpus = 1
memory = {params.singleCPUMem * task.attempt}
queue = 'core'
time = {params.runTime * task.attempt}
}
$RunHaplotypecaller {
cpus = 1
// Increase memory quadratically
memory = {params.singleCPUMem * task.attempt * task.attempt}
queue = 'core'
time = {params.runTime * task.attempt}
}
$RunGenotypeGVCFs {
cpus = 1
memory = {params.singleCPUMem}
}
$RunManta {
}
$RunMultiQC {
errorStrategy = { task.exitStatus == 143 ? 'retry' : 'ignore' }
}
$RunMutect2 {
cpus = 1
memory = {params.singleCPUMem * task.attempt}
queue = 'core'
time = {params.runTime * task.attempt}
}
$RunSamtoolsStats {
cpus = 1
time = {params.runTime * task.attempt}
}
$RunSingleManta {
}
$RunSingleStrelka {
time = {params.runTime * task.attempt}
}
$RunSnpeff {
errorStrategy = { task.exitStatus == 143 ? 'retry' : 'ignore' }
}
$RunStrelka {
time = {params.runTime * task.attempt}
}
$RunVEP {
cpus = 1
errorStrategy = { task.exitStatus == 143 ? 'retry' : 'ignore' }
}
}