annotate rgToolFactory2.xml @ 25:9fe74bd23af2 draft

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