Skip to content

Commit 69cdfd8

Browse files
authored
Merge pull request #6360 from bernt-matthias/lint-iedb_api
Fix linter errors for iedb api
2 parents f78b4c5 + 6e91dab commit 69cdfd8

File tree

2 files changed

+35
-14
lines changed

2 files changed

+35
-14
lines changed

tools/iedb_api/.lint_skip

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/iedb_api/iedb_api.xml

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<description>MHC Binding prediction</description>
33
<macros>
44
<token name="@TOOL_VERSION@">2.15.3</token>
5-
<token name="@VERSION_SUFFIX@">0</token>
5+
<token name="@VERSION_SUFFIX@">1</token>
66
<token name="@PROFILE@">24.2</token>
77
<xml name="alleles" token_hla_regex="" token_hla_examples="" token_hlalen_examples="">
88
<conditional name="alleles">
@@ -108,7 +108,7 @@ $seqtext
108108
<option value="netmhccons">netmhccons</option>
109109
<option value="pickpocket">pickpocket</option>
110110
</param>
111-
<expand macro="alleles" hla_regex="(HLA-[A-CEG]\*[0-8][[0-9]:[0-9][0-9][0-9]*|BoLA-.+|Gogo-.+|H-2-[DKL][bdk]|Mamu-.+|Patr-.+|RT.+|SLA-.+)(,([8-9]|1[0-5]))*" hla_examples="HLA-A*03:01 HLA-B*07:02" hlalen_examples="HLA-A*03:01,8,9,10 HLA-B*07:02,9"/>
111+
<expand macro="alleles" hla_regex="(HLA-[A-CEG]\*[0-8][0-9]:[0-9][0-9][0-9]*|BoLA-.+|Gogo-.+|H-2-[DKL][bdk]|Mamu-.+|Patr-.+|RT.+|SLA-.+)(,([8-9]|1[0-5]))*" hla_examples="HLA-A*03:01 HLA-B*07:02" hlalen_examples="HLA-A*03:01,8,9,10 HLA-B*07:02,9"/>
112112
<param name="lengths" type="select" multiple="true" optional="false" label="peptide lengths for prediction">
113113
<help>Used for any alleles which don't include specified lengths</help>
114114
<option value="8" selected="true">8</option>
@@ -172,7 +172,7 @@ $seqtext
172172
<option value="immuno">immuno</option>
173173
<option value="constitutive">constitutive</option>
174174
</param>
175-
<expand macro="alleles" hla_regex="(HLA-[A-CE]\*[0-8][[0-9]:[0-9][0-9]|BoLA-.+|Gogo-.+|H-2-[DKL][bdk]|Mamu-.+|Patr-.+|RT.+|SLA-.+)(,([8-9]|1[0-4]))*" hla_examples="HLA-A*03:01 HLA-B*07:02" hlalen_examples="HLA-A*03:01,8,9,10 HLA-B*07:02,9"/>
175+
<expand macro="alleles" hla_regex="(HLA-[A-CE]\*[0-8][0-9]:[0-9][0-9]|BoLA-.+|Gogo-.+|H-2-[DKL][bdk]|Mamu-.+|Patr-.+|RT.+|SLA-.+)(,([8-9]|1[0-4]))*" hla_examples="HLA-A*03:01 HLA-B*07:02" hlalen_examples="HLA-A*03:01,8,9,10 HLA-B*07:02,9"/>
176176
<param name="lengths" type="select" multiple="true" optional="false" label="peptide lengths for prediction">
177177
<help>Used for any alleles which don't include specified lengths</help>
178178
<option value="8" selected="true">8</option>
@@ -236,12 +236,12 @@ $seqtext
236236
-->
237237
<data name="output" format="tabular" label="IEDB ${prediction.tool} ${prediction.method}"/>
238238
<data name="output2" format="tabular" label="IEDB ${prediction.tool} ${prediction.method} residue scores" from_work_dir="iedb_results2">
239-
<filter>prediction['method'].startswith('Bepipred')</filter>
239+
<filter>prediction['method'] == 'Bepipred'</filter>
240240
</data>
241241
</outputs>
242242
<tests>
243243
<!-- test1 -->
244-
<test>
244+
<test expect_num_outputs="1">
245245
<conditional name="prediction">
246246
<param name="tool" value="mhci"/>
247247
<param name="method" value="recommended"/>
@@ -261,7 +261,7 @@ $seqtext
261261
</output>
262262
</test>
263263
<!-- test2 -->
264-
<test>
264+
<test expect_num_outputs="1">
265265
<conditional name="prediction">
266266
<param name="tool" value="mhci"/>
267267
<param name="method" value="recommended"/>
@@ -282,7 +282,7 @@ $seqtext
282282
</output>
283283
</test>
284284
<!-- test3 -->
285-
<test>
285+
<test expect_num_outputs="1">
286286
<conditional name="prediction">
287287
<param name="tool" value="mhci"/>
288288
<param name="method" value="recommended"/>
@@ -306,7 +306,7 @@ $seqtext
306306
</output>
307307
</test>
308308
<!-- test4 -->
309-
<test>
309+
<test expect_num_outputs="1">
310310
<conditional name="prediction">
311311
<param name="tool" value="mhcii"/>
312312
<param name="method" value="recommended"/>
@@ -327,7 +327,7 @@ $seqtext
327327
</output>
328328
</test>
329329
<!-- test5 -->
330-
<test>
330+
<test expect_num_outputs="1">
331331
<conditional name="prediction">
332332
<param name="tool" value="processing"/>
333333
<param name="method" value="recommended"/>
@@ -348,7 +348,7 @@ $seqtext
348348
</output>
349349
</test>
350350
<!-- test6 -->
351-
<test>
351+
<test expect_num_outputs="1">
352352
<conditional name="prediction">
353353
<param name="tool" value="mhcnp"/>
354354
<param name="method" value="mhcnp"/>
@@ -368,7 +368,7 @@ $seqtext
368368
</output>
369369
</test>
370370
<!-- test7 -->
371-
<test>
371+
<test expect_num_outputs="1">
372372
<conditional name="prediction">
373373
<param name="tool" value="bcell"/>
374374
<param name="method" value="Emini"/>
@@ -384,7 +384,7 @@ $seqtext
384384
</output>
385385
</test>
386386
<!-- test8 -->
387-
<test>
387+
<test expect_num_outputs="1">
388388
<conditional name="prediction">
389389
<param name="tool" value="bcell"/>
390390
<param name="method" value="Kolaskar-Tongaonkar"/>
@@ -400,6 +400,29 @@ $seqtext
400400
</assert_contents>
401401
</output>
402402
</test>
403+
<!-- test9 test 2nd output for Bepipred, no idea if its possible to have output non-empty -->
404+
<test expect_num_outputs="2">
405+
<conditional name="prediction">
406+
<param name="tool" value="bcell"/>
407+
<param name="method" value="Bepipred"/>
408+
<param name="window_size" value="9"/>
409+
</conditional>
410+
<conditional name="sequence">
411+
<param name="seqsrc" value="fasta"/>
412+
<param name="seq_fasta" ftype="fasta" value="bcell.fa"/>
413+
</conditional>
414+
<output name="output">
415+
<assert_contents>
416+
<has_n_lines n="0" />
417+
</assert_contents>
418+
</output>
419+
<output name="output2">
420+
<assert_contents>
421+
<has_n_lines n="106"/>
422+
<has_n_columns n="5"/>
423+
</assert_contents>
424+
</output>
425+
</test>
403426

404427
</tests>
405428
<help><![CDATA[

0 commit comments

Comments
 (0)