-
Notifications
You must be signed in to change notification settings - Fork 10
/
nextflow.config
169 lines (143 loc) · 4.97 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
// utility imports
import nextflow.trace.TraceFileObserver
// 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
file = "${launchDir}/trace/${TraceFileObserver.DEF_FILE_NAME}"
}
process {
container = 'grapenf/base'
}
// Pipeline profiles
profiles {
// default profile - same as starrsem with sambamba sorting
standard {
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"
}
// 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"
}
// 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"
}
// 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"
}
// 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"
}
// 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"
}
// IHEC profile
ihec {
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"
params.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.starVersion = '2.5.1b'
params.rsemVersion = '1.2.23'
}
}