1- <tool name =" SWISS-MODEL Modelling API" id =" swissmodel_modelling_api" profile =" 21.05 " version =" 2.0.0 " >
1+ <tool name =" SWISS-MODEL Modelling API" id =" swissmodel_modelling_api" profile =" 25.1 " version =" @TOOL_VERSION@+galaxy@VERSION_SUFFIX@ " >
22 <description >
33 Fully automated protein structure homology-modelling
44 </description >
5+ <macros >
6+ <token name =" @TOOL_VERSION@" >2.0.0</token >
7+ <token name =" @VERSION_SUFFIX@" >0</token >
8+ </macros >
59 <xrefs >
610 <xref type =" bio.tools" >swiss_model</xref >
711 </xrefs >
812 <requirements >
913 <requirement type =" package" version =" 3.11" >python</requirement >
1014 <requirement type =" package" version =" 2.32.5" >requests</requirement >
15+ <credentials name =" swissmodel_api_credentials" version =" 1.0" label =" SWISS-MODEL API Credentials" description =" Credentials for accessing SWISS-MODEL API" >
16+ <secret name =" swissmodel_api_token" inject_as_env =" SWISSMODEL_API_TOKEN" optional =" false" label =" SWISS-MODEL API token" description =" Token to authenticate to the SWISS-MODEL API. Can be managed on your https://swissmodel.expasy.org/login_page" />
17+ </credentials >
1118 </requirements >
1219 <command detect_errors =" aggressive" ><![CDATA[
1320mkdir -p 'output_dir/'
@@ -27,7 +34,7 @@ mkdir -p 'output_dir/'
2734 --template-file '${template_file}'
2835 #end if
2936 '${project.project_type}'
30- '${token}' output_dir
37+ output_dir
3138 #if $project_type == 'alignment'
3239 '${target_sequence}'
3340 #else
@@ -39,12 +46,6 @@ mkdir -p 'output_dir/'
3946]]>
4047 </command >
4148 <inputs >
42- <param name =" token" type =" text" optional =" false" label =" API token" >
43- <help ><![CDATA[
44- Token to authenticate to the SWISS-MODEL API. Can be managed on your
45- <a href="https://swissmodel.expasy.org/login_page" target="_blank"> SWISS-MODEL account</a> page.
46- ]]> </help >
47- </param >
4849 <param name =" project_title" type =" text" value =" Untitled project" optional =" true" label =" Project title" />
4950 <conditional name =" project" >
5051 <param name =" project_type" type =" select" value =" automodel" optional =" false" label =" Modelling setup" display =" radio" >
@@ -140,7 +141,7 @@ sequence.
140141 </assert_stderr >
141142 </test >
142143 <!-- with sequences, everything else empty, fail -->
143- <test expect_exit_code =" 2 " expect_failure =" true" >
144+ <test expect_exit_code =" 1 " expect_failure =" true" >
144145 <conditional name =" project" >
145146 <repeat name =" target_list" >
146147 <param name =" sequence" value =" MVVKAVCVINGDAKGTVFFEQESSGTPVKVSGEVCGL" />
@@ -150,7 +151,7 @@ sequence.
150151 </repeat >
151152 </conditional >
152153 <assert_stderr >
153- <has_line line =" Argument of ' < TOKEN > ' can not be an empty string " />
154+ <has_line line =" SWISS-MODEL token is not provided in credentials! " />
154155 </assert_stderr >
155156 </test >
156157 <!-- sequence and token (complete automodel job), fail (no real token) -->
@@ -216,7 +217,7 @@ sequence.
216217 </assert_stderr >
217218 </test >
218219 <!-- alignment mode tests, with sequence, fail -->
219- <test expect_exit_code =" 2 " expect_failure =" true" >
220+ <test expect_exit_code =" 1 " expect_failure =" true" >
220221 <conditional name =" project" >
221222 <param name =" assembly_id" value =" 0" />
222223 <param name =" auth_asym_id" value =" A" />
@@ -227,7 +228,7 @@ sequence.
227228 <param name =" template_sequence" value =" MVVKAVCVINGDAKGTVFFEQESSGTPV" />
228229 </conditional >
229230 <assert_stderr >
230- <has_line line =" Argument of ' < TOKEN > ' can not be an empty string " />
231+ <has_line line =" SWISS-MODEL token is not provided in credentials! " />
231232 </assert_stderr >
232233 </test >
233234 <!-- alignment mode tests, with token, fail -->
@@ -257,7 +258,7 @@ sequence.
257258 </assert_stderr >
258259 </test >
259260 <!-- usertemplate mode tests, with sequence, fail -->
260- <test expect_exit_code =" 2 " expect_failure =" true" >
261+ <test expect_exit_code =" 1 " expect_failure =" true" >
261262 <conditional name =" project" >
262263 <param name =" project_type" value =" usertemplate" />
263264 <param name =" template_file" value =" model_01.pdb" />
@@ -269,7 +270,7 @@ sequence.
269270 </repeat >
270271 </conditional >
271272 <assert_stderr >
272- <has_line line =" Argument of ' < TOKEN > ' can not be an empty string " />
273+ <has_line line =" SWISS-MODEL token is not provided in credentials! " />
273274 </assert_stderr >
274275 </test >
275276 <!-- usertemplate mode tests, with token, fail -->
0 commit comments