bio-incanter 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/Gemfile +14 -0
  2. data/Gemfile.lock +35 -0
  3. data/LICENSE.txt +20 -0
  4. data/README.rdoc +26 -0
  5. data/Rakefile +51 -0
  6. data/VERSION +1 -0
  7. data/bio-incanter.gemspec +136 -0
  8. data/doc/AreaChart.html +473 -0
  9. data/doc/BarChart.html +519 -0
  10. data/doc/BlandAltman.html +453 -0
  11. data/doc/BoxPlot.html +474 -0
  12. data/doc/FunctionPlot.html +496 -0
  13. data/doc/HeatMap.html +554 -0
  14. data/doc/Histogram.html +444 -0
  15. data/doc/LICENSE_txt.html +130 -0
  16. data/doc/LineChart.html +479 -0
  17. data/doc/Object.html +278 -0
  18. data/doc/PieChart.html +455 -0
  19. data/doc/README_rdoc.html +152 -0
  20. data/doc/ScatterPlot.html +489 -0
  21. data/doc/TimeChart.html +473 -0
  22. data/doc/TracePlot.html +416 -0
  23. data/doc/XyPlot.html +477 -0
  24. data/doc/created.rid +18 -0
  25. data/doc/images/add.png +0 -0
  26. data/doc/images/brick.png +0 -0
  27. data/doc/images/brick_link.png +0 -0
  28. data/doc/images/bug.png +0 -0
  29. data/doc/images/bullet_black.png +0 -0
  30. data/doc/images/bullet_toggle_minus.png +0 -0
  31. data/doc/images/bullet_toggle_plus.png +0 -0
  32. data/doc/images/date.png +0 -0
  33. data/doc/images/delete.png +0 -0
  34. data/doc/images/find.png +0 -0
  35. data/doc/images/loadingAnimation.gif +0 -0
  36. data/doc/images/macFFBgHack.png +0 -0
  37. data/doc/images/package.png +0 -0
  38. data/doc/images/page_green.png +0 -0
  39. data/doc/images/page_white_text.png +0 -0
  40. data/doc/images/page_white_width.png +0 -0
  41. data/doc/images/plugin.png +0 -0
  42. data/doc/images/ruby.png +0 -0
  43. data/doc/images/tag_blue.png +0 -0
  44. data/doc/images/tag_green.png +0 -0
  45. data/doc/images/transparent.png +0 -0
  46. data/doc/images/wrench.png +0 -0
  47. data/doc/images/wrench_orange.png +0 -0
  48. data/doc/images/zoom.png +0 -0
  49. data/doc/index.html +106 -0
  50. data/doc/js/darkfish.js +153 -0
  51. data/doc/js/jquery.js +18 -0
  52. data/doc/js/navigation.js +142 -0
  53. data/doc/js/search.js +94 -0
  54. data/doc/js/search_index.js +1 -0
  55. data/doc/js/searcher.js +228 -0
  56. data/doc/rdoc.css +543 -0
  57. data/doc/table_of_contents.html +295 -0
  58. data/lib/area_chart/area_chart.rb +106 -0
  59. data/lib/bar_chart/bar_chart.rb +142 -0
  60. data/lib/bio-incanter.rb +108 -0
  61. data/lib/bland_altman/bland_altman.rb +120 -0
  62. data/lib/box_plot/box_plot.rb +136 -0
  63. data/lib/function_plot/function_plot.rb +137 -0
  64. data/lib/histogram/histogram.rb +139 -0
  65. data/lib/java/clocomics-1.0.0-standalone.jar +0 -0
  66. data/lib/line_chart/line_chart.rb +148 -0
  67. data/lib/pie_chart/pie_chart.rb +121 -0
  68. data/lib/qq_plot/qq_plot.rb +105 -0
  69. data/lib/scatter_plot/scatter_plot.rb +162 -0
  70. data/lib/time_chart/time_chart.rb +142 -0
  71. data/lib/trace_plot/trace_plot.rb +108 -0
  72. data/lib/xy_plot/xy_plot.rb +149 -0
  73. data/spec/bar_chart_spec.rb +25 -0
  74. data/spec/bland_altman_spec.rb +26 -0
  75. data/spec/box_plot_spec.rb +25 -0
  76. data/spec/function_plot_spec.rb +27 -0
  77. data/spec/histogram_spec.rb +24 -0
  78. data/spec/line_chart_spec.rb +25 -0
  79. data/spec/pie_chart_spec.rb +25 -0
  80. data/spec/qq_plot_spec.rb +24 -0
  81. data/spec/scatter_plot_spec.rb +26 -0
  82. data/spec/spec_helper.rb +13 -0
  83. data/spec/time_chart_spec.rb +26 -0
  84. data/spec/trace_plot_spec.rb +24 -0
  85. data/spec/xy_plot_spec.rb +25 -0
  86. metadata +196 -0
