workflow-to-galaxy 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. data/CHANGES +6 -2
  2. data/README +11 -10
  3. data/Rakefile +7 -6
  4. data/doc/rdoc/CHANGES.html +105 -0
  5. data/doc/rdoc/Generator.html +262 -0
  6. data/doc/rdoc/LICENSE.html +115 -0
  7. data/doc/rdoc/README.html +167 -0
  8. data/doc/rdoc/WorkflowToGalaxy.html +135 -0
  9. data/doc/rdoc/created.rid +6 -1
  10. data/doc/rdoc/images/brick.png +0 -0
  11. data/doc/rdoc/images/brick_link.png +0 -0
  12. data/doc/rdoc/images/bug.png +0 -0
  13. data/doc/rdoc/images/bullet_black.png +0 -0
  14. data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
  15. data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
  16. data/doc/rdoc/images/date.png +0 -0
  17. data/doc/rdoc/images/find.png +0 -0
  18. data/doc/rdoc/images/loadingAnimation.gif +0 -0
  19. data/doc/rdoc/images/macFFBgHack.png +0 -0
  20. data/doc/rdoc/images/package.png +0 -0
  21. data/doc/rdoc/images/page_green.png +0 -0
  22. data/doc/rdoc/images/page_white_text.png +0 -0
  23. data/doc/rdoc/images/page_white_width.png +0 -0
  24. data/doc/rdoc/images/plugin.png +0 -0
  25. data/doc/rdoc/images/ruby.png +0 -0
  26. data/doc/rdoc/images/tag_green.png +0 -0
  27. data/doc/rdoc/images/wrench.png +0 -0
  28. data/doc/rdoc/images/wrench_orange.png +0 -0
  29. data/doc/rdoc/images/zoom.png +0 -0
  30. data/doc/rdoc/index.html +140 -20
  31. data/doc/rdoc/js/darkfish.js +116 -0
  32. data/doc/rdoc/js/jquery.js +32 -0
  33. data/doc/rdoc/js/quicksearch.js +114 -0
  34. data/doc/rdoc/js/thickbox-compressed.js +10 -0
  35. data/doc/rdoc/lib/workflow-to-galaxy/generator_rb.html +55 -0
  36. data/doc/rdoc/lib/workflow-to-galaxy_rb.html +54 -0
  37. data/doc/rdoc/rdoc.css +763 -0
  38. metadata +52 -14
  39. data/doc/rdoc/classes/Generator.html +0 -215
  40. data/doc/rdoc/classes/WorkflowToGalaxy.html +0 -105
  41. data/doc/rdoc/files/LICENSE.html +0 -133
  42. data/doc/rdoc/files/README.html +0 -192
  43. data/doc/rdoc/files/lib/workflow-to-galaxy/generator_rb.html +0 -108
  44. data/doc/rdoc/files/lib/workflow-to-galaxy_rb.html +0 -108
  45. data/doc/rdoc/fr_class_index.html +0 -28
  46. data/doc/rdoc/fr_file_index.html +0 -30
  47. data/doc/rdoc/fr_method_index.html +0 -28
  48. data/doc/rdoc/rdoc-style.css +0 -208
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow-to-galaxy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 7
10
- version: 0.2.7
9
+ - 8
10
+ version: 0.2.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kostas Karasavvas
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-21 00:00:00 Z
18
+ date: 2011-07-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: myexperiment-rest
@@ -65,6 +65,22 @@ dependencies:
65
65
  version: 0.5.3
66
66
  type: :runtime
67
67
  version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: rubyzip
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 51
77
+ segments:
78
+ - 0
79
+ - 9
80
+ - 4
81
+ version: 0.9.4
82
+ type: :runtime
83
+ version_requirements: *id004
68
84
  description: This script acquires information for a taverna 2 workflow from myExperiment (or from a file) and generates a Galaxy tool (.xml and .rb files).
69
85
  email: kostas.karasavvas@nbic.nl
