comparison rgToolFactory.xml @ 11:a0a5d0757e39

Minor tool help changes and fixes to tests - still no code
author ross lazarus ross.lazarus@gmail.com
date Sat, 02 Jun 2012 22:49:40 +1000
parents 71f2ac0eee95
children d12728e33c3d
comparison
equal deleted inserted replaced
10:71f2ac0eee95 11:a0a5d0757e39
1 <tool id="rgTF" name="Tool Factory" version="0.04"> 1 <tool id="rgTF" name="Tool Factory" version="0.05">
2 <description>Makes scripts into tools</description> 2 <description>Makes scripts into tools</description>
3 <command interpreter="python"> 3 <command interpreter="python">
4 #if ( $__user_email__ not in ['ross.lazarus@gmail.com',] ): 4 #if ( $__user_email__ not in ['ross.lazarus@gmail.com',] ):
5 rgToolFactory.py --bad_user $__user_email__ 5 rgToolFactory.py --bad_user $__user_email__
6 #else: 6 #else:
24 --tool_desc "$factory.tool_desc" 24 --tool_desc "$factory.tool_desc"
25 #end if 25 #end if
26 #end if 26 #end if
27 </command> 27 </command>
28 <inputs> 28 <inputs>
29 <param name="input1" type="data" format="tabular" label="Select an optional input tabular file from your history" optional="true" 29 <param name="input1" type="data" label="Select an optional input file from your history" optional="true"
30 help="Your script probably needs an input - but if not, this can be left unassigned"/> 30 help="Your script probably needs an input - but if not, this can be left unassigned. Note that your script MUST be able to parse whatever format you choose!"/>
31 <param name="tool_name" type="text" value="My dynamic script" size="80" label="Title for job outputs" help="Supply a meaningful name here to remind you what the outputs contain"/> 31 <param name="tool_name" type="text" value="My dynamic script" size="80" label="Title for job outputs" help="Supply a meaningful name here to remind you what the outputs contain"/>
32 <conditional name="factory"> 32 <conditional name="factory">
33 <param name="make_Tool" type="select" label="Create a tar.gz file ready for local toolshed entry" help="Ready to deploy securely!"> 33 <param name="make_Tool" type="select" label="Create a tar.gz file ready for local toolshed entry" help="Ready to deploy securely!">
34 <option value="yes">Yes</option> 34 <option value="yes">Yes</option>
35 <option value="" selected="true">Not yet, it's still broken</option> 35 <option value="" selected="true">Not yet, it's still broken</option>
59 <option value="Rscript" selected="true">Rscript</option> 59 <option value="Rscript" selected="true">Rscript</option>
60 <option value="python">python</option> 60 <option value="python">python</option>
61 <option value="perl (ugh)">perl</option> 61 <option value="perl (ugh)">perl</option>
62 </param> 62 </param>
63 <param name="dynScript" label="Your Script Goes Here" type="text" value="" area="True" size="8x80" width="80" 63 <param name="dynScript" label="Your Script Goes Here" type="text" value="" area="True" size="8x80" width="80"
64 help="Expect FIRST CL parameter = the optional input tabular file path (or NONE if not specified). Ensure your script writes tabular output to the path in the SECOND command line parameter it gets."> 64 help="CL parameters: input tabular file path (if selected) and optional output (if selected). Script must deal with these and write output (if any) to the right one">
65 <sanitizer> 65 <sanitizer>
66 <valid initial="string.printable"> 66 <valid initial="string.printable">
67 </valid> 67 </valid>
68 <mapping initial="none"/> 68 <mapping initial="none"/>
69 </sanitizer> 69 </sanitizer>
82 ${dynScript} 82 ${dynScript}
83 </configfile> 83 </configfile>
84 84
85 <configfile name="helpme"> 85 <configfile name="helpme">
86 #if $factory.make_Tool == "yes": 86 #if $factory.make_Tool == "yes":
87 $factory.help_text 87 ${factory.help_text}
88 #end if 88 #end if
89 </configfile> 89 </configfile>
90 </configfiles> 90 </configfiles>
91 <help> 91 <help>
92 **What it does** 92 **What it does**