Mercurial > repos > fubar > toolfactory_gtn
comparison toolfactory/ToolFactory.xml @ 6:efefe43f23c8 draft default tip
Uploaded
author | fubar |
---|---|
date | Fri, 30 Apr 2021 02:10:32 +0000 |
parents | e2c8c2fa192d |
children |
comparison
equal
deleted
inserted
replaced
5:e2c8c2fa192d | 6:efefe43f23c8 |
---|---|
26 <param name="select_value" type="text" value="" label="Enter the value for the command line when the user selects this option"> | 26 <param name="select_value" type="text" value="" label="Enter the value for the command line when the user selects this option"> |
27 </param> | 27 </param> |
28 </repeat> | 28 </repeat> |
29 </xml> | 29 </xml> |
30 <xml name="tool_metadata"> | 30 <xml name="tool_metadata"> |
31 <param name="tool_version" label="Tool Version - bump this to warn users trying to redo old analyses" type="text" value="0.01" | 31 <param name="tool_version" label="Tool Version - bump this to warn users trying to redo old analyses" type="text" value="0.01" |
32 help="If you change your script and regenerate the 'same' tool, you should inform Galaxy (and users) by changing (bumping is traditional) this number"/> | 32 help="If you change your script and regenerate the 'same' tool, you should inform Galaxy (and users) by changing (bumping is traditional) this number"/> |
33 <param name="tool_desc" label="Tool Synopsis" type="text" value="" | 33 <param name="tool_desc" label="Tool Synopsis" type="text" value="" |
34 help="Supply a brief tool description for the Galaxy tool menu entry" /> | 34 help="Supply a brief tool description for the Galaxy tool menu entry" /> |
35 <param name="install" label="Attempt to install in the host Galaxy" | 35 <param name="install" label="Attempt to install in the host Galaxy" |
36 help="This will fail unless running in a very unusual configuration such as a specialised Docker container" | 36 help="This will fail unless running in a very unusual configuration such as a specialised Docker container" |
37 type="boolean" checked="True" truevalue="1" falsevalue="0" /> | 37 type="boolean" checked="False" truevalue="1" falsevalue="0" /> |
38 <conditional name="do_test"> | 38 <param name="run_test" label="Finalise new archive with test outputs. Runs externally. Outputs will appear in history when ready" |
39 <param name="run_test" label="Run planemo test on the new archive to add test outputs making a proper tool - takes time" | 39 help="Archives must be run and updated using planemo to populate all the test outputs. May take a long time depending on dependencies" |
40 help="Archives must be run and updated using planemo to populate all the test outputs. Will be very quick if no dependencies (eg a bash script). May take a very long time depending on dependencies" | 40 type="boolean" checked="True" truevalue="1" falsevalue="0" /> |
41 type="boolean" checked="False" truevalue="1" falsevalue="0" /> | |
42 <when value="0"> | |
43 <param name="tail" type="hidden" value="not_tested"/> | |
44 </when> | |
45 <when value="1"> | |
46 <param name="tail" type="hidden" value="tested"/> | |
47 </when> | |
48 </conditional> | |
49 <param name="help_text" label="Tool form documentation and help text for users" type="text" area="true" | 41 <param name="help_text" label="Tool form documentation and help text for users" type="text" area="true" |
50 value="**What it Does**" | 42 value="**What it Does**" |
51 help="Supply user documentation to appear on the new tool form as reStructured text - http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html" > | 43 help="Supply user documentation to appear on the new tool form as reStructured text - http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html" > |
52 <sanitizer> | 44 <sanitizer> |
53 <valid initial="string.printable" /> | 45 <valid initial="string.printable" /> |
230 --help_text "$helpme" | 222 --help_text "$helpme" |
231 --new_tool "$new_tool" | 223 --new_tool "$new_tool" |
232 #if $install: | 224 #if $install: |
233 --install | 225 --install |
234 #end if | 226 #end if |
235 #if $do_test.run_test: | 227 #if $run_test: |
236 --run_test | 228 --run_test |
237 #end if | 229 #end if |
238 #if $io_param.ppass.parampass != '0': | 230 #if $io_param.ppass.parampass != '0': |
239 #if str($io_param.ppass.addparam.edit_params) == "yes": | 231 #if str($io_param.ppass.addparam.edit_params) == "yes": |
240 --edit_additional_parameters | 232 --edit_additional_parameters |
403 </when> | 395 </when> |
404 </conditional> | 396 </conditional> |
405 <expand macro="tool_metadata" /> | 397 <expand macro="tool_metadata" /> |
406 </inputs> | 398 </inputs> |
407 <outputs> | 399 <outputs> |
408 <data format="toolshed.gz" name="new_tool" label="${tool_name}_${do_test.tail}_toolshed.gz" /> | 400 <data format="toolshed.gz" name="new_tool" label="${tool_name}_not_tested.toolshed.gz" /> |
409 <collection name="TF_run_report" type="list" label="${tool_name} test run outputs"> | |
410 <filter>do_test['run_test']</filter> | |
411 <discover_datasets pattern="__name_and_ext__" directory="TF_run_report" /> | |
412 </collection> | |
413 </outputs> | 401 </outputs> |
414 <tests> | 402 <tests> |
415 <test> | 403 <test> |
416 <param name="user_email" value="admin@galaxy.org"/> | 404 <param name="user_email" value="admin@galaxy.org"/> |
417 <param name="input_files" value="input1_sample" /> | 405 <param name="input_files" value="input1_sample" /> |
430 <param name="history_CL" value="2" /> | 418 <param name="history_CL" value="2" /> |
431 <param name="dynScript" value="import sys; inp = sys.argv[1]; outp = sys.argv[2]; inlist = open(inp,'r').readlines(); o = open(outp,'w'); rs = [''.join(list(reversed(x.rstrip()))) for x in inlist]; o.write('\n'.join(rs)); o.close()"/> | 419 <param name="dynScript" value="import sys; inp = sys.argv[1]; outp = sys.argv[2]; inlist = open(inp,'r').readlines(); o = open(outp,'w'); rs = [''.join(list(reversed(x.rstrip()))) for x in inlist]; o.write('\n'.join(rs)); o.close()"/> |
432 <param name="choosescript" value="yes" /> | 420 <param name="choosescript" value="yes" /> |
433 <param name="script_path" value="$runme"/> | 421 <param name="script_path" value="$runme"/> |
434 <param name="install" value="0"/> | 422 <param name="install" value="0"/> |
435 <param name="run_test" value="1"/> | |
436 <output name="new_tool" file="toolfactory_pyrevpos_tgz_sample" compare="sim_size" delta="6000" /> | 423 <output name="new_tool" file="toolfactory_pyrevpos_tgz_sample" compare="sim_size" delta="6000" /> |
437 </test> | 424 </test> |
438 </tests> | 425 </tests> |
439 <help> | 426 <help> |
440 | 427 |