-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow_schema.json
350 lines (350 loc) · 12.9 KB
/
nextflow_schema.json
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/sanger-pathogens/TpRNAseq/master/nextflow_schema.json",
"title": "TpRNAseq pipeline parameters",
"description": "NA",
"type": "object",
"defs": {
"input_options": {
"title": "Input Options",
"type": "object",
"fa_icon": "fas fa-terminal",
"description": "Define where the pipeline should find input data.",
"required": [
"manifest",
"reference",
"annotation",
"library_strandedness"
],
"properties": {
"manifest": {
"type": "string",
"description": "Path to a CSV manifest comprising 4 columns (ID, REP, R1, R2). ID is an arbitrary sample ID, REP describes replicate structure, R1 and R2 columns contain paths to *.fastq.gz files.",
"format": "file-path"
},
"reference": {
"type": "string",
"format": "file-path"
},
"annotation": {
"type": "string",
"description": "Path to genome annotation in GFF format.",
"format": "file-path"
},
"library_strandedness": {
"type": "string",
"description": "Strandedness of the RNAseq library. Options: reverse, forward, none.",
"enum": ["reverse", "forward", "none"]
}
}
},
"output_options": {
"title": "Output Options",
"type": "object",
"description": "Define what output the pipeline should save.",
"default": "",
"properties": {
"outdir": {
"type": "string",
"format": "directory-path",
"description": "The output directory where the results will be saved.",
"fa_icon": "fas fa-folder-open",
"default": "./results"
},
"keep_combined_fastqs": {
"type": "boolean",
"description": "Keep the combined fastqs."
},
"keep_trimmed_fastqs": {
"type": "boolean",
"description": "Keep the trimmed fastqs."
},
"keep_sorted_bam": {
"type": "boolean",
"description": "Keep the sorted bam files generated from mapping."
},
"keep_dedup_bam": {
"type": "boolean",
"description": "Keep the deduplicated bam files."
},
"keep_filtered_bam": {
"type": "boolean",
"description": "Keep filtered bam files."
}
}
},
"data_combining_options": {
"title": "Data Combining Options",
"type": "object",
"description": "",
"default": "",
"properties": {
"combine_level": {
"type": "string",
"default": "none",
"description": "Combine fastqs at the specified level. `replicate` will combine fastqs that have the same sample and replicate identifiers in the manifest. `sample` will combine fastqs that have the same sample identifiers in the manifest (i.e. it will combine replicates of the same sample). `none` will perform no combining (sample identifiers must be unique in this case).",
"enum": ["replicate", "sample", "none"]
}
}
},
"qc_options": {
"title": "QC Options",
"type": "object",
"description": "",
"default": "",
"properties": {
"skip_trim": {
"type": "boolean",
"description": "Skip trimming."
},
"trimmer": {
"type": "string",
"default": "fastp",
"description": "Software to use for trimming.",
"enum": ["fastp"]
},
"fastp_args": {
"type": "string",
"description": "Options and arguments that will be supplied to fastp to modify QC behaviour."
},
"dedup": {
"type": "boolean",
"description": "Remove duplicates (hopefully library prep artifacts) from bam file post-mapping."
},
"min_mapping_quality": {
"type": "integer",
"default": 2,
"description": "Remove alignments with MAPQ score smaller than given value."
}
}
},
"mapping_options": {
"title": "Mapping Options",
"type": "object",
"description": "",
"default": "",
"properties": {
"bowtie2_args": {
"type": "string",
"default": "--local --very-sensitive-local --rdg 8,4 --rfg 8,4 --no-mixed",
"description": "Options and arguments that will be supplied to Bowtie2 to modify mapping behaviour."
}
}
},
"counting_options": {
"title": "Counting Options",
"type": "object",
"description": "",
"default": "",
"properties": {
"htseq_args": {
"type": "string",
"default": "--type gene --idattr locus_tag --nonunique none --secondary-alignments ignore",
"description": "Options and arguments that will be supplied to htseq-count to modify counting behaviour."
},
"samtools_filter_args": {
"type": "string",
"default": "-f 2",
"description": "Arguments supplied to samtools to will be used to filter alignments of interest for counting.",
"help_text": "Acceptable arguments: -f, -F, --rf, -G, -e. See https://www.htslib.org/doc/samtools-view.html for more details. The default will only keep reads that aligned in proper pairs."
},
"annotate_feature_assignment": {
"type": "boolean",
"description": "Generate an annotated bam file where each read is assigned to the feature for which is has been counted.",
"help_text": "See https://htseq.readthedocs.io/en/master/htseqcount.html#cmdoption-htseq-count-o"
}
}
},
"coverage_options": {
"title": "Coverage Options",
"type": "object",
"description": "",
"default": "",
"properties": {
"skip_strand_specific_analysis": {
"type": "boolean",
"description": "Skip strand-specific coverage analysis."
},
"pairwise": {
"type": "boolean",
"description": "Generate pairwise sample comparison coverage plots."
},
"coverage_window_size": {
"type": "integer",
"default": 100,
"description": "Size of window or step over which to compute cumulative per base coverage (output as a wig file)."
},
"coverage_context": {
"type": "integer",
"default": 100,
"description": "Size of context around the annotated region (coverage_window_size base pairs either side) in the coverage plot."
}
}
},
"resource_request_options": {
"title": "Resource Request Options",
"type": "object",
"fa_icon": "fab fa-acquisitions-incorporated",
"description": "Set limits for requested resources.",
"help_text": "If you are running on a smaller system, a pipeline step requesting more resources than are available may cause the Nextflow to stop the run with an error. These options allow you to cap the maximum resources requested by any single job so that the pipeline will run on your system.\n\nNote that you can not _increase_ the resources requested by any job using these options. For that you will need your own configuration file. See [the nf-core website](https://nf-co.re/usage/configuration) for details.",
"properties": {
"max_cpus": {
"type": "integer",
"description": "Maximum number of CPUs that can be requested for any single job.",
"default": 256,
"fa_icon": "fas fa-microchip",
"help_text": "Use to set an upper-limit for the CPU requirement for each process. Should be an integer e.g. `--max_cpus 1`"
},
"max_memory": {
"type": "string",
"description": "Maximum amount of memory that can be requested for any single job.",
"default": "2.9 TB",
"fa_icon": "fas fa-memory",
"pattern": "^\\d+(\\.\\d+)?\\.?\\s*(K|M|G|T)?B$",
"help_text": "Use to set an upper-limit for the memory requirement for each process. Should be a string in the format integer-unit e.g. `--max_memory '8.GB'`"
},
"max_time": {
"type": "string",
"description": "Maximum amount of time that can be requested for any single job.",
"default": "30d",
"fa_icon": "far fa-clock",
"pattern": "^(\\d+\\.?\\s*(s|m|h|d|day)\\s*)+$",
"help_text": "Use to set an upper-limit for the time requirement for each process. Should be a string in the format integer-unit e.g. `--max_time '2.h'`"
},
"max_retries": {
"type": "integer",
"default": 2,
"description": "Maximum number of retries before ingnoring process failure."
},
"retry_strategy": {
"type": "string",
"default": "ignore",
"description": "Default retry strategy (used in the event that software fails to process data for an unexpected reason)"
},
"submit_rate_limit": {
"type": "string",
"hidden": true,
"description": "LSF-specific: Change the rate at which the pipeline will submit jobs on the cluster."
},
"queue_size": {
"type": "string",
"hidden": true,
"description": "LSF-specific: Maximum number of jobs pipeline will submit jobs on the cluster at any given time."
}
}
},
"generic_options": {
"title": "Generic options",
"type": "object",
"fa_icon": "fas fa-file-import",
"description": "Less common options for the pipeline, typically set in a config file.",
"help_text": "These options are common to all nf-core pipelines and allow you to customise some of the core preferences for how the pipeline runs.\n\nTypically these options would be set in a Nextflow config file loaded for all pipeline runs, such as `~/.nextflow/config`.",
"properties": {
"help": {
"type": "boolean",
"description": "Display help text.",
"fa_icon": "fas fa-question-circle",
"hidden": true
},
"monochrome_logs": {
"type": "boolean",
"description": "Do not use coloured log outputs.",
"fa_icon": "fas fa-palette",
"hidden": true
},
"multiqc_config": {
"type": "string",
"format": "file-path",
"description": "Custom config file to supply to MultiQC.",
"fa_icon": "fas fa-cog",
"hidden": true
},
"tracedir": {
"type": "string",
"default": "./results/pipeline_info",
"hidden": true,
"description": "Directory in which to save pipeline reporting information."
}
}
},
"config_inheritance_options": {
"title": "Config Inheritance Options",
"type": "object",
"description": "Options to modify config inheritance",
"default": "",
"properties": {
"generic_config_base": {
"type": "string",
"default": "https://raw.githubusercontent.com/sanger-pathogens/nextflow-commons/",
"hidden": true,
"description": "Inherit configuration from a base URL."
},
"generic_config_version": {
"type": "string",
"default": "master",
"hidden": true,
"description": "Specify the version to inherit (will be appended to base URL)."
},
"generic_config": {
"type": "string",
"hidden": true,
"description": "Override the above with a generic config URL (or file path)."
},
"nf_core_custom_config_base": {
"type": "string",
"default": "https://raw.githubusercontent.com/nf-core/configs/",
"hidden": true,
"description": "nf-core configuration base URL."
},
"nf_core_custom_config_version": {
"type": "string",
"default": "master",
"hidden": true,
"description": "Specify the version of nf-core configs to inherit (will be appended to base URL)."
},
"nf_core_custom_config": {
"type": "string",
"hidden": true,
"description": "Override the above with an nf-core config URL (or file path)."
},
"input": {
"type": "string",
"hidden": true,
"description": "Ignore: Parameter inherited but not used by this pipeline."
}
}
}
},
"allOf": [
{
"$ref": "#/defs/input_options"
},
{
"$ref": "#/defs/output_options"
},
{
"$ref": "#/defs/data_combining_options"
},
{
"$ref": "#/defs/qc_options"
},
{
"$ref": "#/defs/mapping_options"
},
{
"$ref": "#/defs/counting_options"
},
{
"$ref": "#/defs/coverage_options"
},
{
"$ref": "#/defs/resource_request_options"
},
{
"$ref": "#/defs/generic_options"
},
{
"$ref": "#/defs/config_inheritance_options"
}
]
}