annotate rgToolFactory2.xml @ 1:323982517b30 draft

Uploaded
author fubar
date Sat, 10 Jan 2015 19:39:33 -0500
parents c34063ab3735
children 6a3c292412fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
1 <tool id="rgTF2" name="Tool Factory Two" version="1.15">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
2 <description>Scripts into tools</description>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
3 <requirements>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
4 <requirement type="package" version="9.10">ghostscript</requirement>
1
323982517b30 Uploaded
fubar
parents: 0
diff changeset
5 <requirement type="package" version="1.3.20">graphicsmagick</requirement>
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
6 </requirements>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
7 <command interpreter="python">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
8 #if ( $__user_email__ not in $__admin_users__ ):
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
9 rgToolFactory2.py --bad_user $__user_email__
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
10 #else:
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
11 rgToolFactory2.py --script_path "$runme" --interpreter "$interpreter"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
12 --tool_name "$tool_name" --user_email "$__user_email__" --citations "$citeme"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
13
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
14 #if $make_TAB.value=="yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
15 --output_tab "$output1"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
16 --output_format "$output_format"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
17 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
18 #if $makeMode.make_Tool=="yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
19 --make_Tool "$makeMode.make_Tool"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
20 --tool_desc "$makeMode.tool_desc"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
21 --tool_version "$makeMode.tool_version"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
22 --new_tool "$new_tool"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
23 --help_text "$helpme"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
24 #if $make_HTML.value=="yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
25 #if $makeMode.include_deps.value=="yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
26 --include_dependencies "yes"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
27 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
28 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
29 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
30 #if $additional_parameters != 'None':
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
31 #if $edit_params.value == "yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
32 --edit_additional_parameters
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
33 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
34 #for i in $additional_parameters:
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
35 --additional_parameters "$i.param_name,$i.param_value,$i.param_label,$i.param_help,$i.param_type"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
36 #end for
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
37 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
38 #if $make_HTML.value=="yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
39 --output_dir "$html_file.files_path" --output_html "$html_file" --make_HTML "yes"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
40 #else:
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
41 --output_dir "."
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
42 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
43 #if $input_tab != 'None':
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
44 --input_formats "$input_formats"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
45 #for intab in $input_tab:
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
46 --input_tab "$intab,$intab.name"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
47 #end for
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
48 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
49 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
50 </command>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
51 <inputs>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
52 <param name="input_tab" type="data" label="Select one or more input file(s) from your history" optional="true" size="120" multiple="true"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
53 help="Use the multiple input widget (above/right of input box) for multiple inputs - your script MUST be ready to parse the command line right - see samples below"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
54 <param name="input_formats" type="select" multiple="true" label="Select the datatype(s) that your tool/script accepts as input"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
55 help="If your datatype is not listed here, it has to be added in galaxy's datatypes_conf.xml">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
56 <options from_parameter="tool.app.datatypes_registry.upload_file_formats">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
57 <column name="value" index="0"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
58 </options>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
59 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
60 <param name="tool_name" type="text" value="My dynamic script" label="New tool ID and title for outputs" size="60"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
61 help="This will become the toolshed repository name so please choose thoughtfully to avoid namespace clashes with other tool writers">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
62 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
63 <valid initial="string.letters,string.digits">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
64 <add value="_"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
65 </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
66 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
67 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
68 <conditional name="makeMode">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
69 <param name="make_Tool" type="select" label="Generate new tool as a tar.gz file ready to upload to a toolshed repository"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
70 help="Generate a toolshed archive - upload to a toolshed from where it can be auto-installed via the Galaxy admin functions"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
71 size="60">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
72 <option value="yes">Generate a Galaxy ToolShed compatible toolshed.gz</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
73 <option value="" selected="true">No. Just run the script please</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
74 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
75 <when value = "yes">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
76 <param name="tool_version" label="Tool Version - bump this to warn users trying to redo old analyses" type="text" value="0.01"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
77 help="If you change your script and regenerate the 'same' tool, you should inform Galaxy (and users) by changing (bumping is traditional) this number"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
78 <param name="tool_desc" label="Tool Description" type="text" value="" size="40"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
79 help="Supply a brief tool description for the Galaxy tool menu entry (optional - appears after the tool name)" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
80 <param name="help_text" label="Tool form documentation and help text for users" type="text" area="true"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
81 size="8x120" value="**What it Does**"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
82 help="Supply the brief user documentation to appear on the new tool form as reStructured text - http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html" >
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
83 <sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
84 <valid initial="string.printable">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
85 </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
86 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
87 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
88 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
89 <repeat name="citations" title="Citation">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
90 <conditional name="citation_type">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
91 <param name="type" type="select" label="Citation Type">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
92 <option value="doi">DOI</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
93 <option value="bibtex">BibTeX</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
94 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
95 <when value="doi">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
96 <param name="doi" label="DOI" type="text" value=""
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
97 help="Supply a DOI (e.g. 10.1111/j.1740-9713.2007.00258.x) that should be cited when this tool is used in published research." />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
98 </when>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
99 <when value="bibtex">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
100 <param name="bibtex" label="BibTex" type="text" area="true" size="8x120"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
101 help="Supply a BibTex entry that should be cited when this tool is used in published research." value="" >
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
102 <sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
103 <valid initial="string.printable">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
104 </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
105 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
106 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
107 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
108 </when>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
109 </conditional>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
110 </repeat>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
111 <param name="include_deps" type="select" label="Include ghostscript and graphicsmagick dependencies in generated tool" size="60"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
112 help="If an HTML file is being created, including dependencies is recommended. Otherwise this setting has no effect">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
113 <option value="">Rely on system ghostscript and graphicsmagick rather than include these as dependencies</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
114 <option value="yes" selected="true">Include dependencies so target installations will always work if HTML is being generated</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
115 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
116 </when>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
117 <when value = "">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
118 </when>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
119 </conditional>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
120 <param name="make_HTML" type="select" label="Create an HTML report with links to every output file your script writes to the current directory" size="60"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
121 help="Recommended for presenting complex outputs in an accessible manner. Turn off for simple tools so they just create one output">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
122 <option value="yes">Yes, arrange and link all output files written by my script to the current directory as an HTML page</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
123 <option value="" selected="true">No, no HTML output file thanks</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
124 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
125 <param name="make_TAB" type="select" label="Create a new (default tabular) history output with or without an HTML file specified above"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
126 help="This is useful if your script creates a single new tabular file you want to appear in the history after the tool executes">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
127 <option value="yes" selected="true">My script writes to a new history output</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
128 <option value="">I do not want a new history output file</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
129 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
130 <param name="output_format" type="select" multiple="false" label="Select the datatype that your tool/script emits as output"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
131 help="If your datatype is not listed here, it has to be added in galaxy's datatypes_conf.xml">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
132 <options from_parameter="tool.app.datatypes_registry.upload_file_formats">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
133 <column name="value" index="0"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
134 </options>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
135 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
136 <param name="interpreter" type="select" label="Select the interpreter for your code. This must be available on the path of the execution host">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
137 <option value="Rscript" selected="true">Rscript</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
138 <option value="python">python</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
139 <option value="perl">perl</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
140 <option value="bash">bash</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
141 <option value="sh">sh</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
142 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
143 <param name="edit_params" type="select" label="Add all additional parameters to the generated tool form so they are user editable?"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
144 help="If no (default), users will NOT be able to alter any additional parameters. If yes, these will appear on the tool form as text fields with no validation or sanitizing">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
145 <option value="yes">Yes, allow user to edit all additional parameters on the generated tool form</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
146 <option value="no" selected="true">No - use the fixed values for all additional parameters - no user editing</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
147 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
148 <repeat name="additional_parameters" title="Pass additional parameters to the script"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
149 help="See examples below to see how these can be parsed by scripts in the various languages">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
150 <param name="param_name" type="text" value="parameter_name" label="Choose the name for this parameter" size="60">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
151 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
152 <valid initial="string.letters,string.digits"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
153 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
154 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
155 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
156 <param name="param_type" type="select" label="Select the type for this parameter">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
157 <option value="text" selected="true">text</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
158 <option value="integer">integer</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
159 <option value="float">float</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
160 <option value="file">file</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
161 <option value="library_data">library_data</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
162 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
163 <param name="param_value" type="text" value="parameter_value" label="Enter this parameter's default value" size="60"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
164 help="Note that commas and double quotes cannot be used in this text field - please work around this technical limitation" >
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
165 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
166 <valid initial="string.printable"> <remove value=','/> <remove value='"'/> </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
167 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
168 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
169 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
170 <param name="param_label" type="text" value="parameter_label" label="Enter this parameter's label for the form" size="60"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
171 help="Note that commas and double quotes cannot be used in this text field - please creatively work around this technical limitation" >
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
172 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
173 <valid initial="string.printable"> <remove value=','/> <remove value='"'/> </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
174 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
175 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
176 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
177 <param name="param_help" type="text" value="parameter_help" label="Help for this parameter"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
178 help="Note that commas and double quotes cannot be used in this text field - please work around this technical limitation" size="60">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
179 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
180 <valid initial="string.printable"> <remove value=','/> <remove value='"'/> </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
181 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
182 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
183 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
184 </repeat>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
185 <param name="dynScript" label="Cut and paste the script to be executed here" type="text" value="" area="True" size="20x120"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
186 help="Script must deal with three command line parameters: please cut and paste from examples below for the appropriate scripting language">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
187 <sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
188 <valid initial="string.printable">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
189 </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
190 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
191 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
192 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
193 </inputs>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
194 <outputs>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
195 <data name="output1" label="${tool_name}.${output_format}" format="tabular" metadata_source="input_tab">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
196 <filter>make_TAB=="yes"</filter>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
197 <actions>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
198 <action type="format">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
199 <option type="from_param" name="output_format" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
200 </action>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
201 </actions>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
202 </data>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
203 <data format="html" name="html_file" label="${tool_name}.html">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
204 <filter>make_HTML == "yes"</filter>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
205 </data>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
206 <data format="toolshed.gz" name="new_tool" label="${tool_name}.toolshed.gz">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
207 <filter>makeMode['make_Tool'] == "yes"</filter>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
208 </data>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
209 </outputs>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
210 <configfiles>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
211 <configfile name="runme">$dynScript</configfile>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
212 <configfile name="helpme">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
213 #if $makeMode.make_Tool == "yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
214 ${makeMode.help_text}
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
215 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
216 </configfile>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
217 <configfile name="citeme">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
218 #if $makeMode.make_Tool == "yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
219 #for $citation in $makeMode.citations:
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
220 #if $citation.citation_type.type == "bibtex":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
221 **ENTRY**bibtex
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
222 ${citation.citation_type.bibtex}
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
223 #else
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
224 **ENTRY**doi
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
225 ${citation.citation_type.doi}
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
226 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
227 #end for
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
228 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
229 </configfile>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
230 </configfiles>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
231 <tests>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
232 <test>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
233 <param name='input_tab' value='tf2_test_in.xls' ftype='tabular' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
234 <param name='tool_name' value='tf2_test' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
235 <param name='make_Tool' value='yes' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
236 <param name='tool_version' value='0.01' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
237 <param name="tool_desc" value='testing_tf2' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
238 <param name="help_text" value='help text goes here' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
239 <param name='include_deps' value='yes' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
240 <param name="make_HTML" value="yes" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
241 <param name="make_TAB" value="yes" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
242 <param name="output_format" value="tabular" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
243 <param name="input_formats" value="tabular" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
244 <param name="interpreter" value='python' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
245 <param name="runme" value="tf2_test_runme.py"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
246 <output name='output1' file='tf2_test_out.xls' compare='diff' lines_diff = '10'/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
247 <output name='html_file' file="tf2_test.html" compare='diff' lines_diff = '10'/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
248 <output name='new_tool' file="tf2_test.toolshed.gz" compare="sim_size" delta="20" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
249 </test>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
250 </tests>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
251 <help>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
252
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
253 .. class:: warningmark
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
254
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
255 **Details and attribution**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
256 (see GTF_)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
257
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
258 **Local Admins ONLY**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
259 Only users whose IDs found in the local admin_user configuration setting in universe_wsgi.ini can run this tool.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
260
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
261 **If you find a bug**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
262 Please raise an issue at the bitbucket repository GTFI_
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
263
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
264 **What it does**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
265 This tool enables a user to paste and submit an arbitrary R/python/perl script to Galaxy passing
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
266 any number of input files and their metadata names to the script for use in (eg) summaries or reports.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
267 This allows quick generation of tools capable of taking some arbitrary number of user selected inputs
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
268 for the "reduce" step of a map-reduce HPC model.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
269
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
270 **Input options**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
271 This version allows multiple input file selected from the history - their paths and metadata names
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
272 are provided to your script - see the examples below for each scripting language. Python uses argparse.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
273 Rscript uses some code to create all the command line variables. Parameters are injected into the bash/sh
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
274 execution environment so they magically "appear" as $ prefixed variables and will also be found on the
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
275 command line as parameters to be parsed if that's your preference.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
276 Note that additional parameters are NOT presented to the user of the generated tool but are frozen with the script.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
277 If there's demand, it would not be too hard to add them to the generated script...
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
278
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
279 **Output options**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
280 Optional script outputs include one single new history tabular file and for scripts that create multiple file reports
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
281 or analyses, an Html page linking every file and image created by the script can be automatically generated.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
282
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
283 **Tool Generation option**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
284 Once the script is working with test data, this tool will optionally generate a new Galaxy tool in a Tool Shed (gzip) repository file
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
285 ready to upload to your local toolshed for sharing and installation.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
286 Provide a small sample input when you run generate the tool because it will become the input for the generated functional test.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
287
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
288 .. class:: warningmark
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
289
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
290 **Note to system administrators**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
291 This tool offers *NO* built in protection against malicious scripts. It should only be installed on private/personnal Galaxy instances.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
292 Admin_users will have the power to do anything they want as the Galaxy user if you install this tool.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
293
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
294 .. class:: warningmark
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
295
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
296 **Use on public servers** is STRONGLY discouraged for obvious reasons
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
297
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
298 The tools generated by this tool will run just as securely as any other normal installed Galaxy tool but like any other new tools, should always be checked carefully before installation.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
299 We recommend that you follow the good code hygiene practices associated with safe toolshed.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
300
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
301 **Scripting conventions** The pasted script will be executed with the path to the (optional) input tabular data file path or NONE if you do not select one, and the path to the optional
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
302 output file or None if none is wanted, as the first and second command line parameters. The script must deal appropriately with these - see Rscript examples below.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
303 Note that if an optional HTML output is selected, all the output files created by the script will be nicely presented as links, with pdf images linked as thumbnails in that output.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
304 This can be handy for complex scripts creating lots of output.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
305
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
306 <![CDATA[
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
307
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
308 **Multiple inputs**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
309
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
310 Your script will receive up to 3 named parameters
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
311 INPATHS is a comma separated list of input file paths
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
312 INNAMES is a comma separated list of input file names in the same order
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
313 OUTPATH is optional if a file is being generated, your script should write there
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
314 Your script should open and write files in the provided working directory if you are using the Html
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
315 automatic presentation option.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
316
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
317 Python script command lines will have --INPATHS and --additional_arguments etc. to make it easy to use argparse
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
318
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
319 Rscript will need to use commandArgs(TRUE) - see the example below - additional arguments will
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
320 appear as themselves - eg foo="bar" will mean that foo is defined as "bar" for the script.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
321
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
322 Bash and sh will see any additional parameters on their command lines and the 3 named parameters
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
323 in their environment magically - well, using env on the CL
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
324
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
325 ***python***::
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
326
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
327 # argparse for 3 possible comma separated lists
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
328 # additional parameters need to be parsed !
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
329 # then echo parameters to the output file
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
330 import sys
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
331 import argparse
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
332 argp=argparse.ArgumentParser()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
333 argp.add_argument('--INNAMES',default=None)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
334 argp.add_argument('--INPATHS',default=None)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
335 argp.add_argument('--OUTPATH',default=None)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
336 argp.add_argument('--additional_parameters',default=[],action="append")
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
337 argp.add_argument('otherargs', nargs=argparse.REMAINDER)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
338 args = argp.parse_args()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
339 f= open(args.OUTPATH,'w')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
340 s = '### args=%s\n' % str(args)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
341 f.write(s)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
342 s = 'sys.argv=%s\n' % sys.argv
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
343 f.write(s)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
344 f.close()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
345
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
346
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
347
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
348 ***Rscript***::
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
349
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
350 # tool factory Rscript parser suggested by Forester
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
351 # http://www.r-bloggers.com/including-arguments-in-r-cmd-batch-mode/
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
352 # additional parameters will appear in the ls() below - they are available
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
353 # to your script
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
354 # echo parameters to the output file
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
355 ourargs = commandArgs(TRUE)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
356 if(length(ourargs)==0){
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
357 print("No arguments supplied.")
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
358 }else{
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
359 for(i in 1:length(ourargs)){
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
360 eval(parse(text=ourargs[[i]]))
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
361 }
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
362 sink(OUTPATH)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
363 cat('INPATHS=',INPATHS,'\n')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
364 cat('INNAMES=',INNAMES,'\n')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
365 cat('OUTPATH=',OUTPATH,'\n')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
366 x=ls()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
367 cat('all objects=',x,'\n')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
368 sink()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
369 }
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
370 sessionInfo()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
371 print.noquote(date())
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
372
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
373
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
374 ***bash/sh***::
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
375
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
376 # tool factory sets up these environmental variables
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
377 # this example writes those to the output file
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
378 # additional params appear on command line
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
379 if [ ! -f "$OUTPATH" ] ; then
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
380 touch "$OUTPATH"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
381 fi
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
382 echo "INPATHS=$INPATHS" >> "$OUTPATH"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
383 echo "INNAMES=$INNAMES" >> "$OUTPATH"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
384 echo "OUTPATH=$OUTPATH" >> "$OUTPATH"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
385 echo "CL=$@" >> "$OUTPATH"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
386
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
387 ***perl***::
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
388
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
389 (my $INPATHS,my $INNAMES,my $OUTPATH ) = @ARGV;
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
390 open(my $fh, '>', $OUTPATH) or die "Could not open file '$OUTPATH' $!";
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
391 print $fh "INPATHS=$INPATHS\n INNAMES=$INNAMES\n OUTPATH=$OUTPATH\n";
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
392 close $fh;
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
393
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
394
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
395 ]]>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
396
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
397 **Citation**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
398
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
399
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
400 Paper_ :
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
401
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
402 Creating re-usable tools from scripts: The Galaxy Tool Factory
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
403 Ross Lazarus; Antony Kaspi; Mark Ziemann; The Galaxy Team
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
404 Bioinformatics 2012; doi: 10.1093/bioinformatics/bts573
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
405
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
406
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
407 **Licensing**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
408
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
409 Copyright Ross Lazarus (ross period lazarus at gmail period com) May 2012
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
410 All rights reserved.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
411 Licensed under the LGPL_
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
412
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
413 .. _LGPL: http://www.gnu.org/copyleft/lesser.html
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
414 .. _GTF: https://bitbucket.org/fubar/galaxytoolfactory
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
415 .. _GTFI: https://bitbucket.org/fubar/galaxytoolfactory/issues
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
416 .. _Paper: http://bioinformatics.oxfordjournals.org/cgi/reprint/bts573?ijkey=lczQh1sWrMwdYWJ&amp;keytype=ref
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
417
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
418
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
419 </help>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
420
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
421 </tool>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
422
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
423