70
86
  executables:
@@ -83,18 +99,40 @@ files:
83
99
  - bin/workflow_to_galaxy.rb
84
100
  - lib/workflow-to-galaxy/generator.rb
85
101
  - lib/workflow-to-galaxy.rb
86
- - doc/rdoc/rdoc-style.css
87
- - doc/rdoc/fr_file_index.html
88
- - doc/rdoc/classes/WorkflowToGalaxy.html
89
- - doc/rdoc/classes/Generator.html
90
- - doc/rdoc/fr_class_index.html
102
+ - doc/rdoc/WorkflowToGalaxy.html
103
+ - doc/rdoc/rdoc.css
104
+ - doc/rdoc/Generator.html
105
+ - doc/rdoc/LICENSE.html
91
106
  - doc/rdoc/index.html
92
- - doc/rdoc/files/LICENSE.html
93
- - doc/rdoc/files/README.html
94
- - doc/rdoc/files/lib/workflow-to-galaxy_rb.html
95
- - doc/rdoc/files/lib/workflow-to-galaxy/generator_rb.html
96
- - doc/rdoc/fr_method_index.html
107
+ - doc/rdoc/js/jquery.js
108
+ - doc/rdoc/js/thickbox-compressed.js
109
+ - doc/rdoc/js/darkfish.js
110
+ - doc/rdoc/js/quicksearch.js
111
+ - doc/rdoc/README.html
112
+ - doc/rdoc/lib/workflow-to-galaxy_rb.html
113
+ - doc/rdoc/lib/workflow-to-galaxy/generator_rb.html
97
114
  - doc/rdoc/created.rid
115
+ - doc/rdoc/CHANGES.html
116
+ - doc/rdoc/images/find.png
117
+ - doc/rdoc/images/bug.png
118
+ - doc/rdoc/images/bullet_toggle_minus.png
119
+ - doc/rdoc/images/wrench.png
120
+ - doc/rdoc/images/bullet_black.png
121
+ - doc/rdoc/images/macFFBgHack.png
122
+ - doc/rdoc/images/page_white_text.png
123
+ - doc/rdoc/images/ruby.png
124
+ - doc/rdoc/images/bullet_toggle_plus.png
125
+ - doc/rdoc/images/loadingAnimation.gif
126
+ - doc/rdoc/images/brick.png
127
+ - doc/rdoc/images/zoom.png
128
+ - doc/rdoc/images/tag_green.png
129
+ - doc/rdoc/images/page_green.png
130
+ - doc/rdoc/images/brick_link.png
131
+ - doc/rdoc/images/wrench_orange.png
132
+ - doc/rdoc/images/date.png
133
+ - doc/rdoc/images/page_white_width.png
134
+ - doc/rdoc/images/package.png
135
+ - doc/rdoc/images/plugin.png
98
136
  homepage:
99
137
  licenses: []
100
138
 
