annotate rgToolFactory2.xml @ 4:b85a3b92e9f7 draft

Uploaded
author fubar
date Sun, 11 Jan 2015 23:03:00 -0500
parents 6a3c292412fa
children ce5ec1d989fd
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
2
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
43 #if len($input_tab) != 0:
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
44 --input_formats "$input_formats"
2
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
45 #for $intab in $input_tab:
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
46 #if $intab.ext != 'data':
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
47 --input_tab "${intab},${intab.name}"
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
48 #end if
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
49 #end for
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
50 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
51 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
52 </command>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
53 <inputs>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
54 <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
55 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
56 <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
57 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
58 <options from_parameter="tool.app.datatypes_registry.upload_file_formats">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
59 <column name="value" index="0"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
60 </options>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
61 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
62 <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
63 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
64 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
65 <valid initial="string.letters,string.digits">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
66 <add value="_"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
67 </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
68 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
69 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
70 <conditional name="makeMode">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
71 <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
72 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
73 size="60">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
74 <option value="yes">Generate a Galaxy ToolShed compatible toolshed.gz</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
75 <option value="" selected="true">No. Just run the script please</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
76 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
77 <when value = "yes">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
78 <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
79 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
80 <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
81 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
82 <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
83 size="8x120" value="**What it Does**"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
84 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
85 <sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
86 <valid initial="string.printable">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
87 </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
88 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
89 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
90 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
91 <repeat name="citations" title="Citation">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
92 <conditional name="citation_type">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
93 <param name="type" type="select" label="Citation Type">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
94 <option value="doi">DOI</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
95 <option value="bibtex">BibTeX</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
96 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
97 <when value="doi">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
98 <param name="doi" label="DOI" type="text" value=""
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
99 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
100 </when>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
101 <when value="bibtex">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
102 <param name="bibtex" label="BibTex" type="text" area="true" size="8x120"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
103 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
104 <sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
105 <valid initial="string.printable">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
106 </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
107 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
108 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
109 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
110 </when>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
111 </conditional>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
112 </repeat>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
113 <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
114 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
115 <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
116 <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
117 </param>
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 <when value = "">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
120 </when>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
121 </conditional>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
122 <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
123 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
124 <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
125 <option value="" selected="true">No, no HTML output file thanks</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
126 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
127 <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
128 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
129 <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
130 <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
131 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
132 <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
133 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
134 <options from_parameter="tool.app.datatypes_registry.upload_file_formats">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
135 <column name="value" index="0"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
136 </options>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
137 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
138 <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
139 <option value="Rscript" selected="true">Rscript</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
140 <option value="python">python</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
141 <option value="perl">perl</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
142 <option value="bash">bash</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
143 <option value="sh">sh</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
144 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
145 <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
146 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
147 <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
148 <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
149 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
150 <repeat name="additional_parameters" title="Pass additional parameters to the script"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
151 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
152 <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
153 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
154 <valid initial="string.letters,string.digits"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
155 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
156 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
157 </param>
2
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
158 <param name="param_type" type="select" label="Select the type for this parameter">
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
159 <option value="text" selected="true">text</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
160 <option value="integer">integer</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
161 <option value="float">float</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
162 <option value="file">file</option>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
163 <option value="library_data">library_data</option>
2
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
164 </param>
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
165 <param name="param_value" type="text" value="parameter_value" label="Enter this parameter's default value" size="60"
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
166 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
167 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
168 <valid initial="string.printable"> <remove value=','/> <remove value='"'/> </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
169 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
170 </sanitizer>
2
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
171 </param>
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
172 <param name="param_label" type="text" value="parameter_label" label="Enter this parameter's label for the form" size="60"
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
173 help="Note that commas and double quotes cannot be used in this text field - please creatively work around this technical limitation" >
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
174 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
175 <valid initial="string.printable"> <remove value=','/> <remove value='"'/> </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
176 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
177 </sanitizer>
2
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
178 </param>
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
179 <param name="param_help" type="text" value="parameter_help" label="Help for this parameter"
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
180 help="Note that commas and double quotes cannot be used in this text field - please work around this technical limitation" size="60">
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
181 <sanitizer invalid_char="">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
182 <valid initial="string.printable"> <remove value=','/> <remove value='"'/> </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
183 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
184 </sanitizer>
2
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
185 </param>
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
186 </repeat>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
187 <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
188 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
189 <sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
190 <valid initial="string.printable">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
191 </valid>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
192 <mapping initial="none"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
193 </sanitizer>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
194 </param>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
195 </inputs>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
196 <outputs>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
197 <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
198 <filter>make_TAB=="yes"</filter>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
199 <actions>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
200 <action type="format">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
201 <option type="from_param" name="output_format" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
202 </action>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
203 </actions>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
204 </data>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
205 <data format="html" name="html_file" label="${tool_name}.html">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
206 <filter>make_HTML == "yes"</filter>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
207 </data>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
208 <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
209 <filter>makeMode['make_Tool'] == "yes"</filter>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
210 </data>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
211 </outputs>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
212 <configfiles>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
213 <configfile name="runme">$dynScript</configfile>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
214 <configfile name="helpme">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
215 #if $makeMode.make_Tool == "yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
216 ${makeMode.help_text}
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
217 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
218 </configfile>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
219 <configfile name="citeme">
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
220 #if $makeMode.make_Tool == "yes":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
221 #for $citation in $makeMode.citations:
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
222 #if $citation.citation_type.type == "bibtex":
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
223 **ENTRY**bibtex
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
224 ${citation.citation_type.bibtex}
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
225 #else
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
226 **ENTRY**doi
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
227 ${citation.citation_type.doi}
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 #end for
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
230 #end if
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
231 </configfile>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
232 </configfiles>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
233 <tests>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
234 <test>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
235 <param name='input_tab' value='tf2_test_in.xls' ftype='tabular' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
236 <param name='tool_name' value='tf2_test' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
237 <param name='make_Tool' value='yes' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
238 <param name='tool_version' value='0.01' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
239 <param name="tool_desc" value='testing_tf2' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
240 <param name="help_text" value='help text goes here' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
241 <param name='include_deps' value='yes' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
242 <param name="make_HTML" value="yes" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
243 <param name="make_TAB" value="yes" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
244 <param name="output_format" value="tabular" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
245 <param name="input_formats" value="tabular" />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
246 <param name="interpreter" value='python' />
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
247 <param name="runme" value="tf2_test_runme.py"/>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
248 <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
249 <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
250 <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
251 </test>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
252 </tests>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
253 <help>
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 .. class:: warningmark
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
256
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
257 **Details and attribution**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
258 (see GTF_)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
259
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
260 **Local Admins ONLY**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
261 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
262
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
263 **If you find a bug**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
264 Please raise an issue at the bitbucket repository GTFI_
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
265
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
266 **What it does**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
267 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
268 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
269 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
270 for the "reduce" step of a map-reduce HPC model.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
271
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
272 **Input options**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
273 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
274 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
275 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
276 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
277 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
278 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
279 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
280
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
281 **Output options**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
282 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
283 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
284
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
285 **Tool Generation option**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
286 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
287 ready to upload to your local toolshed for sharing and installation.
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
288 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
289
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
290 .. class:: warningmark
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
291
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
292 **Note to system administrators**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
293 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
294 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
295
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
296 .. class:: warningmark
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 **Use on public servers** is STRONGLY discouraged for obvious reasons
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
299
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
300 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
301 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
302
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
303 **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
304 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
305 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
306 This can be handy for complex scripts creating lots of output.
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 <![CDATA[
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 **Multiple inputs**
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
311
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
312 Your script will receive up to 3 named parameters
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
313 INPATHS is a comma separated list of input file paths
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
314 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
315 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
316 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
317 automatic presentation option.
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 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
320
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
321 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
322 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
323
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
324 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
325 in their environment magically - well, using env on the CL
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 ***python***::
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
328
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
329 # argparse for 3 possible comma separated lists
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
330 # additional parameters need to be parsed !
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
331 # then echo parameters to the output file
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
332 import sys
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
333 import argparse
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
334 argp=argparse.ArgumentParser()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
335 argp.add_argument('--INNAMES',default=None)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
336 argp.add_argument('--INPATHS',default=None)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
337 argp.add_argument('--OUTPATH',default=None)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
338 argp.add_argument('--additional_parameters',default=[],action="append")
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
339 argp.add_argument('otherargs', nargs=argparse.REMAINDER)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
340 args = argp.parse_args()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
341 f= open(args.OUTPATH,'w')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
342 s = '### args=%s\n' % str(args)
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 s = 'sys.argv=%s\n' % sys.argv
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
345 f.write(s)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
346 f.close()
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
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 ***Rscript***::
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
351
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
352 # tool factory Rscript parser suggested by Forester
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
353 # 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
354 # additional parameters will appear in the ls() below - they are available
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
355 # to your script
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
356 # echo parameters to the output file
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
357 ourargs = commandArgs(TRUE)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
358 if(length(ourargs)==0){
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
359 print("No arguments supplied.")
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
360 }else{
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
361 for(i in 1:length(ourargs)){
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
362 eval(parse(text=ourargs[[i]]))
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
363 }
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
364 sink(OUTPATH)
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
365 cat('INPATHS=',INPATHS,'\n')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
366 cat('INNAMES=',INNAMES,'\n')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
367 cat('OUTPATH=',OUTPATH,'\n')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
368 x=ls()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
369 cat('all objects=',x,'\n')
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
370 sink()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
371 }
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
372 sessionInfo()
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
373 print.noquote(date())
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
374
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 ***bash/sh***::
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
377
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
378 # tool factory sets up these environmental variables
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
379 # this example writes those to the output file
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
380 # additional params appear on command line
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
381 if [ ! -f "$OUTPATH" ] ; then
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
382 touch "$OUTPATH"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
383 fi
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
384 echo "INPATHS=$INPATHS" >> "$OUTPATH"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
385 echo "INNAMES=$INNAMES" >> "$OUTPATH"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
386 echo "OUTPATH=$OUTPATH" >> "$OUTPATH"
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
387 echo "CL=$@" >> "$OUTPATH"
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 ***perl***::
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
390
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
391 (my $INPATHS,my $INNAMES,my $OUTPATH ) = @ARGV;
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
392 open(my $fh, '>', $OUTPATH) or die "Could not open file '$OUTPATH' $!";
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
393 print $fh "INPATHS=$INPATHS\n INNAMES=$INNAMES\n OUTPATH=$OUTPATH\n";
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
394 close $fh;
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 ]]>
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
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
401 Paper_ :
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
402
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
403 Creating re-usable tools from scripts: The Galaxy Tool Factory
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
404 Ross Lazarus; Antony Kaspi; Mark Ziemann; The Galaxy Team
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
405 Bioinformatics 2012; doi: 10.1093/bioinformatics/bts573
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>
2
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
420 <citations>
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
421 <citation type="doi">doi: 10.1093/bioinformatics/bts573</citation>
6a3c292412fa Uploaded
fubar
parents: 1
diff changeset
422 </citations>
0
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
423 </tool>
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
424
c34063ab3735 Initial commit of code in iuc github repository
fubar
parents:
diff changeset
425