-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
74 lines (64 loc) · 1.46 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
// Global default params, used in configs
params {
samplefile = null
outdir = "starsolo-results"
reference = '/nfs/cellgeni/STAR/human/2020A/index'
keep_bams = false
local = null
params.index_format = "i*i*"
HELP = false
}
// Singularity environment parameters
singularity {
enabled = true
autoMounts = true
cacheDir = '/nfs/cellgeni/singularity/images/'
runOptions = '-B /lustre,/nfs'
}
// Configuring LSF job submission parameters for each process
executor {
name = 'lsf'
perJobMemLimit = true
}
process {
errorStrategy = 'retry'
maxRetries = 5
withLabel: normal {
cpus = 1
memory = 2.GB
queue = 'normal'
}
withLabel: normal4core {
cpus = 4
memory = 2.GB
queue = 'normal'
maxForks = 10
}
withLabel: starsolo {
container = '/nfs/cellgeni/singularity/images/reprocess_10x.sif'
cpus = { 4 * task.attempt }
memory = { 32.GB * task.attempt }
queue = 'long'
maxForks = 5
}
}
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
// Capturing Nextflow log files into a reports directory
timeline {
enabled = true
file = "starsolo-reports/timeline.html"
overwrite = true
}
report {
enabled = true
file = "starsolo-reports/report.html"
overwrite = true
}
trace {
enabled = true
file = "starsolo-reports/trace.txt"
overwrite = true
}
// Ensures work directories and removed when pipeline completes
cleanup = true