workflow-to-galaxy 0.3.0 → 0.3.1
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.
- data/CHANGES +5 -0
- data/README +4 -0
- data/Rakefile +1 -1
- data/bin/Fetch_PDB_flatfile_from_RCSB_server.xml +0 -0
- data/doc/rdoc/CHANGES.html +7 -0
- data/doc/rdoc/README.html +5 -0
- data/doc/rdoc/WorkflowToGalaxy/GalaxyTool.html +2 -2
- data/doc/rdoc/created.rid +4 -4
- data/doc/rdoc/index.html +5 -0
- data/doc/rdoc/lib/workflow-to-galaxy/galaxy_rb.html +58 -0
- data/lib/workflow-to-galaxy/galaxy.rb +4 -4
- metadata +6 -4
data/CHANGES
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
= Changes log for the Taverna-Galaxy Gem
|
2
2
|
|
3
|
+
== Version 0.3.1
|
4
|
+
* Use semver formally... (tag: v0.3.1 semver !!) ????
|
5
|
+
* For safety default file names substiture ' ' with '_'
|
6
|
+
|
7
|
+
|
3
8
|
== Version 0.3.0
|
4
9
|
* Updated to newer myexperiment-rest lib (0.3.0).
|
5
10
|
* Restructured, now more modular and extensible.
|
data/README
CHANGED
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ require 'rdoc/task'
|
|
7
7
|
|
8
8
|
spec = Gem::Specification.new do |s|
|
9
9
|
s.name = 'workflow-to-galaxy'
|
10
|
-
s.version = '0.3.
|
10
|
+
s.version = '0.3.1'
|
11
11
|
s.extra_rdoc_files = ['README', 'LICENSE', 'CHANGES']
|
12
12
|
s.summary = 'This script acquires information for a taverna 2 workflow from myExperiment (or from a file) and generates a Galaxy tool (.xml and .rb files).'
|
13
13
|
s.description = s.summary
|
File without changes
|
data/doc/rdoc/CHANGES.html
CHANGED
@@ -82,6 +82,13 @@
|
|
82
82
|
|
83
83
|
<h1>Changes log for the Taverna-Galaxy Gem</h1>
|
84
84
|
|
85
|
+
<h2>Version 0.3.1</h2>
|
86
|
+
<ul><li>
|
87
|
+
<p>Use semver formally… (tag: v0.3.1 semver !!) ????</p>
|
88
|
+
</li><li>
|
89
|
+
<p>For safety default file names substiture ‘ ’ with ‘_’</p>
|
90
|
+
</li></ul>
|
91
|
+
|
85
92
|
<h2>Version 0.3.0</h2>
|
86
93
|
<ul><li>
|
87
94
|
<p>Updated to newer myexperiment-rest lib (0.3.0).</p>
|
data/doc/rdoc/README.html
CHANGED
@@ -157,6 +157,11 @@ href="https://trac.nbic.nl/elabfactory/wiki/eGalaxy">trac.nbic.nl/elabfactory/wi
|
|
157
157
|
<p><a href="http://www.myexperiment.org">www.myexperiment.org</a></p>
|
158
158
|
</td></tr></table>
|
159
159
|
|
160
|
+
<h2>Semantic Versioning</h2>
|
161
|
+
|
162
|
+
<p>This module uses semantic versioning concepts from <a
|
163
|
+
href="http://semver.org/.">semver.org/.</a></p>
|
164
|
+
|
160
165
|
</div>
|
161
166
|
|
162
167
|
<div id="validator-badges">
|
@@ -294,7 +294,7 @@ the workflow object that will be used to generate the galaxy tool</p>
|
|
294
294
|
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-value">:params</span>][<span class="ruby-value">:xml_out</span>]
|
295
295
|
<span class="ruby-identifier">generate_xml</span>(<span class="ruby-ivar">@wkf_object</span>, <span class="ruby-ivar">@config</span>[<span class="ruby-value">:params</span>][<span class="ruby-value">:xml_out</span>])
|
296
296
|
<span class="ruby-keyword">else</span>
|
297
|
-
<span class="ruby-identifier">xml_out</span> = <span class="ruby-identifier">open</span>(<span class="ruby-ivar">@wkf_object</span>.<span class="ruby-identifier">title</span> <span class="ruby-operator">+</span> <span class="ruby-string">".xml"</span>, <span class="ruby-string">"w"</span>)
|
297
|
+
<span class="ruby-identifier">xml_out</span> = <span class="ruby-identifier">open</span>(<span class="ruby-ivar">@wkf_object</span>.<span class="ruby-identifier">title</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/ /</span>, <span class="ruby-string">'_'</span>) <span class="ruby-operator">+</span> <span class="ruby-string">".xml"</span>, <span class="ruby-string">"w"</span>)
|
298
298
|
<span class="ruby-identifier">generate_xml</span>(<span class="ruby-ivar">@wkf_object</span>, <span class="ruby-identifier">xml_out</span>)
|
299
299
|
<span class="ruby-identifier">xml_out</span>.<span class="ruby-identifier">close</span>
|
300
300
|
<span class="ruby-keyword">end</span>
|
@@ -303,7 +303,7 @@ the workflow object that will be used to generate the galaxy tool</p>
|
|
303
303
|
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-value">:params</span>][<span class="ruby-value">:rb_out</span>]
|
304
304
|
<span class="ruby-identifier">generate_rb</span>(<span class="ruby-ivar">@wkf_object</span>, <span class="ruby-ivar">@config</span>[<span class="ruby-value">:params</span>][<span class="ruby-value">:rb_out</span>], <span class="ruby-ivar">@config</span>[<span class="ruby-value">:params</span>][<span class="ruby-value">:t2_server</span>])
|
305
305
|
<span class="ruby-keyword">else</span>
|
306
|
-
<span class="ruby-identifier">rb_out</span> = <span class="ruby-identifier">open</span>(<span class="ruby-ivar">@wkf_object</span>.<span class="ruby-identifier">title</span> <span class="ruby-operator">+</span> <span class="ruby-string">".rb"</span>, <span class="ruby-string">"w"</span>)
|
306
|
+
<span class="ruby-identifier">rb_out</span> = <span class="ruby-identifier">open</span>(<span class="ruby-ivar">@wkf_object</span>.<span class="ruby-identifier">title</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/ /</span>, <span class="ruby-string">'_'</span>) <span class="ruby-operator">+</span> <span class="ruby-string">".rb"</span>, <span class="ruby-string">"w"</span>)
|
307
307
|
<span class="ruby-identifier">generate_rb</span>(<span class="ruby-ivar">@wkf_object</span>, <span class="ruby-identifier">rb_out</span>, <span class="ruby-ivar">@config</span>[<span class="ruby-value">:params</span>][<span class="ruby-value">:t2_server</span>])
|
308
308
|
<span class="ruby-identifier">rb_out</span>.<span class="ruby-identifier">close</span>
|
309
309
|
<span class="ruby-keyword">end</span>
|
data/doc/rdoc/created.rid
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
Thu,
|
1
|
+
Thu, 27 Oct 2011 11:03:06 +0200
|
2
2
|
lib/workflow-to-galaxy.rb Thu, 13 Oct 2011 12:51:40 +0200
|
3
3
|
lib/workflow-to-galaxy/constants.rb Mon, 10 Oct 2011 14:10:32 +0200
|
4
|
-
lib/workflow-to-galaxy/galaxy.rb Thu,
|
4
|
+
lib/workflow-to-galaxy/galaxy.rb Thu, 27 Oct 2011 11:03:00 +0200
|
5
5
|
LICENSE Tue, 26 Jul 2011 16:35:55 +0200
|
6
|
-
README
|
7
|
-
CHANGES Thu,
|
6
|
+
README Thu, 13 Oct 2011 16:23:10 +0200
|
7
|
+
CHANGES Thu, 27 Oct 2011 10:48:55 +0200
|
data/doc/rdoc/index.html
CHANGED
@@ -100,6 +100,11 @@ href="https://trac.nbic.nl/elabfactory/wiki/eGalaxy">trac.nbic.nl/elabfactory/wi
|
|
100
100
|
<p><a href="http://www.myexperiment.org">www.myexperiment.org</a></p>
|
101
101
|
</td></tr></table>
|
102
102
|
|
103
|
+
<h2>Semantic Versioning</h2>
|
104
|
+
|
105
|
+
<p>This module uses semantic versioning concepts from <a
|
106
|
+
href="http://semver.org/.">semver.org/.</a></p>
|
107
|
+
|
103
108
|
</div>
|
104
109
|
|
105
110
|
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>File: galaxy.rb [workflow-to-galaxy Docs]</title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
<script src="../../js/jquery.js" type="text/javascript"
|
14
|
+
charset="utf-8"></script>
|
15
|
+
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
16
|
+
charset="utf-8"></script>
|
17
|
+
<script src="../../js/quicksearch.js" type="text/javascript"
|
18
|
+
charset="utf-8"></script>
|
19
|
+
<script src="../../js/darkfish.js" type="text/javascript"
|
20
|
+
charset="utf-8"></script>
|
21
|
+
</head>
|
22
|
+
|
23
|
+
<body class="file file-popup">
|
24
|
+
<div id="metadata">
|
25
|
+
<dl>
|
26
|
+
<dt class="modified-date">Last Modified</dt>
|
27
|
+
<dd class="modified-date">Thu Oct 27 11:03:00 +0200 2011</dd>
|
28
|
+
|
29
|
+
|
30
|
+
<dt class="requires">Requires</dt>
|
31
|
+
<dd class="requires">
|
32
|
+
<ul>
|
33
|
+
|
34
|
+
<li>myexperiment-rest</li>
|
35
|
+
|
36
|
+
<li>t2flow/model.rb</li>
|
37
|
+
|
38
|
+
<li>t2flow/parser.rb</li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</dd>
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
</dl>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<div id="documentation">
|
49
|
+
|
50
|
+
<div class="description">
|
51
|
+
<h2>Description</h2>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
</body>
|
57
|
+
</html>
|
58
|
+
|
@@ -54,7 +54,7 @@ module WorkflowToGalaxy
|
|
54
54
|
|
55
55
|
# Galaxy's XML tool tag
|
56
56
|
def tool_begin_tag(out, name)
|
57
|
-
out.write("<tool id=\"#{name}_id\" name=\"#{name}\">\n")
|
57
|
+
out.write("<tool id=\"#{name.gsub(/ /, '_')}_id\" name=\"#{name}\">\n")
|
58
58
|
end
|
59
59
|
|
60
60
|
# Galaxy's XML command tag
|
@@ -506,7 +506,7 @@ START_RUN
|
|
506
506
|
# Generates the Galaxy tool's xml file responsible for the UI.
|
507
507
|
# TODO: maybe clean arguments -- only xml_out is needed to be passed
|
508
508
|
def generate_xml(t2_workflow, xml_out)
|
509
|
-
tool_begin_tag(xml_out,
|
509
|
+
tool_begin_tag(xml_out, t2_workflow.title)
|
510
510
|
command_tag(xml_out, t2_workflow, xml_out.path.match('([^\/]+)\..*$')[1] + '.rb')
|
511
511
|
inputs_tag(xml_out, t2_workflow.inputs)
|
512
512
|
outputs_tag(xml_out, t2_workflow.outputs)
|
@@ -605,7 +605,7 @@ START_RUN
|
|
605
605
|
if @config[:params][:xml_out]
|
606
606
|
generate_xml(@wkf_object, @config[:params][:xml_out])
|
607
607
|
else
|
608
|
-
xml_out = open(@wkf_object.title + ".xml", "w")
|
608
|
+
xml_out = open(@wkf_object.title.gsub(/ /, '_') + ".xml", "w")
|
609
609
|
generate_xml(@wkf_object, xml_out)
|
610
610
|
xml_out.close
|
611
611
|
end
|
@@ -614,7 +614,7 @@ START_RUN
|
|
614
614
|
if @config[:params][:rb_out]
|
615
615
|
generate_rb(@wkf_object, @config[:params][:rb_out], @config[:params][:t2_server])
|
616
616
|
else
|
617
|
-
rb_out = open(@wkf_object.title + ".rb", "w")
|
617
|
+
rb_out = open(@wkf_object.title.gsub(/ /, '_') + ".rb", "w")
|
618
618
|
generate_rb(@wkf_object, rb_out, @config[:params][:t2_server])
|
619
619
|
rb_out.close
|
620
620
|
end
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
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-10-
|
18
|
+
date: 2011-10-27 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: myexperiment-rest
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- CHANGES
|
98
98
|
- Rakefile
|
99
99
|
- bin/workflow_to_galaxy.rb
|
100
|
+
- bin/Fetch_PDB_flatfile_from_RCSB_server.xml
|
100
101
|
- lib/workflow-to-galaxy/galaxy.rb
|
101
102
|
- lib/workflow-to-galaxy/constants.rb
|
102
103
|
- lib/workflow-to-galaxy.rb
|
@@ -116,6 +117,7 @@ files:
|
|
116
117
|
- doc/rdoc/lib/workflow_to_galaxy_rb.html
|
117
118
|
- doc/rdoc/lib/workflow-to-galaxy_rb.html
|
118
119
|
- doc/rdoc/lib/generator_rb.html
|
120
|
+
- doc/rdoc/lib/workflow-to-galaxy/galaxy_rb.html
|
119
121
|
- doc/rdoc/lib/workflow-to-galaxy/generator_rb.html
|
120
122
|
- doc/rdoc/lib/workflow-to-galaxy/constants_rb.html
|
121
123
|
- doc/rdoc/created.rid
|