Mercurial > repos > fubar > toolfactory
comparison rgToolFactory.xml @ 42:4b807bc775ad draft
Uploaded
author | fubar |
---|---|
date | Tue, 07 Oct 2014 18:47:43 -0400 |
parents | 8d28e32c71ff |
children | c5bfdb0f7041 |
comparison
equal
deleted
inserted
replaced
41:8d28e32c71ff | 42:4b807bc775ad |
---|---|
1 <tool id="rgTF" name="Tool Factory" version="1.11"> | 1 <tool id="rgTF" name="Tool Factory" version="1.10"> |
2 <description>Makes scripts into tools</description> | 2 <description>Makes scripts into tools</description> |
3 <requirements> | 3 <requirements> |
4 <requirement type="package" version="9.10">ghostscript</requirement> | 4 <requirement type="package" version="9.10">ghostscript</requirement> |
5 <requirement type="package" version="1.3.20">graphicsmagick</requirement> | 5 <requirement type="package" version="1.3.18">graphicsmagick</requirement> |
6 </requirements> | 6 </requirements> |
7 <command interpreter="python"> | 7 <command interpreter="python"> |
8 #if ( $__user_email__ not in $__admin_users__ ): | 8 #if ( $__user_email__ not in $__admin_users__ ): |
9 rgToolFactory.py --bad_user $__user_email__ | 9 rgToolFactory.py --bad_user $__user_email__ |
10 #else: | 10 #else: |
11 rgToolFactory.py --script_path "$runme" --interpreter "$interpreter" | 11 rgToolFactory.py --script_path "$runme" --interpreter "$interpreter" |
12 --tool_name "$tool_name" --user_email "$__user_email__" | 12 --tool_name "$tool_name" --user_email "$__user_email__" |
13 #if $make_TAB.value=="yes": | 13 #if $make_TAB.value=="yes": |
14 --output_tab "$tab_file" | 14 --output_tab "$tab_file" |
15 --output_format "$output_format" | |
16 #end if | 15 #end if |
17 #if $makeMode.make_Tool=="yes": | 16 #if $makeMode.make_Tool=="yes": |
18 --make_Tool "$makeMode.make_Tool" | 17 --make_Tool "$makeMode.make_Tool" |
19 --tool_desc "$makeMode.tool_desc" | 18 --tool_desc "$makeMode.tool_desc" |
20 --tool_version "$makeMode.tool_version" | 19 --tool_version "$makeMode.tool_version" |
21 --new_tool "$new_tool" | 20 --new_tool "$new_tool" |
22 --help_text "$helpme" | 21 --help_text "$helpme" |
23 #if $make_HTML.value=="yes": | 22 #if $make_HTML.value=="yes": |
24 #if makeMode.include.deps.value=="yes": | 23 --include_dependencies "${makeMode.include_deps}" |
25 --include_dependencies "yes" | |
26 #end if | |
27 #end if | 24 #end if |
28 --citations "$citeme" | |
29 #end if | 25 #end if |
30 #if $make_HTML.value=="yes": | 26 #if $make_HTML.value=="yes": |
31 --output_dir "$html_file.files_path" --output_html "$html_file" --make_HTML "yes" | 27 --output_dir "$html_file.files_path" --output_html "$html_file" --make_HTML "yes" |
32 #else: | 28 #else: |
33 --output_dir "." | 29 --output_dir "." |
34 #end if | 30 #end if |
35 #if $input1 != 'None': | 31 #if $input1 != 'None': |
36 --input_tab "$input1" | 32 --input_tab "$input1" |
37 --input_formats "$input_formats" | |
38 #end if | 33 #end if |
39 #end if | 34 #end if |
40 </command> | 35 </command> |
41 <inputs> | 36 <inputs> |
42 <param name="input1" type="data" label="Select an input file from your history" optional="true" size="120" | 37 <param name="input1" type="data" label="Select an input file from your history" optional="true" size="120" |
43 help="Most scripts will need an input - your script MUST be ready for whatever format you choose"/> | 38 help="Most scripts will need an input - your script MUST be ready for whatever format you choose"/> |
44 <param name="input_formats" type="select" multiple="true" label="Select the datatype(s) that your tool/script accepts as input" | |
45 help="If your datatype is not listed here, it has to be added in galaxy's datatypes_conf.xml"> | |
46 <options from_parameter="tool.app.datatypes_registry.upload_file_formats"> | |
47 <column name="value" index="0"/> | |
48 </options> | |
49 </param> | |
50 <param name="tool_name" type="text" value="My dynamic script" label="New tool ID and title for outputs" size="60" | 39 <param name="tool_name" type="text" value="My dynamic script" label="New tool ID and title for outputs" size="60" |
51 help="This will become the toolshed repository name so please choose thoughtfully to avoid namespace clashes with other tool writers"> | 40 help="This will become the toolshed repository name so please choose thoughtfully to avoid namespace clashes with other tool writers"> |
52 <sanitizer invalid_char=""> | 41 <sanitizer invalid_char=""> |
53 <valid initial="string.letters,string.digits"/> | 42 <valid initial="string.letters,string.digits"/> |
54 </sanitizer> | 43 </sanitizer> |
75 <param name="include_deps" type="select" label="Include ghostscript and graphicsmagick dependencies in generated tool" size="60" | 64 <param name="include_deps" type="select" label="Include ghostscript and graphicsmagick dependencies in generated tool" size="60" |
76 help="If an HTML file is being created, including dependencies is recommended. Otherwise this setting has no effect"> | 65 help="If an HTML file is being created, including dependencies is recommended. Otherwise this setting has no effect"> |
77 <option value="">Rely on system ghostscript and graphicsmagick rather than include these as dependencies</option> | 66 <option value="">Rely on system ghostscript and graphicsmagick rather than include these as dependencies</option> |
78 <option value="yes" selected="true">Include dependencies so target installations will always work if HTML is being generated</option> | 67 <option value="yes" selected="true">Include dependencies so target installations will always work if HTML is being generated</option> |
79 </param> | 68 </param> |
80 <repeat name="citations" title="Citation"> | 69 |
81 <conditional name="citation_type"> | |
82 <param name="type" type="select" label="Citation Type"> | |
83 <option value="doi">DOI</option> | |
84 <option value="bibtex">BibTeX</option> | |
85 </param> | |
86 <when value="doi"> | |
87 <param name="doi" label="DOI" type="text" value="" | |
88 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." /> | |
89 </when> | |
90 <when value="bibtex"> | |
91 <param name="bibtex" label="BibTex" type="text" area="true" size="8x120" | |
92 help="Supply a BibTex entry that should be cited when this tool is used in published research." value="" > | |
93 <sanitizer> | |
94 <valid initial="string.printable"> | |
95 </valid> | |
96 <mapping initial="none"/> | |
97 </sanitizer> | |
98 </param> | |
99 </when> | |
100 </conditional> | |
101 </repeat> | |
102 </when> | 70 </when> |
103 <when value = ""> | 71 <when value = ""> |
104 </when> | 72 </when> |
105 </conditional> | 73 </conditional> |
106 <param name="make_HTML" type="select" label="Create an HTML report with links to all output files and thumbnail links to PDF images" size="60" | 74 <param name="make_HTML" type="select" label="Create an HTML report with links to all output files and thumbnail links to PDF images" size="60" |
111 <param name="make_TAB" type="select" label="Create a new (default tabular) history output with or without an HTML file specified above" | 79 <param name="make_TAB" type="select" label="Create a new (default tabular) history output with or without an HTML file specified above" |
112 help="This is useful if your script creates a single new tabular file you want to appear in the history after the tool executes"> | 80 help="This is useful if your script creates a single new tabular file you want to appear in the history after the tool executes"> |
113 <option value="yes" selected="true">My script writes to a new history output</option> | 81 <option value="yes" selected="true">My script writes to a new history output</option> |
114 <option value="">I do not want a new history output file</option> | 82 <option value="">I do not want a new history output file</option> |
115 </param> | 83 </param> |
116 <param name="output_format" type="select" label="Select the datatype for the file your tool/script will write" | 84 <param name="out_format" type="select" label="Galaxy datatype for your tool's output file if any" help="You may need to edit the xml to extend this list"> |
117 help="If your datatype is not listed here, it has to be added in galaxy's datatypes_conf.xml"> | 85 <option value="tabular" selected="true">Tabular</option> |
118 <options from_parameter="tool.app.datatypes_registry.upload_file_formats"> | 86 <option value="interval">Interval</option> |
119 <column name="value" index="0"/> | 87 <option value="gz">gz</option> |
120 </options> | 88 <option value="text">text</option> |
121 </param> | 89 </param> |
122 <param name="interpreter" type="select" label="Select the interpreter for your code. This must be available on the path of the execution host"> | 90 <param name="interpreter" type="select" label="Select the interpreter for your code. This must be available on the path of the execution host"> |
123 <option value="Rscript" selected="true">Rscript</option> | 91 <option value="Rscript" selected="true">Rscript</option> |
124 <option value="python">python</option> | 92 <option value="python">python</option> |
125 <option value="perl">perl</option> | 93 <option value="perl">perl</option> |
126 <option value="bash">bash</option> | |
127 <option value="sh">sh</option> | 94 <option value="sh">sh</option> |
128 </param> | 95 </param> |
129 <param name="dynScript" label="Cut and paste the script to be executed here" type="text" value="" area="True" size="8x120" | 96 <param name="dynScript" label="Cut and paste the script to be executed here" type="text" value="" area="True" size="8x120" |
130 help="Script must deal with two command line parameters: Path to input tabular file path (or 'None' if none selected) and path to output tabular history file (or 'None')."> | 97 help="Script must deal with two command line parameters: Path to input tabular file path (or 'None' if none selected) and path to output tabular history file (or 'None')."> |
131 <sanitizer> | 98 <sanitizer> |
134 <mapping initial="none"/> | 101 <mapping initial="none"/> |
135 </sanitizer> | 102 </sanitizer> |
136 </param> | 103 </param> |
137 </inputs> | 104 </inputs> |
138 <outputs> | 105 <outputs> |
139 <data format="input" name="tab_file" label="${tool_name}.${output_format}"> | 106 <data format="tabular" name="tab_file" label="${tool_name}.${out_format}"> |
140 <filter>make_TAB == "yes"</filter> | 107 <filter>make_TAB=="yes"</filter> |
141 <actions> | 108 <change_format> |
142 <action type="format"> | 109 <when input="out_format" value="interval" format="interval" /> |
143 <option type="from_param" name="output_format" /> | 110 <when input="out_format" value="gz" format="gz" /> |
144 </action> | 111 <when input="out_format" value="text" format="text" /> |
145 </actions> | 112 </change_format> |
146 </data> | 113 </data> |
147 <data format="html" name="html_file" label="${tool_name}.html"> | 114 <data format="html" name="html_file" label="${tool_name}.html"> |
148 <filter>make_HTML == "yes"</filter> | 115 <filter>make_HTML == "yes"</filter> |
149 </data> | 116 </data> |
150 <data format="toolshed.gz" name="new_tool" label="${tool_name}.toolshed.gz"> | 117 <data format="toolshed.gz" name="new_tool" label="${tool_name}.toolshed.gz"> |
154 <configfiles> | 121 <configfiles> |
155 <configfile name="runme">$dynScript</configfile> | 122 <configfile name="runme">$dynScript</configfile> |
156 <configfile name="helpme"> | 123 <configfile name="helpme"> |
157 #if $makeMode.make_Tool == "yes": | 124 #if $makeMode.make_Tool == "yes": |
158 ${makeMode.help_text} | 125 ${makeMode.help_text} |
159 #end if | |
160 </configfile> | |
161 <configfile name="citeme"> | |
162 #if $makeMode.make_Tool == "yes": | |
163 #for $citation in $makeMode.citations: | |
164 #if $citation.citation_type.type == "bibtex": | |
165 **ENTRY**bibtex | |
166 ${citation.citation_type.bibtex} | |
167 #else | |
168 **ENTRY**doi | |
169 ${citation.citation_type.doi} | |
170 #end if | |
171 #end for | |
172 #end if | 126 #end if |
173 </configfile> | 127 </configfile> |
174 </configfiles> | 128 </configfiles> |
175 <help> | 129 <help> |
176 | 130 |
354 .. _GTFI: https://bitbucket.org/fubar/galaxytoolfactory/issues | 308 .. _GTFI: https://bitbucket.org/fubar/galaxytoolfactory/issues |
355 .. _Paper: http://bioinformatics.oxfordjournals.org/cgi/reprint/bts573?ijkey=lczQh1sWrMwdYWJ&keytype=ref | 309 .. _Paper: http://bioinformatics.oxfordjournals.org/cgi/reprint/bts573?ijkey=lczQh1sWrMwdYWJ&keytype=ref |
356 | 310 |
357 | 311 |
358 </help> | 312 </help> |
359 <citations> | 313 |
360 <citation type="doi">10.1093/bioinformatics/bts573</citation> | |
361 </citations> | |
362 </tool> | 314 </tool> |
363 | 315 |
364 | 316 |