-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnextflow.config
115 lines (107 loc) · 2.81 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
// Configuration File
manifest {
author = 'Phelelani Mpangase'
homePage = 'https://github.com/phelelani/nf-rnaSeqCount'
description = 'rnaSeqCount pipeline'
mainScript = 'main.nf'
version = '0.2'
}
// CHECK INPUTS AND OUTPUTS:
params {
help = null
workflow = null
runOptions = ""
}
// SINGULARITY OPTIONS
singularity {
enabled = true
autoMounts = true
cacheDir = "$HOME/.singularity/cache"
runOptions = "${params.runOptions}" + " --cleanenv"
}
// ALL PROCESSESS SETTINGS
process {
// ALL PROCESSES
cache = true
scratch = false
stageInMode = 'symlink'
stageOutMode = 'rsync'
// DEFAULT RESOURCES
cpus = 1
memory = 4.GB
time = 24.h
// CONTAINERS AND RESOURCES
withLabel: 'star' {
cpus = 32
memory = 128.GB
time = 48.h
container = 'docker://phelelani/nf-rnaseqcount:star'
}
withLabel: 'bowtie' {
cpus = 32
memory = 128.GB
time = 48.h
container = 'docker://phelelani/nf-rnaseqcount:bowtie2'
}
withLabel: 'fastqc' {
container = 'docker://phelelani/nf-rnaseqcount:fastqc'
}
withLabel: 'trimmomatic' {
cpus = 32
memory = 128.GB
time = 48.h
container = 'docker://phelelani/nf-rnaseqcount:trimmomatic'
}
withLabel: 'htseqcount' {
container = 'docker://phelelani/nf-rnaseqcount:htseqcount'
}
withLabel: 'featurecounts' {
cpus = 16
memory = 32.GB
time = 48.h
container = 'docker://phelelani/nf-rnaseqcount:featurecounts'
}
withLabel: 'multiqc' {
container = 'docker://phelelani/nf-rnaseqmetagen:multiqc'
}
}
// PIPELINE TRACING, VISUALIZATION AND HELP
def pipelineHelp() {
if (params.help || params.workflow == null) {
} else if (params.workflow in [ 'genome-indexing', 'read-qc', 'read-trimming', 'read-alignment', 'read-counting' ]) {
trace {
enabled = true
overwrite = true
file = "${launchDir}/exec_report/${params.workflow}_trace.txt"
}
timeline {
enabled = true
overwrite = true
file = "${launchDir}/exec_report/${params.workflow}_timeline.html"
}
report {
enabled = true
overwrite = true
file = "${launchDir}/exec_report/${params.workflow}_report.html"
}
} else {}
}
// PROFILES AND PROCESS OPTIONS
profiles {
standard {
process.executor = 'local'
pipelineHelp()
}
wits {
process.executor = 'slurm'
process.queue = 'batch'
pipelineHelp()
}
ilifu {
process.executor = 'slurm'
process.queue = 'Main'
pipelineHelp()
}
}