forked from guigolab/grape-nf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
179 lines (147 loc) · 5.61 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
// main script name
manifest.mainScript = 'grape-pipeline.nf'
// small input dataset for testing
params {
index = "$baseDir/test-index.txt"
genome = "$baseDir/data/genome.fa"
annotation = "$baseDir/data/annotation.gtf"
}
// Docker is disabled by default and uses the following options when activated
docker {
sudo = false
fixOwnership = true
runOptions = '-u $(id -u)'
}
// Singularity is disabled by default and uses autoMounts when enabled
singularity {
autoMounts = true
}
// Enable trace by default
trace.enabled = true
// Pipeline profiles
profiles {
// default profile - same as starrsem with sambamba sorting
standard {
params.mappingSortTool = "sambamba"
params.fastaIndexTool = "samtools"
params.mappingTool = "STAR"
params.mergeBamTool = "sambamba"
params.markdupTool = "sambamba"
params.inferExpTool = "RSeQC"
params.bamStatsTool = "bamstats"
params.bigwigTool = "STAR"
params.contigTool = "RGCRG"
params.quantificationTool = "RSEM"
includeConfig "config/container/docker-multi.config"
}
// profile with STAR and RSEM
starrsem {
params.fastaIndexTool = "samtools"
params.mappingTool = "STAR"
params.mergeBamTool = "sambamba"
params.markdupTool = "sambamba"
params.inferExpTool = "RSeQC"
params.bamStatsTool = "bamstats"
params.bigwigTool = "STAR"
params.contigTool = "RGCRG"
params.quantificationTool = "RSEM"
includeConfig "config/container/docker-multi.config"
}
// profile with STAR and FLUX
starflux {
params.fastaIndexTool = "samtools"
params.mappingTool = "STAR"
params.mergeBamTool = "sambamba"
params.markdupTool = "sambamba"
params.inferExpTool = "RSeQC"
params.bamStatsTool = "bamstats"
params.bigwigTool = "STAR"
params.contigTool = "RGCRG"
params.quantificationTool = "FLUX"
includeConfig "config/container/docker-multi.config"
}
// profile with GEM and FLUX
gemflux {
params.fastaIndexTool = "samtools"
params.mappingTool = "GEM"
params.mergeBamTool = "sambamba"
params.markdupTool = "sambamba"
params.inferExpTool = "RSeQC"
params.bamStatsTool = "bamstats"
params.bigwigTool = "RGCRG"
params.contigTool = "RGCRG"
params.quantificationTool = "FLUX"
includeConfig "config/container/docker-multi.config"
}
// same as starrsem profile with an additional step to mark duplicates
markdup {
params.markDuplicates = true
params.fastaIndexTool = "samtools"
params.mappingTool = "STAR"
params.mergeBamTool = "sambamba"
params.markdupTool = "sambamba"
params.inferExpTool = "RSeQC"
params.bamStatsTool = "bamstats"
params.bigwigTool = "STAR"
params.contigTool = "RGCRG"
params.quantificationTool = "RSEM"
includeConfig "config/container/docker-multi.config"
}
// same as starrsem profile with an additional step to remove duplicates
rmdup {
params.removeDuplicates = true
params.fastaIndexTool = "samtools"
params.mappingTool = "STAR"
params.mergeBamTool = "sambamba"
params.markdupTool = "sambamba"
params.inferExpTool = "RSeQC"
params.bamStatsTool = "bamstats"
params.bigwigTool = "STAR"
params.contigTool = "RGCRG"
params.quantificationTool = "RSEM"
includeConfig "config/container/docker-multi.config"
}
// IHEC profile
ihec {
params.markDuplicates = true
params.mappingSortTool = 'sambamba'
includeConfig "$baseDir/config/fastaIndex/samtools.config"
includeConfig "$baseDir/config/mapping/STAR.config"
includeConfig "$baseDir/config/mergeBam/sambamba.config"
includeConfig "$baseDir/config/markdup/sambamba.config"
includeConfig "$baseDir/config/inferExp/RSeQC.config"
includeConfig "$baseDir/config/bamStats/bamstats.config"
includeConfig "$baseDir/config/bigwig/STAR.config"
includeConfig "$baseDir/config/contig/RGCRG.config"
includeConfig "$baseDir/config/quantification/RSEM.config"
process {
container = "grapenf/ihec:latest"
}
}
// Profile for using IHEC test dataset (must be used in conjunction with another computing profile)
"ihec-data" {
// IHEC test dataset (MCF10A) and references
params.index = "$baseDir/ihec-index.txt"
params.genome = 'http://ftp.ebi.ac.uk/pub/databases/blueprint/reference/20150407_reference_files/GRCh38_no_alt_analysis_set.201503031.fa.gz'
params.annotation = 'ftp://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/release_29/gencode.v29.annotation.gtf.gz'
// Computing resources
includeConfig "$baseDir/config/resources/ihec.config"
}
// Encode 3 profile with STAR and RSEM updated versions and STAR gene counts
encode3 {
params.mappingSortTool = "sambamba"
params.fastaIndexTool = "samtools"
params.mappingTool = "STAR"
params.mergeBamTool = "sambamba"
params.markdupTool = "sambamba"
params.inferExpTool = "RSeQC"
params.bamStatsTool = "bamstats"
params.bigwigTool = "STAR"
params.contigTool = "RGCRG"
params.quantificationTool = "RSEM"
params.mappingToolVersion = '2.5.1b'
params.bigwigToolVersion = '2.5.1b'
params.quantificationToolVersion = '1.2.23'
includeConfig "config/container/docker-multi.config"
}
}