-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpratt.cwl
435 lines (380 loc) · 12.2 KB
/
pratt.cwl
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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
#!/usr/bin/env cwl-runner
# Copyright (C) 2019 - 2024 EMBL - European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cwlVersion: v1.0
class: CommandLineTool
label: "PRATT"
id: "pratt"
baseCommand: python
inputs:
# Web Service Clients: Common Entries
command:
type: File
inputBinding:
position: 0
default:
class: File
location: ../../webservice-clients/python/pratt.py
email:
type: string?
doc: "E-mail address"
inputBinding:
prefix: --email
position: 2
title:
type: string?
doc: "Job title"
inputBinding:
prefix: --title
position: 3
jobid:
type: string?
doc: "Job identifier"
inputBinding:
prefix: --jobid
position: 1
polljob:
type: boolean?
doc: "Get job result"
inputBinding:
prefix: --polljob
position: 2
outfile:
type: string?
doc: "File name for results"
inputBinding:
prefix: --outfile
position: 4
outformat:
type: string?
doc: "Output format for results"
inputBinding:
prefix: --outformat
position: 5
pollfreq:
type: int?
doc: "Poll frequency in seconds (default 3s)"
inputBinding:
prefix: --pollFreq
position: 6
params:
type: boolean?
doc: "List input parameters"
inputBinding:
prefix: --params
position: 1
paramdetails:
type: string?
doc: "Get details for parameter"
inputBinding:
prefix: --paramDetail
position: 1
resultTypes:
type: string?
doc: "Get result types"
inputBinding:
prefix: --resultTypes
position: 1
asyncjob:
type: boolean?
doc: "Asynchronous mode"
inputBinding:
prefix: --asyncjob
position: 2
status:
type: boolean?
doc: "Get job status"
inputBinding:
prefix: --status
position: 2
version:
type: boolean?
doc: "Prints out the version of the Client and exit"
inputBinding:
prefix: --version
position: 1
baseUrl:
type: string?
doc: "Base URL for service"
inputBinding:
prefix: --baseUrl
position: 7
multifasta:
type: boolean?
doc: "Treat input as a set of fasta formatted sequences"
inputBinding:
prefix: --multifasta
position: 8
useSeqId:
type: boolean?
doc: "Use sequence identifiers for output filenames. Only available in multi-fasta and multi-identifier modes"
inputBinding:
prefix: --useSeqId
position: 9
maxJobs:
type: int?
doc: "Maximum number of concurrent jobs. Only available in multifasta or list file modes (default 20 jobs)"
inputBinding:
prefix: --maxJobs
position: 10
# Web Service Clients: Different Entries
sequence_file:
type: File?
label: "Input sequence"
doc: "Sequence filename or ID"
inputBinding:
prefix: --sequence
position: 8
sequence_string:
type: string?
label: "Input sequence"
doc: "Sequence filename or ID"
inputBinding:
prefix: --sequence
position: 8
minPerc:
type: string?
label: Min Percentage Seqs to Match
doc: "Set the minimum percentage of the input sequences that should match a pattern (C%).
If you set this to, say 80, Pratt will only report patterns matching at least 80 % of the sequences input.
"
inputBinding:
prefix: --minPerc
position: 9
patternPosition:
type: string?
label: Pattern Position
doc: "Pattern position in sequence (PP parameter)"
inputBinding:
prefix: --patternPosition
position: 10
default: "off"
maxPatternLength:
type: string?
label: Max Pattern Length
doc: "Maximum pattern length (PL parameter) allows you to set the maximum length of a pattern.
The length of the pattern C-x(2,4)-[DE] is 1+4+1=6.
The memory requirement of Pratt depends on L; a higher L value gives higher memory requirement.
"
inputBinding:
prefix: --maxPatternLength
position: 11
maxNumPatternSymbols:
type: string?
label: Max Number Of Pattern Symbols
doc: "Maximum number of pattern symbols (PN parameter). Using this you can set the maximum number of symbols in a pattern.
The pattern C-x(2,4)-[DE] has 2 symbols (C and [DE]). When PN is increased, Pratt will require more memory.
"
inputBinding:
prefix: --maxNumPatternSymbols
position: 12
maxNumWildcard:
type: string?
label: Max Num Of Wildcard
doc: "Maximum length of a widecard (x).
Using this option you can set the maximum length of a wildcard (PX parameter). Increasing this will increase the time used by Pratt, and also slightly the memory required.
"
inputBinding:
prefix: --maxNumWildcard
position: 13
maxNumFlexSpaces:
type: string?
label: Max Num Of Flexible Spaces
doc: "Maximum length of flexible spaces.
Using this option you can set the maximum number of flexible wildcards (matching a variable number of arbitrary sequence symbols) (FN parameter). Increasing this will increase the time used by Pratt.
"
inputBinding:
prefix: --maxNumFlexSpaces
position: 14
maxFlexibility:
type: string?
label: Maximum Flexibility
doc: "Maximum flexibility.
You can set the maximum flexibility of a flexible wildcard (matching a variable number of arbitrary sequence symbols) (FL parameter).
For instance x(2,4) and x(10,12) has flexibility 2, and x(10) has flexibility 0. Increasing this will increase the time used by Pratt.
"
inputBinding:
prefix: --maxFlexibility
position: 15
maxFlexProduct:
type: string?
label: Maximum Flex. Product
doc: "Maximum flex. product.
Using this option you can set an upper limit on the product of a flexibilities for a pattern (FP parameter).
This is related to the memory requirements of the search, and increasing the limit, increases the memory usage.
"
inputBinding:
prefix: --maxFlexProduct
position: 16
patternSymbolFile:
type: string?
label: Pattern Symbol File
doc: "Pattern Symbol File (BI parameter)"
inputBinding:
prefix: --patternSymbolFile
position: 17
default: "false"
numPatternSymbols:
type: string?
label: Number Of Pattern Symbols
doc: "Number of pattern symbols used in the initial search (BN parameter).
"
inputBinding:
prefix: --numPatternSymbols
position: 18
patternScoring:
type: string?
label: Pattern Scoring
doc: "Pattern scoring (S parameter)"
inputBinding:
prefix: --patternScoring
position: 19
default: "info"
patternGraph:
type: string?
label: Pattern Graph
doc: "Pattern Graph (G parameter) allows the use of an alignment or a query sequence to restrict the pattern search."
inputBinding:
prefix: --patternGraph
position: 20
searchGreediness:
type: string?
label: Search Greediness
doc: "Using the greediness parameter (E) you can adjust the greediness of the search. Setting E to 0 (zero), the search will be exhaustive.
Increasing E increases the greediness, and decreases the time used in the search.
"
inputBinding:
prefix: --searchGreediness
position: 21
patternRefinement:
type: string?
label: Pattern Refinement
doc: "Pattern Refinement (R parameter).
When the R option is switched on, patterns found during the initial pattern search are input to a refinement algorithm where more ambiguous pattern symbols can be added.
"
inputBinding:
prefix: --patternRefinement
position: 22
default: "false"
genAmbigSymbols:
type: string?
label: Generalise Ambiguous Symbols
doc: "Generalise ambiguous symbols (RG parameter).
If the RG option is switched on, then ambiguous symbols listed in the symbols file are used.
If RG is off, only the letters needed to match the input sequences are included in the ambiguous pattern positions.
"
inputBinding:
prefix: --genAmbigSymbols
position: 23
default: "false"
patternFormat:
type: string?
label: PROSITE Pattern Format
doc: "PROSITE Pattern Format (OP parameter).
When switched on, patterns will be output in PROSITE style (for instance C-x(2,4)-[DE]).
When switched off, patterns are output in a simpler consensus pattern style (for instance Cxx--[DE]
where x matches exactly one arbitrary sequence symbol and - matches zero or one arbitrary sequence symbol).
"
inputBinding:
prefix: --patternFormat
position: 24
default: "true"
maxNumPatterns:
type: string?
label: Max Number Patterns
doc: "Maximum number of patterns (ON parameter) between 1 and 100.
"
inputBinding:
prefix: --maxNumPatterns
position: 25
maxNumAlignments:
type: string?
label: Max Number Alignments
doc: "Maximum number of alignments (OA parameter) between 1 and 100.
"
inputBinding:
prefix: --maxNumAlignments
position: 26
printPatterns:
type: string?
label: Print Patterns
doc: "Print Patterns in sequences (M parameter)
If the M option is set, then Pratt will print out the location of the sequence segments matching each of the (maximum 52) best patterns.
The patterns are given labels A, B,...Z,a,b,...z in order of decreasing pattern score. Each sequence is printed on a line, one character per K-tuple in the sequence.
If pattern with label C matches the third K-tuple in a sequence C is printed out. If several patterns match in the same K-tuple, only the best will be printed.
"
inputBinding:
prefix: --printPatterns
position: 27
default: "true"
printingRatio:
type: string?
label: Printing Ratio
doc: "Printing ratio (MR parameter). sets the K value (ratio) used for printing the summary information about where in each sequence the pattern matches are found.
"
inputBinding:
prefix: --printingRatio
position: 28
printVertically:
type: string?
label: Print Vertically
doc: "Print vertically (MV parameter). if set, the output is printed vertically instead of horizontally, vertical output can be better for large sequence sets."
inputBinding:
prefix: --printVertically
position: 29
default: "false"
stype:
type: string?
label: Sequence Type
doc: "Defines the type of the sequences to be aligned."
inputBinding:
prefix: --stype
position: 30
ppfile:
type: string?
label: Pattern Restriction File
doc: "Pattern restriction file.
The restriction file limits the sequence range via the start/end parameter and is in the format '>Sequence (start, end)'. If parameter PP is off, the restiction file will be ignored."
inputBinding:
prefix: --ppfile
position: 31
outputs:
all:
type: File[]
streamable: true
outputBinding:
glob: "*"
$schemas:
- https://schema.org/version/latest/schemaorg-current-https.rdf
$namespaces:
s: http://schema.org/
edam: http://edamontology.org/
s:author:
- class: s:Person
s:identifier: https://orcid.org/0000-0001-8728-9449
s:email: mailto:[email protected]
s:name: Fábio Madeira (Web Production)
s:worksFor:
- class: s:Organization
s:name: EMBL - European Bioinformatics Institute
s:location: Hinxton, Cambridgeshire, CB10 1SD, UK
s:department:
- class: s:Organization
s:name: Web Production
# s:citation: https://dx.doi.org/10.6084/m9.figshare.3115156.v2
# s:codeRepository: https://github.com/common-workflow-language/common-workflow-language
s:dateCreated: "2018-08-03"
# s:license:
s:license:
- https://www.apache.org/licenses/LICENSE-2.0
- https://spdx.org/licenses/Apache-2.0
s:copyrightHolder: "EMBL - European Bioinformatics Institute"