@@ -0,0 +1,25 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "BarChart" do
4
+
5
+ before :each do
6
+ @categories = ["uman","elf","dwarfs"]
7
+ @values = [1.0,2.0,3.0]
8
+ @params = {"title" => "Popolation of middle heart","x_label"=>"Popolation","y_label"=>"greed"}
9
+ @plot = BarChart.new @categories,@values,@params
10
+ end
11
+
12
+ describe "#new" do
13
+ it "takes three parameters and returns a BarChart object" do
14
+ @plot.should be_an_instance_of BarChart
15
+ end
16
+ end
17
+
18
+ describe "#save" do
19
+ it "save plot whit name sample.jpg(deafult)" do
20
+ @plot.save
21
+ (File.exist? "sample.jpg").should==true
22
+ FileUtils.rm "sample.jpg"
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,26 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "BlandAltman" do
4
+
5
+ before :each do
6
+ @x = [1.0,2.0,3.0]
7
+ @x2 = [1.0,2.0,3.0]
8
+ @params = {"title" => "Bland"}
9
+ @plot = BlandAltman.new @x,@x2,@params
10
+ end
11
+
12
+ describe "#new" do
13
+ it "takes three parameters and returns a BlandAltman object" do
14
+ @plot.should be_an_instance_of BlandAltman
15
+ end
16
+ end
17
+
18
+ describe "#save" do
19
+ it "save plot whit name sample.jpg(deafult)" do
20
+ @plot.save
21
+ (File.exist? "sample.jpg").should==true
22
+ FileUtils.rm "sample.jpg"
23
+ end
24
+ end
25
+ end
26
+
@@ -0,0 +1,25 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "BoxPlot" do
4
+
5
+ before :each do
6
+ @x = [1.0,2.0,3.0]
7
+ @params = {"title" => "Box Plot"}
8
+ @plot = BoxPlot.new @x,@params
9
+ end
10
+
11
+ describe "#new" do
12
+ it "takes two parameters and returns a BoxPlot object" do
13
+ @plot.should be_an_instance_of BoxPlot
14
+ end
15
+ end
16
+
17
+ describe "#save" do
18
+ it "save plot whit name sample.jpg(deafult)" do
19
+ @plot.save
20
+ (File.exist? "sample.jpg").should==true
21
+ FileUtils.rm "sample.jpg"
22
+ end
23
+ end
24
+ end
25
+
@@ -0,0 +1,27 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "FunctionPlot" do
4
+
5
+ before :each do
6
+ @function = "(defn cubic [x] (+ (* x x x) (* 2 x x) (* 2 x) 3))"
7
+ @min_x = 0
8
+ @max_x=100
9
+ @params = {"title" => "Function"}
10
+ @plot = FunctionPlot.new @function,@min_x,@max_x,@params
11
+ end
12
+
13
+ describe "#new" do
14
+ it "takes four parameters and returns a FunctionPlot object" do
15
+ @plot.should be_an_instance_of FunctionPlot
16
+ end
17
+ end
18
+
19
+ describe "#save" do
20
+ it "save plot whit name sample.jpg(deafult)" do
21
+ @plot.save
22
+ (File.exist? "sample.jpg").should==true
23
+ FileUtils.rm "sample.jpg"
24
+ end
25
+ end
26
+ end
27
+
@@ -0,0 +1,24 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "Histogram" do
4
+
5
+ before :each do
6
+ @values = [1.0,2.0,3.0]
7
+ @params = {"title" => "Popolation"}
8
+ @plot = Histogram.new @values,@params
9
+ end
10
+
11
+ describe "#new" do
12
+ it "takes three parameters and returns a BarChart object" do
13
+ @plot.should be_an_instance_of Histogram
14
+ end
15
+ end
16
+
17
+ describe "#save" do
18
+ it "save plot whit name sample.jpg(deafult)" do
19
+ @plot.save
20
+ (File.exist? "sample.jpg").should==true
21
+ FileUtils.rm "sample.jpg"
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,25 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "LineChart" do
4
+
5
+ before :each do
6
+ @categories = ["uman","elf","dwarfs"]
7
+ @values = [1.0,2.0,3.0]
8
+ @params = {"title" => "Popolation of middle heart","x_label"=>"Popolation","y_label"=>"greed"}
9
+ @plot = LineChart.new @categories,@values,@params
10
+ end
11
+
12
+ describe "#new" do
13
+ it "takes three parameters and returns a BarChart object" do
14
+ @plot.should be_an_instance_of LineChart
15
+ end
16
+ end
17
+
18
+ describe "#save" do
19
+ it "save plot whit name sample.jpg(deafult)" do
20
+ @plot.save
21
+ (File.exist? "sample.jpg").should==true
22
+ FileUtils.rm "sample.jpg"
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "PieChart" do
4
+
5
+ before :each do
6
+ @categories = ["uman","elf","dwarfs"]
7
+ @values = [1.0,2.0,3.0]
8
+ @params = {"title" => "Popolation of middle heart"}
9
+ @plot = PieChart.new @categories,@values,@params
10
+ end
11
+
12
+ describe "#new" do
13
+ it "takes three parameters and returns a BarChart object" do
14
+ @plot.should be_an_instance_of PieChart
15
+ end
16
+ end
17
+
18
+ describe "#save" do
19
+ it "save plot whit name sample.jpg(deafult)" do
20
+ @plot.save
21
+ (File.exist? "sample.jpg").should==true
22
+ FileUtils.rm "sample.jpg"
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,24 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "QqPlot" do
4
+
5
+ before :each do
6
+ @values = [1.0,2.0,3.0]
7
+ @params = {"title" => "A qq plot"}
8
+ @plot = QqPlot.new @values,@params
9
+ end
10
+
11
+ describe "#new" do
12
+ it "takes three parameters and returns a QqPlot object" do
13
+ @plot.should be_an_instance_of QqPlot
14
+ end
15
+ end
16
+
17
+ describe "#save" do
18
+ it "save plot whit name sample.jpg(deafult)" do
19
+ @plot.save
20
+ (File.exist? "sample.jpg").should==true
21
+ FileUtils.rm "sample.jpg"
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,26 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "ScatterPlot" do
4
+
5
+ before :each do
6
+ @x = [1.0,2.0,3.0]
7
+ @y = [1.0,2.0,3.0]
8
+ @params = {"title" => "Scatter Plot"}
9
+ @plot = ScatterPlot.new @x,@y,@params
10
+ end
11
+
12
+ describe "#new" do
13
+ it "takes three parameters and returns a ScatterPlot object" do
14
+ @plot.should be_an_instance_of ScatterPlot
15
+ end
16
+ end
17
+
18
+ describe "#save" do
19
+ it "save plot whit name sample.jpg(deafult)" do
20
+ @plot.save
21
+ (File.exist? "sample.jpg").should==true
22
+ FileUtils.rm "sample.jpg"
23
+ end
24
+ end
25
+ end
26
+
@@ -0,0 +1,13 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'bio-incanter'
5
+ require 'fileutils'
6
+
7
+ # Requires supporting files with custom matchers and macros, etc,
8
+ # in ./support/ and its subdirectories.
9
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
10
+
11
+ RSpec.configure do |config|
12
+
13
+ end
@@ -0,0 +1,26 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "TimeChart" do
4
+
5
+ before :each do
6
+ @time = [1000,2000,3000]
7
+ @y = [1.0,2.0,3.0]
8
+ @params = {"title" => "TimePlot"}
9
+ @plot = TimeChart.new @time,@y,@params
10
+ end
11
+
12
+ describe "#new" do
13
+ it "takes three parameters and returns a TimeChart object" do
14
+ @plot.should be_an_instance_of TimeChart
15
+ end
16
+ end
17
+
18
+ describe "#save" do
19
+ it "save plot whit name sample.jpg(deafult)" do
20
+ @plot.save
21
+ (File.exist? "sample.jpg").should==true
22
+ FileUtils.rm "sample.jpg"
23
+ end
24
+ end
25
+ end
26
+
@@ -0,0 +1,24 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "TracePlot" do
4
+
5
+ before :each do
6
+ @values = [1.0,2.0,3.0]
7
+ @params = {"title" => "Trace Plot"}
8
+ @plot = TracePlot.new @values,@params
9
+ end
10
+
11
+ describe "#new" do
12
+ it "takes two parameters and returns a TracePlot object" do
13
+ @plot.should be_an_instance_of TracePlot
14
+ end
15
+ end
16
+
17
+ describe "#save" do
18
+ it "save plot whit name sample.jpg(deafult)" do
19
+ @plot.save
20
+ (File.exist? "sample.jpg").should==true
21
+ FileUtils.rm "sample.jpg"
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,25 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "XyPlot" do
4
+
5
+ before :each do
6
+ @x = [1.0,2.0,3.0]
7
+ @y=[1.0,2.0,3.0]
8
+ @params = {}
9
+ @plot = XyPlot.new @x,@y,@params
10
+ end
11
+
12
+ describe "#new" do
13
+ it "takes three parameters and returns a XyPlot object" do
14
+ @plot.should be_an_instance_of XyPlot
15
+ end
16
+ end
17
+
18
+ describe "#save" do
19
+ it "save plot whit name sample.jpg(deafult)" do
20
+ @plot.save
21
+ (File.exist? "sample.jpg").should==true
22
+ FileUtils.rm "sample.jpg"
23
+ end
24
+ end
25
+ end
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bio-incanter
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Matteo Picciolini
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-08-06 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: jruby-openssl
17
+ version_requirements: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ requirement: *id001
24
+ prerelease: false
25
+ type: :runtime
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ version_requirements: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 2.8.0
34
+ requirement: *id002
35
+ prerelease: false
36
+ type: :development
37
+ - !ruby/object:Gem::Dependency
38
+ name: rdoc
39
+ version_requirements: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: "3.12"
45
+ requirement: *id003
46
+ prerelease: false
47
+ type: :development
48
+ - !ruby/object:Gem::Dependency
49
+ name: bundler
50
+ version_requirements: &id004 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - <
54
+ - !ruby/object:Gem::Version
55
+ version: 1.1.5
56
+ requirement: *id004
57
+ prerelease: false
58
+ type: :development
59
+ - !ruby/object:Gem::Dependency
60
+ name: jeweler
61
+ version_requirements: &id005 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ version: 1.8.4
67
+ requirement: *id005
68
+ prerelease: false
69
+ type: :development
70
+ description: A Jruby wrapper to Incanter lib
71
+ email: matteo.picciolini@gmail.com
72
+ executables: []
73
+
74
+ extensions: []
75
+
76
+ extra_rdoc_files:
77
+ - LICENSE.txt
78
+ - README.rdoc
79
+ files:
80
+ - Gemfile
81
+ - Gemfile.lock
82
+ - LICENSE.txt
83
+ - README.rdoc
84
+ - Rakefile
85
+ - VERSION
86
+ - bio-incanter.gemspec
87
+ - doc/AreaChart.html
88
+ - doc/BarChart.html
89
+ - doc/BlandAltman.html
90
+ - doc/BoxPlot.html
91
+ - doc/FunctionPlot.html
92
+ - doc/HeatMap.html
93
+ - doc/Histogram.html
94
+ - doc/LICENSE_txt.html
95
+ - doc/LineChart.html
96
+ - doc/Object.html
97
+ - doc/PieChart.html
98
+ - doc/README_rdoc.html
99
+ - doc/ScatterPlot.html
100
+ - doc/TimeChart.html
101
+ - doc/TracePlot.html
102
+ - doc/XyPlot.html
103
+ - doc/created.rid
104
+ - doc/images/add.png
105
+ - doc/images/brick.png
106
+ - doc/images/brick_link.png
107
+ - doc/images/bug.png
108
+ - doc/images/bullet_black.png
109
+ - doc/images/bullet_toggle_minus.png
110
+ - doc/images/bullet_toggle_plus.png
111
+ - doc/images/date.png
112
+ - doc/images/delete.png
113
+ - doc/images/find.png
114
+ - doc/images/loadingAnimation.gif
115
+ - doc/images/macFFBgHack.png
116
+ - doc/images/package.png
117
+ - doc/images/page_green.png
118
+ - doc/images/page_white_text.png
119
+ - doc/images/page_white_width.png
120
+ - doc/images/plugin.png
121
+ - doc/images/ruby.png
122
+ - doc/images/tag_blue.png
123
+ - doc/images/tag_green.png
124
+ - doc/images/transparent.png
125
+ - doc/images/wrench.png
126
+ - doc/images/wrench_orange.png
127
+ - doc/images/zoom.png
128
+ - doc/index.html
129
+ - doc/js/darkfish.js
130
+ - doc/js/jquery.js
131
+ - doc/js/navigation.js
132
+ - doc/js/search.js
133
+ - doc/js/search_index.js
134
+ - doc/js/searcher.js
135
+ - doc/rdoc.css
136
+ - doc/table_of_contents.html
137
+ - lib/area_chart/area_chart.rb
138
+ - lib/bar_chart/bar_chart.rb
139
+ - lib/bio-incanter.rb
140
+ - lib/bland_altman/bland_altman.rb
141
+ - lib/box_plot/box_plot.rb
142
+ - lib/function_plot/function_plot.rb
143
+ - lib/histogram/histogram.rb
144
+ - lib/java/clocomics-1.0.0-standalone.jar
145
+ - lib/line_chart/line_chart.rb
146
+ - lib/pie_chart/pie_chart.rb
147
+ - lib/qq_plot/qq_plot.rb
148
+ - lib/scatter_plot/scatter_plot.rb
149
+ - lib/time_chart/time_chart.rb
150
+ - lib/trace_plot/trace_plot.rb
151
+ - lib/xy_plot/xy_plot.rb
152
+ - spec/bar_chart_spec.rb
153
+ - spec/bland_altman_spec.rb
154
+ - spec/box_plot_spec.rb
155
+ - spec/function_plot_spec.rb
156
+ - spec/histogram_spec.rb
157
+ - spec/line_chart_spec.rb
158
+ - spec/pie_chart_spec.rb
159
+ - spec/qq_plot_spec.rb
160
+ - spec/scatter_plot_spec.rb
161
+ - spec/spec_helper.rb
162
+ - spec/time_chart_spec.rb
163
+ - spec/trace_plot_spec.rb
164
+ - spec/xy_plot_spec.rb
165
+ homepage: http://github.com/cerbero/bio-incanter
166
+ licenses:
167
+ - MIT
168
+ post_install_message:
169
+ rdoc_options: []
170
+
171
+ require_paths:
172
+ - lib
173
+ required_ruby_version: !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ hash: 2
179
+ segments:
180
+ - 0
181
+ version: "0"
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ none: false
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: "0"
188
+ requirements: []
189
+
190
+ rubyforge_project:
191
+ rubygems_version: 1.8.15
192
+ signing_key:
193
+ specification_version: 3
194
+ summary: Build Graph with Jruby
195
+ test_files: []
196
+