This repository has been archived by the owner on May 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
base.config
150 lines (138 loc) · 4 KB
/
base.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
/*
vim: syntax=groovy
-*- mode: groovy;-*-
* -------------------------------------------------
* Nextflow base config file
* -------------------------------------------------
* A 'blank slate' config file, appropriate for general
* use on most high performace compute environments.
* Assumes that all software is installed and available
* on the PATH. Runs in `local` mode - all jobs will be
* run on the logged in environment.
*/
process {
cpus = 1
memory = 4.GB
time = 12.h // 140: run time exceeded. We set it to the normal queue maximum.
// 130: memory limit exceeded.
maxRetries = 2
maxErrors = '-1'
errorStrategy = 'ignore'
// Process-specific resource requirements
withName: irods {
errorStrategy = 'ignore'
memory = 2.GB
maxForks = 20
}
withName: crams_to_fastq {
errorStrategy = { task.exitStatus == 130 && task.attempt <= process.maxRetries ? 'retry' : 'ignore' }
cpus = { 2 * 2 * Math.min(2, task.attempt) }
memory = { 4.GB + 8.GB * (task.attempt-1) }
}
withName: get_fastq_files_from_bam {
cpus = 4
memory = 8.GB
}
withName: star {
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'ignore' }
cpus = { 8 * Math.min(2, task.attempt) }
// Note below grows to about 100GB on 2 retries.
memory = { 40.GB * task.attempt * 1.6 ** (task.attempt - 1) }
}
withName: featureCounts {
errorStrategy = 'retry'
cpus = { 2 * task.attempt }
memory = { 4.GB + 6.GB * (task.attempt-1) }
}
withLabel: merge_feature {
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'ignore' }
cpus = { 2 ** Math.min(3, task.attempt) }
memory = { 8.GB * task.attempt }
}
withName: fastqc {
cpus = { 1 * task.attempt }
memory = { 4.GB * task.attempt }
}
withName: mixcr {
cpus = { 4 * task.attempt }
memory = { 10.GB * task.attempt }
}
withName: tracer_assemble {
cpus = 2
memory = { 10.GB * task.attempt }
}
//SIMON CHANGED
/*
withName: tracer_summarise {
queue = 'long'
cpus = 8
memory = { 30.GB * task.attempt }
}
*/
withName: tracer_summarise{
cpus = 16
memory = 256.GB
queue = 'basement'
time = 720.h
}
withName: multiqc {
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'ignore' }
cpus = { 1 * task.attempt }
memory = { 8.GB * task.attempt }
}
withName: mapsummary {
errorStrategy = 'ignore'
cpus = 1
memory = 1.GB
}
withName: indexbam {
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'ignore' }
cpus = 1
memory = { 2.GB + 6.GB * (task.attempt - 1) }
}
withName: lostcause {
errorStrategy = 'ignore'
cpus = 1
memory = 1.GB
}
withName: workflow_manifest {
errorStrategy = 'ignore'
cpus = 1
memory = 1.GB
}
withName: salmon {
cpus = { 4 * task.attempt }
memory = { 8.GB * task.attempt }
}
withName: merge_salmoncounts {
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'ignore' }
cpus = { 1 * task.attempt }
memory = { 15.GB * task.attempt }
}
withName: hisat2_align {
cpus = { 4 * task.attempt }
memory = { 10.GB * task.attempt }
}
withName: hisat2_sort {
errorStrategy = { task.exitStatus == 130 && task.attempt <= process.maxRetries ? 'retry' : 'ignore' }
cpus = { 2 ** (1 + task.attempt) }
memory = { 4.GB + 4.GB * (task.attempt-1) }
}
withName:makeSalmonIndex {
cpus = 8
memory = { 80.GB + 40.GB * (task.attempt-1) }
}
withName:makeSTARindex {
cpus = 8
memory = { 80.GB + 40.GB * (task.attempt-1) }
}
}
params {
// Defaults only, expecting to be overwritten
max_memory = 128.GB
max_cpus = 16
max_time = 12.h
REF_PATH="/lustre/scratch117/core/sciops_repository/cram_cache/%2s/%2s/%s:/lustre/scratch118/core/sciops_repository/cram_cache/%2s/%2s/%s:URL=http:://sf2-farm-srv1.internal.sanger.ac.uk::8000/%s"
REF_CACHE="/lustre/scratch117/cellgen/cellgeni/TIC-bulkseq/.cache"
IGDATA="/ncbi-igblast-1.7.0/bin"
}