-
Notifications
You must be signed in to change notification settings - Fork 6
/
attributor-prok-cheetah.cwl
executable file
·291 lines (275 loc) · 8.09 KB
/
attributor-prok-cheetah.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
baseCommand: attributor
requirements:
- class: InlineJavascriptRequirement
- class: InitialWorkDirRequirement
listing:
- entry: |
general:
default_product_name: hypothetical protein
allow_attributes_from_multiple_sources: No
debugging_polypeptide_limit: 0
indexes:
coding_hmm_lib: $(inputs.hmm_attribute_lookup_file.path)
uniref100: $(inputs.blast_attribute_lookup_file.path)
input:
polypeptide_fasta: $(inputs.polypeptide_fasta.path)
gff3: $(inputs.source_gff3.path)
order:
- coding_hmm_lib__equivalog
- rapsearch2__trusted_full_full
- coding_hmm_lib__equivalog_domain
- rapsearch2__trusted_partial_full
- coding_hmm_lib__subfamily
- coding_hmm_lib__superfamily
- coding_hmm_lib__subfamily_domain
- coding_hmm_lib__domain
- coding_hmm_lib__pfam
- rapsearch2__trusted_full_partial
- rapsearch2__all_full_full
- tmhmm
#- lipoprotein_motif
- coding_hmm_lib__hypothetical_equivalog
evidence:
- label: coding_hmm_lib__equivalog
type: HMMer3_htab
path: ${
var r = "";
for (var i = 0; i < inputs.hmm_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.hmm_files[i].path.replace('file://','');
}
return r;
}
class: equivalog
index: coding_hmm_lib
- label: coding_hmm_lib__equivalog_domain
type: HMMer3_htab
path: ${
var r = "";
for (var i = 0; i < inputs.hmm_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.hmm_files[i].path.replace('file://','');
}
return r;
}
class: equivalog_domain
index: coding_hmm_lib
- label: coding_hmm_lib__subfamily
type: HMMer3_htab
path: ${
var r = "";
for (var i = 0; i < inputs.hmm_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.hmm_files[i].path.replace('file://','');
}
return r;
}
class: subfamily
index: coding_hmm_lib
append_text: family protein
- label: coding_hmm_lib__superfamily
type: HMMer3_htab
path: ${
var r = "";
for (var i = 0; i < inputs.hmm_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.hmm_files[i].path.replace('file://','');
}
return r;
}
class: superfamily
index: coding_hmm_lib
append_text: family protein
- label: coding_hmm_lib__subfamily_domain
type: HMMer3_htab
path: ${
var r = "";
for (var i = 0; i < inputs.hmm_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.hmm_files[i].path.replace('file://','');
}
return r;
}
class: subfamily_domain
index: coding_hmm_lib
append_text: domain protein
- label: coding_hmm_lib__domain
type: HMMer3_htab
path: ${
var r = "";
for (var i = 0; i < inputs.hmm_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.hmm_files[i].path.replace('file://','');
}
return r;
}
class: domain
index: coding_hmm_lib
append_text: domain protein
- label: coding_hmm_lib__pfam
type: HMMer3_htab
path: ${
var r = "";
for (var i = 0; i < inputs.hmm_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.hmm_files[i].path.replace('file://','');
}
return r;
}
class: pfam
index: coding_hmm_lib
append_text: family protein
- label: coding_hmm_lib__hypothetical_equivalog
type: HMMer3_htab
path: ${
var r = "";
for (var i = 0; i < inputs.hmm_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.hmm_files[i].path.replace('file://','');
}
return r;
}
class: hypoth_equivalog
index: coding_hmm_lib
- label: rapsearch2__trusted_full_full
type: RAPSearch2_m8
path: ${
var r = "";
for (var i = 0; i < inputs.m8_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.m8_files[i].path.replace('file://','');
}
return r;
}
class: trusted
index: uniref100
query_cov: 80%
match_cov: 80%
percent_identity_cutoff: 50%
- label: rapsearch2__trusted_partial_full
type: RAPSearch2_m8
path: ${
var r = "";
for (var i = 0; i < inputs.m8_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.m8_files[i].path.replace('file://','');
}
return r;
}
class: trusted
index: uniref100
match_cov: 80%
percent_identity_cutoff: 50%
append_text: domain protein
- label: rapsearch2__trusted_full_partial
type: RAPSearch2_m8
path: ${
var r = "";
for (var i = 0; i < inputs.m8_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.m8_files[i].path.replace('file://','');
}
return r;
}
class: trusted
index: uniref100
query_cov: 80%
percent_identity_cutoff: 50%
append_text: domain protein
- label: rapsearch2__all_full_full
type: RAPSearch2_m8
path: ${
var r = "";
for (var i = 0; i < inputs.m8_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.m8_files[i].path.replace('file://','');
}
return r;
}
index: uniref100
query_cov: 80%
match_cov: 80%
percent_identity_cutoff: 50%
prepend_text: putative
- label: tmhmm
type: TMHMM
product_name: putative integral membrane protein
min_helical_spans: 5
path: ${
var r = "";
for (var i = 0; i < inputs.tmhmm_files.length; i++) {
if (i > 0) {
r += ",";
}
r += inputs.tmhmm_files[i].path.replace('file://','');
}
return r;
}
entryname: attributor.config
hints:
- class: DockerRequirement
dockerPull: jorvis/gales-gce
inputs:
source_gff3: File
m8_files: File[]
hmm_attribute_lookup_file: File
config_file:
type: string
inputBinding:
prefix: -c
separate: true
position: 1
hmm_files: File[]
output_format:
type: string
inputBinding:
position: 3
prefix: -f
separate: true
blast_attribute_lookup_file: File
tmhmm_files: File[]
output_base:
type: string
inputBinding:
position: 2
prefix: -o
separate: true
polypeptide_fasta: File
outputs:
the_config:
type: File
outputBinding:
glob: attributor.config
output_files:
type:
type: array
items: File
outputBinding:
glob: $(inputs.output_base + '*')