forked from TORCH-Consortium/MAGMA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
68 lines (51 loc) · 1.65 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
manifest {
name = 'MAGMA'
description = 'MAGMA is a pipeline for comprehensive genomic analyses of Mycobacterium tuberculosis with a focus on clinical decision making as well as research.'
version = '1.0.1'
author = 'TORCH-Consortium'
defaultBranch = 'master'
homePage = 'https://github.com/TORCH-Consortium/MAGMA'
}
params { includeConfig 'default_params.config' }
process {
//Default values if a label hasn't been specified within a process
cpus = 4
memory = 4.GB
//Default action is to ignore the process if the second attempt fails
errorStrategy = { task.attempt < 3 ? 'retry' : 'ignore' }
//NOTE: These labels are ordered by number of cpus allocated and then the memory
withLabel: 'cpu_2_memory_2' {
cpus = 2
memory = 2.GB
}
withLabel: 'cpu_4_memory_8' {
cpus = 4
memory = 8.GB
}
withLabel: 'cpu_4_memory_16' {
cpus = 4
memory = 16.GB
}
withLabel: 'cpu_8_memory_4' {
cpus = 8
memory = 4.GB
}
withLabel: 'cpu_8_memory_8' {
cpus = 8
memory = 8.GB
}
withName: 'SAMPLESHEET_VALIDATION' {
//NOTE: If this process fails, terminate the pipeline execution
errorStrategy = 'terminate'
}
}
profiles {
// Package management specific settings
conda_local { includeConfig 'conf/conda_local.config' }
docker { includeConfig 'conf/docker.config' }
// Executor specific settings
pbs { includeConfig 'conf/pbs.config' }
server { includeConfig 'conf/server.config' }
//NOTE: Test profile - DO NOT USE
test { includeConfig 'conf/test.config' }
}