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 pathresources.config
More file actions
119 lines (115 loc) · 3.81 KB
/
resources.config
File metadata and controls
119 lines (115 loc) · 3.81 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
/*
* -------------------------------------------------
* Nextflow config file for Sarek
* -------------------------------------------------
* Generalized resource configuration for clusters
* -------------------------------------------------
*/
params {
singleCPUMem = 7.GB // for processes that are using more memory but a single CPU only. Use the 'core' queue for these
}
process {
cpus = { check_max( 10, 'cpus' ) }
memory = { check_max( 16.GB * task.attempt, 'memory' ) }
time = { check_max( 8.h * task.attempt, 'time' ) }
errorStrategy = {task.exitStatus == 143 ? 'retry' : 'terminate'}
maxErrors = '-1'
maxRetries = 3
withName:MapReads {
memory = { check_max( 60.GB * task.attempt, 'memory' ) }
cpus = { check_max( 16, 'cpus' ) }
}
withName:CreateRecalibrationTable {
cpus = { check_max( 1, 'cpus' ) }
memory = { check_max( 60.GB * task.attempt, 'memory') }
}
withName:MarkDuplicates {
// Actually the -Xmx value should be kept lower,
// and is set through the markdup_java_options
cpus = { check_max( 8, 'cpus' ) }
memory = { check_max( 8.GB * task.attempt, 'memory' ) }
}
withName:MergeBams {
cpus = { check_max( 4, 'cpus') }
memory = {params.singleCPUMem * task.attempt}
time = { check_max( 5.h * task.attempt, 'time' ) }
}
withName:RecalibrateBam {
cpus = { check_max( 2, 'cpus' ) }
memory = { check_max( 7.GB * 2 * task.attempt, 'memory' ) }
time = { check_max( 10.h * task.attempt, 'time' ) }
}
withName:RunAlleleCount {
cpus = { check_max( 1, 'cpus' ) }
memory = { check_max( 14.GB * task.attempt, 'memory' ) }
}
withName:RunAscat {
cpus = { check_max( 1, 'cpus' ) }
memory = { check_max( 14.GB * task.attempt, 'memory' ) }
}
withName:RunBamQCmapped {
cpus = { check_max( 6, 'cpus' ) }
memory = { check_max( 70.GB, 'memory' ) }
}
withName:RunBamQCrecalibrated {
cpus = { check_max( 6, 'cpus' ) }
memory = { check_max( 70.GB, 'memory' ) }
}
withName:RunBcftoolsStats {
cpus = { check_max( 1, 'cpus' ) }
}
withName:RunConvertAlleleCounts {
cpus = { check_max( 1, 'cpus' ) }
memory = { check_max( 14.GB * task.attempt, 'memory' ) }
}
withName:RunFastQC {
cpus = { check_max( 2, 'cpus' ) } // FastQC is only capable of running one thread per fastq file.
errorStrategy = { task.exitStatus == 143 ? 'retry' : 'ignore' }
}
withName:RunFreeBayes {
cpus = { check_max( 1, 'cpus' ) }
memory = { check_max( 8.GB * task.attempt, 'memory' ) }
}
withName:RunHaplotypecaller {
cpus = { check_max( 1, 'cpus' ) }
// Increase memory quadratically
memory = { check_max( 7.GB * 2 * task.attempt, 'memory' ) }
time = { check_max( 5.h * task.attempt, 'time' ) }
}
withName:RunGenotypeGVCFs {
cpus = { check_max( 1, 'cpus' ) }
memory = { check_max( 7.GB * task.attempt, 'memory' ) }
}
withName:RunMultiQC {
errorStrategy = { task.exitStatus == 143 ? 'retry' : 'ignore' }
}
withName:RunMutect2 {
cpus = { check_max( 2, 'cpus' ) }
memory = { check_max( 7.GB * task.attempt, 'memory' ) }
time = { check_max( 5.h * task.attempt, 'time' ) }
}
withName:RunSamtoolsStats {
cpus = { check_max( 2, 'cpus' ) }
time = { check_max( 5.h * task.attempt, 'time' ) }
}
withName:RunSingleManta {
cpus = { check_max( 20, 'cpus' ) }
memory = { check_max( 16.GB, 'memory') }
}
withName:RunSingleStrelka {
cpus = { check_max( 20, 'cpus' ) }
memory = { check_max( 16.GB, 'memory') }
time = { check_max( 5.h * task.attempt, 'time' ) }
}
withName:RunSnpeff {
cpus = { check_max( 1, 'cpus' ) }
}
withName:RunStrelka {
cpus = { check_max( 1, 'cpus' ) }
time = { check_max( 5.h * task.attempt, 'time' ) }
}
withName:RunVEP {
cpus = { check_max( 4, 'cpus' ) }
memory = {check_max (32.GB * task.attempt, 'memory' ) }
}
}