forked from CFSAN-Biostatistics/C-WAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
executable file
·99 lines (75 loc) · 1.86 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
#! /usr/bin/env nextflow
// C-WAP NextFlow configuration script
// Clear the work directory after successfull execution
// cleanup = true
manifest {
homePage = 'https://github.com/CFSAN-Biostatistics/C-WAP'
description = 'C-WAP: CFSAN Wastewater Analysis Pipeline'
author = 'Tunc Kayikcioglu / FDA / CFSAN, maintained by Jasmine Amirzadegan / FDA / CFSAN'
mainScript = 'startWorkflow.nf'
}
params {
referenceSequence = "$projectDir/covidRefSequences/wuhan.fa"
variantDBfile = "$projectDir/covidRefSequences/varDefinitions.pkl"
primerBedFile = "$projectDir/covidRefSequences/none.bed"
in = "./"
out = "./"
make_pdfs = true
}
conda {
cacheDir = "$projectDir/conda"
createOptions = '-c bioconda -c conda-forge -c defaults'
conda.createTimeout = '3 h'
}
process {
shell = ['/bin/bash','-e']
//clusterOptions = '-x n227,n228'
// errorStrategy = 'retry'
errorStrategy = {sleep(2000); return 'retry'} // Wait for 2000ms before re-trying. Waiting gives automount a reaction time.
maxRetries = 5
// Disabled, as it increases computation time.
// scratch = "ram-disk"
// scratch = true
}
// This block needs to be modified to customise for the available computational resources
profiles {
local_only {
process.executor = 'local'
}
standard {
executor {
name = 'slurm'
queueSize = 400
// queueStatInterval = '30 sec'
}
process {
executor = 'slurm'
// queue = <partition name here>
time = '1 h'
cpus = 2
memory = '8 GB'
withLabel: high_cpu {
cpus = 20
}
}
}
aws {
executor {
name = 'slurm'
queueSize = 400
}
process {
time = '1 h'
cpus = 2
memory = '8 GB'
withLabel: high_cpu {
cpus = 15
}
withLabel: high_IO {
// Execute only a few at a time.
// This reduces storage IO by avoiding concurrent read access.
maxForks = 2
}
}
}
}