-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnextflow_schema.json
More file actions
234 lines (234 loc) · 8.17 KB
/
Copy pathnextflow_schema.json
File metadata and controls
234 lines (234 loc) · 8.17 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/rmcolq/pantheon/main/nextflow_schema.json",
"title": "rmcolq/pantheon",
"description": "Metagenomic binning of single reads from both amplicon-targeted and shotgun metagenomics sequencing.",
"url": "https://github.com/rmcolq/pantheon",
"type": "object",
"definitions": {
"input_options": {
"title": "Input Options",
"type": "object",
"fa_icon": "fas fa-terminal",
"description": "Define where the pipeline should find input data and save output data.",
"properties": {
"run_dir": {
"type": "string",
"format": "path",
"title": "Run directory",
"description": "A directory containing a directory of fastq for a each barcode in a run.",
"help_text": "This should be in the ONT run output, e.g. the `fastq_pass` subdirectory.",
"demo_data": "test/test_data/"
},
"wf_dir": {
"type": "string",
"format": "path",
"title": "Workflow directory",
"description": "A directory containing the output and work subdirectories generated by wf-metagenomics.",
"help_text": "This can be found by looking at the Parameters section for the run in EPI2ME."
},
"unique_id": {
"type": "string",
"title": "The unique ID for this sample or run",
"description": "This is used to name the final report and directory of summary outputs."
}
},
"allOf": [
{
"required": [
"run_dir",
"wf_dir"
]
}
]
},
"parameter_options": {
"title": "Parameter Options",
"type": "object",
"fa_icon": "fas fa-terminal",
"description": "Define the taxa to be extracted and the thresholds for extraction and assembly.",
"properties": {
"taxon_names": {
"type": "string",
"title": "Taxon Names",
"description": "A comma separated list of taxon names to be extracted and assembled."
},
"max_human_reads_before_rejection": {
"type": "integer",
"default": 100000,
"title": "Max human reads before sample rejection",
"description": "Threshold for the maximum number of human reads permitted in a sample before it is rejected."
},
"extract_rank": {
"type": "string",
"default": "S G",
"title": "Taxon ranks to be extracted",
"description": "Only taxa at these ranks will have reads extracted (S1 would be extracted if rank S)."
},
"extract_min_reads": {
"type": "integer",
"default": 1,
"title": "Min reads for extraction",
"description": "Minimum number of reads of a taxon in a sample for a read subset to be extracted."
},
"reference_min_count": {
"type": "integer",
"default": 10,
"title": "Min read count for assembly",
"description": "Minimum read count of a taxon for reference guided assembly to be attempted.",
"help_text": "Note that if this is too low, the result output will be unreliable."
},
"reference_sequence_sep": {
"type": "string",
"default": "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN",
"title": "Segment seperator",
"description": "String to separate segmented genomes parts within the reference (and assembly)."
},
"mask_depth": {
"type": "integer",
"default": 20,
"title": "Mask depth",
"description": "Minimum read depth before masking.",
"help_text": "Bases of the consensus sequence will be masked with N below this threshold."
}
},
"allOf": [
{
"required": [
"taxon_names"
]
}
]
},
"output_options": {
"title": "Output Options",
"type": "object",
"description": "Parameters for saving and naming workflow outputs.",
"properties": {
"outdir": {
"type": "string",
"format": "directory-path",
"default": "output",
"title": "Output folder name",
"description": "Directory for output of all user-facing files."
}
}
},
"user_options": {
"title": "User Options",
"type": "object",
"description": "Parameters specifying user credentials for interacting with NCBI ENTREZ DIRECT.",
"properties": {
"ncbi_api_key": {
"type": "string",
"title": "NCBI API key",
"description": "An API key generated for the user.",
"help_text": "See https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/."
},
"email": {
"type": "string",
"default": "email@ed.ac.uk",
"title": "Email address of user",
"help_text": "This field is currently only used for NCBI entrez direct queries and has to look like a real email."
}
},
"allOf": [
{
"required": [
"ncbi_api_key"
]
}
]
},
"advanced_options": {
"title": "Advanced Options",
"type": "object",
"description": "Advanced options for configuring processes inside the workflow.",
"default": "",
"properties": {
"local": {
"type": "boolean",
"default": true,
"title": "Use lower resources appropriate for local computer",
"description": "Maximum number of CPU threads to use per workflow task.",
"help_text": "This workflow will request HPC level resources unless this is checked."
},
"threads": {
"type": "integer",
"default": 2,
"title": "Maximum number of CPU threads",
"description": "Maximum number of CPU threads to use per workflow task.",
"help_text": "Several tasks in this workflow benefit from using multiple CPU threads. This option sets the number of CPU threads for all such processes. The total CPU resource used by the workflow is constrained by the executor configuration. See server threads parameter for kraken specific threads."
}
}
},
"miscellaneous_options": {
"title": "Miscellaneous Options",
"type": "object",
"fa_icon": "fas fa-file-import",
"description": "Everything else.",
"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",
"title": "Display help text",
"fa_icon": "fas fa-question-circle",
"hidden": true
},
"version": {
"type": "boolean",
"title": "Display version",
"description": "Display version and exit.",
"fa_icon": "fas fa-question-circle",
"hidden": true
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/input_options"
},
{
"$ref": "#/definitions/parameter_options"
},
{
"$ref": "#/definitions/output_options"
},
{
"$ref": "#/definitions/user_options"
},
{
"$ref": "#/definitions/advanced_options"
},
{
"$ref": "#/definitions/miscellaneous_options"
}
],
"properties": {
"aws_image_prefix": {
"type": "string",
"title": "AWS image prefix",
"hidden": true
},
"aws_queue": {
"type": "string",
"title": "AWS queue",
"hidden": true
},
"monochrome_logs": {
"type": "boolean"
},
"validate_params": {
"type": "boolean",
"default": true
},
"show_hidden_params": {
"type": "boolean"
}
},
"docs": {
"intro": "\n## Introduction\n\npantheon allows metagenomic reads to be binned by taxa and assembled: See quickstart below for more details.\n\n",
"links": "## Useful links\n\n* [nextflow](https://www.nextflow.io/)\n* [docker](https://www.docker.com/products/docker-desktop)"
}
}