Mercurial > repos > fubar > toolfactory
comparison README.txt @ 40:8603867451d8 draft
Uploaded
author | fubar |
---|---|
date | Thu, 28 Aug 2014 06:18:31 -0400 |
parents | 9b64aa8688ad |
children | 8d28e32c71ff |
comparison
equal
deleted
inserted
replaced
39:64f7bd086146 | 40:8603867451d8 |
---|---|
14 | 14 |
15 In addition, this tool optionally generates very simple new Galaxy tools, that effectively | 15 In addition, this tool optionally generates very simple new Galaxy tools, that effectively |
16 freeze the supplied script into a new, ordinary Galaxy tool that runs it over a single input file, | 16 freeze the supplied script into a new, ordinary Galaxy tool that runs it over a single input file, |
17 working just like any other Galaxy tool for your users. | 17 working just like any other Galaxy tool for your users. |
18 | 18 |
19 If you use the Html output option, please ensure that sanitize_all_html is set to False and | |
20 uncommented in universe_wsgi.ini - it should show: | |
21 | |
22 # By default, all tool output served as 'text/html' will be sanitized | |
23 sanitize_all_html = False | |
24 | |
25 *More Detail* | |
26 | |
27 To use the ToolFactory, you should have prepared a script to paste into a text box, | 19 To use the ToolFactory, you should have prepared a script to paste into a text box, |
28 and a small test input example ready to select from your history to test your new script. | 20 and a small test input example ready to select from your history to test your new script. |
29 There is an example in each scripting language on the Tool Factory form. You can just | 21 There is an example in each scripting language on the Tool Factory form. You can just |
30 cut and paste these to try it out - remember to select the right interpreter please. You'll | 22 cut and paste these to try it out - remember to select the right interpreter please. You'll |
31 also need to create a small test data set using the Galaxy history add new data tool. | 23 also need to create a small test data set using the Galaxy history add new data tool. |
46 the tools you generate with the ToolFactory run just like any other Galaxy tool, | 38 the tools you generate with the ToolFactory run just like any other Galaxy tool, |
47 but run your script every time. | 39 but run your script every time. |
48 | 40 |
49 Tool factory tools are perfect for workflow components. One input, one output, no variables. | 41 Tool factory tools are perfect for workflow components. One input, one output, no variables. |
50 | 42 |
43 *Reasons to read further* | |
44 | |
45 If you use Galaxy to support your research; | |
46 | |
47 You and fellow users are sometimes forced to take data out of Galaxy, process it with ugly | |
48 little perl/awk/sed/R... scripts and put it back; | |
49 | |
50 You do this when you can't do some transformation in Galaxy (the 90/10 rule); | |
51 | |
52 You don't have enough developer resources for wrapping dozens of even relatively simple tools; | |
53 | |
54 Your research and your institution would be far better off if those feral scripts were all tucked | |
55 safely in your local toolshed and Galaxy histories. | |
56 | |
57 *The good news* If it can be trivially scripted, it can be running safely in your | |
58 local Galaxy via your own local toolshed in a few minutes - with functional tests. | |
59 | |
60 | |
61 *Value proposition* The ToolFactory allows Galaxy to efficiently take over most of your lab's | |
62 dark script matter, making it reproducible in Galaxy and shareable through the ToolShed. | |
63 | |
64 That's what this tool does. You paste a simple script and the tool returns | |
65 a new, real Galaxy tool, ready to be installed from the local toolshed to local servers. | |
66 Scripts can be wrapped and online literally within minutes. | |
67 | |
51 *To fully and safely exploit the awesome power* of this tool, Galaxy and the ToolShed, | 68 *To fully and safely exploit the awesome power* of this tool, Galaxy and the ToolShed, |
52 you should be a developer installing this tool on a private/personal/scratch local instance where you | 69 you should be a developer installing this tool on a private/personal/scratch local instance where you |
53 are an admin_user. Then, if you break it, you get to keep all the pieces | 70 are an admin_user. Then, if you break it, you get to keep all the pieces |
54 see https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home | 71 see https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home |
55 | 72 |
56 ** Installation ** | 73 ** Installation ** |
57 This is a Galaxy tool. You can install it most conveniently using the administrative "Search and browse tool sheds" link. | 74 This is a Galaxy tool. You can install it most conveniently using the administrative "Search and browse tool sheds" link. |
58 Find the Galaxy Main toolshed at https://toolshed.g2.bx.psu.edu/ and search for the toolfactory repository. | 75 Find the Galaxy Test toolshed (not main) and search for the toolfactory repository. |
59 Open it and review the code and select the option to install it. | 76 Open it and review the code and select the option to install it. |
60 | 77 |
61 ( | |
62 If you can't get the tool that way, the xml and py files here need to be copied into a new tools | 78 If you can't get the tool that way, the xml and py files here need to be copied into a new tools |
63 subdirectory such as tools/toolfactory Your tool_conf.xml needs a new entry pointing to the xml | 79 subdirectory such as tools/toolfactory Your tool_conf.xml needs a new entry pointing to the xml |
64 file - something like:: | 80 file - something like:: |
65 | 81 |
66 <section name="Tool building tools" id="toolbuilders"> | 82 <section name="Tool building tools" id="toolbuilders"> |
67 <tool file="toolfactory/rgToolFactory.xml"/> | 83 <tool file="toolfactory/rgToolFactory.xml"/> |
68 </section> | 84 </section> |
69 | 85 |
70 If not already there (I just added it to datatypes_conf.xml.sample), please add: | 86 If not already there (I just added it to datatypes_conf.xml.sample), please add: |
71 <datatype extension="toolshed.gz" type="galaxy.datatypes.binary:Binary" mimetype="multipart/x-gzip" subclass="True" /> | 87 <datatype extension="toolshed.gz" type="galaxy.datatypes.binary:Binary" mimetype="multipart/x-gzip" subclass="True" /> |
72 to your local data_types_conf.xml. | 88 to your local data_types_conf.xml. |
73 ) | 89 |
90 Ensure that html sanitization is set to False and uncommented in universe_wsgi.ini | |
91 | |
92 You'll have to restart the server for the new tool to be available. | |
74 | 93 |
75 Of course, R, python, perl etc are needed on your path if you want to test scripts using those interpreters. | 94 Of course, R, python, perl etc are needed on your path if you want to test scripts using those interpreters. |
76 Adding new ones to this tool code should be easy enough. Please make suggestions as bitbucket issues and code. | 95 Adding new ones to this tool code should be easy enough. Please make suggestions as bitbucket issues and code. |
77 The HTML file code automatically shrinks R's bloated pdfs, and depends on ghostscript. The thumbnails require imagemagick . | 96 The HTML file code automatically shrinks R's bloated pdfs, and depends on ghostscript. The thumbnails require imagemagick . |
78 | 97 |
115 If you opt for an HTML output, you get all the script outputs arranged | 134 If you opt for an HTML output, you get all the script outputs arranged |
116 as a single Html history item - all output files are linked, thumbnails for all the pdfs. | 135 as a single Html history item - all output files are linked, thumbnails for all the pdfs. |
117 Ugly but really inexpensive. | 136 Ugly but really inexpensive. |
118 | 137 |
119 Patches and suggestions welcome as bitbucket issues please? | 138 Patches and suggestions welcome as bitbucket issues please? |
139 | |
140 long route to June 2012 product | |
141 derived from an integrated script model | |
142 called rgBaseScriptWrapper.py | |
143 Note to the unwary: | |
144 This tool allows arbitrary scripting on your Galaxy as the Galaxy user | |
145 There is nothing stopping a malicious user doing whatever they choose | |
146 Extremely dangerous!! | |
147 Totally insecure. So, trusted users only | |
148 | |
149 | |
150 | |
120 | 151 |
121 copyright ross lazarus (ross stop lazarus at gmail stop com) May 2012 | 152 copyright ross lazarus (ross stop lazarus at gmail stop com) May 2012 |
122 | 153 |
123 all rights reserved | 154 all rights reserved |
124 Licensed under the LGPL if you want to improve it, feel free https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home | 155 Licensed under the LGPL if you want to improve it, feel free https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home |