@@ -1,215 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Module: Generator</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">Generator</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/workflow-to-galaxy/generator_rb.html">
59
- lib/workflow-to-galaxy/generator.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
- <div id="description">
76
- <p>
77
- The <a href="Generator.html">Generator</a> module contains two public
78
- methods that generate a Galaxy&#8216;s tool XML and script files
79
- </p>
80
-
81
- </div>
82
-
83
-
84
- </div>
85
-
86
- <div id="method-list">
87
- <h3 class="section-bar">Methods</h3>
88
-
89
- <div class="name-list">
90
- <a href="#M000002">generate_script</a>&nbsp;&nbsp;
91
- <a href="#M000001">generate_xml</a>&nbsp;&nbsp;
92
- </div>
93
- </div>
94
-
95
- </div>
96
-
97
-
98
- <!-- if includes -->
99
-
100
- <div id="section">
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
- <!-- if method_list -->
110
- <div id="methods">
111
- <h3 class="section-bar">Public Instance methods</h3>
112
-
113
- <div id="method-M000002" class="method-detail">
114
- <a name="M000002"></a>
115
-
116
- <div class="method-heading">
117
- <a href="#M000002" class="method-signature">
118
- <span class="method-name">Generator.generate_script(my_exp_rest, t2_server, script_file) &rarr; nil<br />
119
- </span>
120
- </a>
121
- </div>
122
-
123
- <div class="method-description">
124
- <p>
125
- Generates the Galaxy tool&#8216;s script file responsible for talking to
126
- the taverna server
127
- </p>
128
- <dl>
129
- <dt><tt>my_exp_rest</tt></dt><dd>a <em>Workflow</em> object as returned from
130
- <em>MyExperimentREST.ReadWorkflow.new(url)</em>
131
-
132
- </dd>
133
- <dt><tt>t2_server</tt></dt><dd>a string containing the URL of the taverna 2 server
134
-
135
- </dd>
136
- <dt><tt>script_out</tt></dt><dd>the file handler to write the generated script code
137
-
138
- </dd>
139
- </dl>
140
- <p><a class="source-toggle" href="#"
141
- onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
142
- <div class="method-source-code" id="M000002-source">
143
- <pre>
144
- <span class="ruby-comment cmt"># File lib/workflow-to-galaxy/generator.rb, line 490</span>
145
- 490: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_script</span>(<span class="ruby-identifier">t2_workflow</span>, <span class="ruby-identifier">t2_server</span>, <span class="ruby-identifier">script_out</span>)
146
- 491: <span class="ruby-identifier">script_preample</span>(<span class="ruby-identifier">script_out</span>)
147
- 492: <span class="ruby-identifier">script_util_methods</span>(<span class="ruby-identifier">script_out</span>)
148
- 493: <span class="ruby-identifier">script_create_t2_run</span>(<span class="ruby-identifier">script_out</span>, <span class="ruby-identifier">t2_workflow</span>, <span class="ruby-identifier">t2_server</span>)
149
- 494: <span class="ruby-identifier">script_init_inputs</span>(<span class="ruby-identifier">script_out</span>, <span class="ruby-identifier">t2_workflow</span>)
150
- 495: <span class="ruby-identifier">script_start_run</span>(<span class="ruby-identifier">script_out</span>)
151
- 496: <span class="ruby-identifier">script_get_outputs</span>(<span class="ruby-identifier">script_out</span>, <span class="ruby-identifier">t2_workflow</span>)
152
- 497: <span class="ruby-identifier">script_finish_run</span>(<span class="ruby-identifier">script_out</span>)
153
- 498: <span class="ruby-keyword kw">end</span>
154
- </pre>
155
- </div>
156
- </div>
157
- </div>
158
-
159
- <div id="method-M000001" class="method-detail">
160
- <a name="M000001"></a>
161
-
162
- <div class="method-heading">
163
- <a href="#M000001" class="method-signature">
164
- <span class="method-name">Generator.generate_xml(my_exp_rest, xml_file) &rarr; nil<br />
165
- </span>
166
- </a>
167
- </div>
168
-
169
- <div class="method-description">
170
- <p>
171
- Generates the Galaxy tool&#8216;s xml file responsible for the UI.
172
- </p>
173
- <dl>
174
- <dt>+t2_workflow+</dt><dd>a <em>Workflow</em> object as returned from
175
- <em>MyExperimentREST::Workflows.new.read(url)</em>
176
-
177
- </dd>
178
- <dt><tt>xml_file</tt></dt><dd>a string containing the name of the generated XML file
179
-
180
- </dd>
181
- <dt><tt>xml_out</tt></dt><dd>the file handler to write the generated XML tags
182
-
183
- </dd>
184
- </dl>
185
- <p><a class="source-toggle" href="#"
186
- onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
187
- <div class="method-source-code" id="M000001-source">
188
- <pre>
189
- <span class="ruby-comment cmt"># File lib/workflow-to-galaxy/generator.rb, line 471</span>
190
- 471: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_xml</span>(<span class="ruby-identifier">t2_workflow</span>, <span class="ruby-identifier">xml_file</span>, <span class="ruby-identifier">xml_out</span>)
191
- 472: <span class="ruby-identifier">tool_begin_tag</span>(<span class="ruby-identifier">xml_out</span>, <span class="ruby-identifier">t2_workflow</span>.<span class="ruby-identifier">title</span>)
192
- 473: <span class="ruby-identifier">command_tag</span>(<span class="ruby-identifier">xml_out</span>, <span class="ruby-identifier">t2_workflow</span>, <span class="ruby-identifier">xml_file</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'.xml'</span>, <span class="ruby-value str">'.rb'</span>))
193
- 474: <span class="ruby-identifier">inputs_tag</span>(<span class="ruby-identifier">xml_out</span>, <span class="ruby-identifier">t2_workflow</span>.<span class="ruby-identifier">inputs</span>)
194
- 475: <span class="ruby-identifier">outputs_tag</span>(<span class="ruby-identifier">xml_out</span>, <span class="ruby-identifier">t2_workflow</span>.<span class="ruby-identifier">outputs</span>)
195
- 476: <span class="ruby-identifier">help_tag</span>(<span class="ruby-identifier">xml_out</span>, <span class="ruby-identifier">t2_workflow</span>)
196
- 477: <span class="ruby-identifier">tool_end_tag</span>(<span class="ruby-identifier">xml_out</span>)
197
- 478: <span class="ruby-keyword kw">end</span>
198
- </pre>
199
- </div>
200
- </div>
201
- </div>
202
-
203
-
204
- </div>
205
-
206
-
207
- </div>
208
-
209
-
210
- <div id="validator-badges">
211
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
212
- </div>
213
-
214
- </body>
215
- </html>
@@ -1,105 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Module: WorkflowToGalaxy</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">WorkflowToGalaxy</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/workflow-to-galaxy_rb.html">
59
- lib/workflow-to-galaxy.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
-
76
-
77
- </div>
78
-
79
-
80
- </div>
81
-
82
-
83
- <!-- if includes -->
84
-
85
- <div id="section">
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
- <!-- if method_list -->
95
-
96
-
97
- </div>
98
-
99
-
100
- <div id="validator-badges">
101
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
102
- </div>
103
-
104
- </body>
105
- </html>
@@ -1,133 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: LICENSE</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>LICENSE</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>LICENSE
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Wed Apr 06 16:41:53 +0200 2011</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
- <div id="description">
72
- <h2>workflow-to-galaxy</h2>
73
- <p>
74
- The MIT License
75
- </p>
76
- <p>
77
- Copyright (c) 2010 - Netherlands Bioinformatics Centre
78
- </p>
79
- <p>
80
- Permission is hereby granted, free of charge, to any person obtaining a
81
- copy of this software and associated documentation files (the
82
- &quot;Software&quot;), to deal in the Software without restriction,
83
- including without limitation the rights to use, copy, modify, merge,
84
- publish, distribute, sublicense, and/or sell copies of the Software, and to
85
- permit persons to whom the Software is furnished to do so, subject to the
86
- following conditions:
87
- </p>
88
- <p>
89
- The above copyright notice and this permission notice shall be included in
90
- all copies or substantial portions of the Software.
91
- </p>
92
- <p>
93
- THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,
94
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
95
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
96
- NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
97
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
98
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
99
- USE OR OTHER DEALINGS IN THE SOFTWARE.
100
- </p>
101
-
102
- </div>
103
-
104
-
105
- </div>
106
-
107
-
108
- </div>
109
-
110
-
111
- <!-- if includes -->
112
-
113
- <div id="section">
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
- <!-- if method_list -->
123
-
124
-
125
- </div>
126
-
127
-
128
- <div id="validator-badges">
129
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
130
- </div>
131
-
132
- </body>
133
- </html>