bio-svgenes 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/bio-svgenes.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bio-svgenes"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan MacLean"]
12
- s.date = "2012-12-03"
12
+ s.date = "2012-12-04"
13
13
  s.description = "This bio-gem facilitates the creation of pretty, publication quality SVG images from feature data."
14
14
  s.email = "maclean.daniel@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -32,6 +32,7 @@ Gem::Specification.new do |s|
32
32
  "examples/draw_from_json.rb",
33
33
  "examples/drawn_from_json.svg",
34
34
  "examples/drawn_from_json2.svg",
35
+ "examples/eg2.rb",
35
36
  "examples/example.rb",
36
37
  "examples/example.svg",
37
38
  "examples/example_config.json",
data/examples/eg2.rb ADDED
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # untitled
4
+ #
5
+ # Created by Dan MacLean (TSL) on 2012-09-28.
6
+ # Copyright (c) . All rights reserved.
7
+ ###################################################
8
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
9
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
10
+
11
+ require 'bio-svgenes'
12
+ require 'pp'
13
+ p = Bio::Graphics::Page.new(:width => 800,
14
+ :height => 200,
15
+ :number_of_intervals => 10)
16
+
17
+
18
+
19
+
20
+ transcript_track_last = p.add_track(:glyph => :transcript,
21
+ :name => 'transcripts (grouped models)',
22
+ :label => true,
23
+ :exon_fill_color => 'green',
24
+ :utr_fill_color => {:type => :radial, :id => :custom, :cx => 5, :cy => 5, :r => 50, :fx => 50, :fy => 50, :stops => [ {:offset => 0, :color => 'rgb(255,255,255)', :opacity => 0}, {:offset => 100, :color => 'rgb(0,127,200)', :opacity => 1},]},
25
+ :line_color => 'black',
26
+ :feature_height => 20 )
27
+
28
+
29
+ feature3 = Bio::Graphics::MiniFeature.new(:start => 3631,
30
+ :end => 5899,
31
+ :strand => '+',
32
+ :exons => [4486,4605,4706,5095,5174,5326],
33
+ :utrs => [3631,4485,5631,5899])
34
+ #:utrs => [3631,4276,5439,5899])
35
+ transcript_track_last.add(feature3)
36
+
37
+
38
+ p.draw
39
+
40
+ #pp p
data/examples/example.rb CHANGED
@@ -10,7 +10,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
10
10
 
11
11
  require 'bio-svgenes'
12
12
 
13
- p = Page.new(:width => 800,
13
+ p = Bio::Graphics::Page.new(:width => 800,
14
14
  :height => 200,
15
15
  :number_of_intervals => 10)
16
16
 
@@ -19,28 +19,28 @@ generic_track = p.add_track(:glyph => :generic,
19
19
  :name => 'generic_features',
20
20
  :label => true )
21
21
 
22
- feature1 = MiniFeature.new(:start => 923, :end => 2212, :strand => '+', :id => "MyFeature")
22
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212, :strand => '+', :id => "MyFeature")
23
23
  generic_track.add(feature1)
24
- feature2 = MiniFeature.new(:start => 467, :end => 1234)
24
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234)
25
25
  generic_track.add(feature2)
26
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
26
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
27
27
  generic_track.add(feature2)
28
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
28
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
29
29
  generic_track.add(feature2)
30
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
30
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
31
31
  generic_track.add(feature2)
32
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
32
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
33
33
  generic_track.add(feature2)
34
34
 
35
35
 
36
36
 
37
37
  generic_track = p.add_track(:glyph => :generic, :name => 'more_generic_features', :label => true, :fill_color => 'green' )
38
38
 
39
- feature1 = MiniFeature.new(:start => 923, :end => 2212)
39
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212)
40
40
  generic_track.add(feature1)
41
- feature1 = MiniFeature.new(:start => 3935, :end => 4212)
41
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 3935, :end => 4212)
42
42
  generic_track.add(feature1)
43
- feature1 = MiniFeature.new(:start => 467, :end => 15000)
43
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 15000)
44
44
  generic_track.add(feature1)
45
45
 
46
46
 
@@ -52,15 +52,15 @@ generic_track = p.add_track(:glyph => :generic,
52
52
  :x_round => 10 )
53
53
 
54
54
 
55
- feature1 = MiniFeature.new(:start => 923, :end => 2212)
55
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212)
56
56
  generic_track.add(feature1)
57
- feature2 = MiniFeature.new(:start => 467, :end => 1234)
57
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234)
58
58
  generic_track.add(feature2)
59
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
59
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
60
60
  generic_track.add(feature2)
61
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
61
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
62
62
  generic_track.add(feature2)
63
- feature1 = MiniFeature.new(:start => 467, :end => 15000)
63
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 15000)
64
64
  generic_track.add(feature1)
65
65
 
66
66
  directed_track = p.add_track(:glyph => :directed,
@@ -68,9 +68,9 @@ directed_track = p.add_track(:glyph => :directed,
68
68
  :label => true,
69
69
  :fill_color => :red_white_h )
70
70
 
71
- feature2 = MiniFeature.new(:start => 467, :end => 1234, :strand => '+')
71
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234, :strand => '+')
72
72
  directed_track.add(feature2)
73
- feature1 = MiniFeature.new(:start => 923, :end => 2212, :strand => '-')
73
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212, :strand => '-')
74
74
  directed_track.add(feature1)
75
75
 
76
76
 
@@ -78,17 +78,17 @@ generic_track = p.add_track(:glyph => :generic,
78
78
  :name => 'generic_features',
79
79
  :label => true )
80
80
 
81
- feature1 = MiniFeature.new(:start => 923, :end => 2212, :strand => '+')
81
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212, :strand => '+')
82
82
  generic_track.add(feature1) # will be Bio::Feature object
83
- feature2 = MiniFeature.new(:start => 467, :end => 1234)
83
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234)
84
84
  generic_track.add(feature2)
85
- feature2 = MiniFeature.new(:start => 12000, :end => 2030)
85
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 2030)
86
86
  generic_track.add(feature2)
87
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
87
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
88
88
  generic_track.add(feature2)
89
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
89
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
90
90
  generic_track.add(feature2)
91
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
91
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
92
92
  generic_track.add(feature2)
93
93
 
94
94
 
@@ -98,11 +98,11 @@ generic_track = p.add_track(:glyph => :generic,
98
98
  :label => true,
99
99
  :fill_color => 'green' )
100
100
 
101
- feature1 = MiniFeature.new(:start => 923, :end => 2212)
101
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212)
102
102
  generic_track.add(feature1)
103
- feature1 = MiniFeature.new(:start => 3935, :end => 4212)
103
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 3935, :end => 4212)
104
104
  generic_track.add(feature1)
105
- feature1 = MiniFeature.new(:start => 467, :end => 15000)
105
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 15000)
106
106
  generic_track.add(feature1)
107
107
 
108
108
 
@@ -113,24 +113,24 @@ generic_track = p.add_track(:glyph => :generic,
113
113
  :stroke_width => '1',
114
114
  :x_round => 1 )
115
115
 
116
- feature1 = MiniFeature.new(:start => 923, :end => 2212)
116
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212)
117
117
  generic_track.add(feature1) # will be Bio::Feature object
118
- feature2 = MiniFeature.new(:start => 467, :end => 1234)
118
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234)
119
119
  generic_track.add(feature2)
120
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
120
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
121
121
  generic_track.add(feature2)
122
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
122
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
123
123
  generic_track.add(feature2)
124
- feature1 = MiniFeature.new(:start => 467, :end => 15000)
124
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 15000)
125
125
  generic_track.add(feature1)
126
126
 
127
127
  directed_track = p.add_track(:glyph => :directed,
128
128
  :name => 'directed_features',
129
129
  :label => true )
130
130
 
131
- feature2 = MiniFeature.new(:start => 467, :end => 1234, :strand => '+')
131
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234, :strand => '+')
132
132
  directed_track.add(feature2)
133
- feature1 = MiniFeature.new(:start => 923, :end => 2212, :strand => '-')
133
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212, :strand => '-')
134
134
  directed_track.add(feature1)
135
135
 
136
136
 
@@ -138,17 +138,17 @@ generic_track = p.add_track(:glyph => :generic,
138
138
  :name => 'generic_features',
139
139
  :label => true )
140
140
 
141
- feature1 = MiniFeature.new(:start => 923, :end => 2212, :strand => '+')
141
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212, :strand => '+')
142
142
  generic_track.add(feature1) # will be Bio::Feature object
143
- feature2 = MiniFeature.new(:start => 467, :end => 1234)
143
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234)
144
144
  generic_track.add(feature2)
145
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
145
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
146
146
  generic_track.add(feature2)
147
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
147
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
148
148
  generic_track.add(feature2)
149
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
149
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
150
150
  generic_track.add(feature2)
151
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
151
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
152
152
  generic_track.add(feature2)
153
153
 
154
154
 
@@ -158,11 +158,11 @@ generic_track = p.add_track(:glyph => :generic,
158
158
  :label => true,
159
159
  :fill_color => 'green' )
160
160
 
161
- feature1 = MiniFeature.new(:start => 923, :end => 2212)
161
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212)
162
162
  generic_track.add(feature1)
163
- feature1 = MiniFeature.new(:start => 3935, :end => 4212)
163
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 3935, :end => 4212)
164
164
  generic_track.add(feature1)
165
- feature1 = MiniFeature.new(:start => 467, :end => 15000)
165
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 15000)
166
166
  generic_track.add(feature1)
167
167
 
168
168
 
@@ -173,15 +173,15 @@ generic_track = p.add_track(:glyph => :generic,
173
173
  :stroke_width => '1',
174
174
  :x_round => 4 )
175
175
 
176
- feature1 = MiniFeature.new(:start => 923, :end => 2212)
176
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212)
177
177
  generic_track.add(feature1) # will be Bio::Feature object
178
- feature2 = MiniFeature.new(:start => 467, :end => 1234)
178
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234)
179
179
  generic_track.add(feature2)
180
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
180
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
181
181
  generic_track.add(feature2)
182
- feature2 = MiniFeature.new(:start => 12000, :end => 12030)
182
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 12000, :end => 12030)
183
183
  generic_track.add(feature2)
184
- feature1 = MiniFeature.new(:start => 467, :end => 15000)
184
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 15000)
185
185
  generic_track.add(feature1)
186
186
 
187
187
  directed_track = p.add_track(:glyph => :directed,
@@ -190,13 +190,13 @@ directed_track = p.add_track(:glyph => :directed,
190
190
  :feature_height => 32,
191
191
  :fill_color => :red_white_h)
192
192
 
193
- feature2 = MiniFeature.new(:start => 467, :end => 1234, :strand => '+' )
193
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234, :strand => '+' )
194
194
  directed_track.add(feature2)
195
- feature1 = MiniFeature.new(:start => 923, :end => 2212, :strand => '-')
195
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212, :strand => '-')
196
196
  directed_track.add(feature1)
197
- feature2 = MiniFeature.new(:start => 467, :end => 1234, :strand => '+')
197
+ feature2 = Bio::Graphics::MiniFeature.new(:start => 467, :end => 1234, :strand => '+')
198
198
  directed_track.add(feature2)
199
- feature1 = MiniFeature.new(:start => 923, :end => 2212, :strand => '-')
199
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 923, :end => 2212, :strand => '-')
200
200
  directed_track.add(feature1)
201
201
 
202
202
  transcript_track = p.add_track(:glyph => :transcript,
@@ -207,14 +207,14 @@ transcript_track = p.add_track(:glyph => :transcript,
207
207
  :line_color => 'black',
208
208
  :feature_height => 20 )
209
209
 
210
- feature3 = MiniFeature.new(:start => 923,
210
+ feature3 = Bio::Graphics::MiniFeature.new(:start => 923,
211
211
  :end => 2345,
212
212
  :strand => '-',
213
213
  :exons => [1000,1200,1800,2000],
214
214
  :utrs => [923,1000,2000,2345])
215
215
  transcript_track.add(feature3)
216
216
 
217
- feature1 = MiniFeature.new(:start => 467,
217
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 467,
218
218
  :end => 15000,
219
219
  :exons => [1500,2500, 3000,7000, 9000,12000],
220
220
  :utrs => [467, 1000, 13500,14000, 14400, 14900],
@@ -231,14 +231,14 @@ transcript_track = p.add_track(:glyph => :transcript,
231
231
  :gap_marker => 'angled',
232
232
  :feature_height => 20 )
233
233
 
234
- feature3 = MiniFeature.new(:start => 923,
234
+ feature3 = Bio::Graphics::MiniFeature.new(:start => 923,
235
235
  :end => 2345,
236
236
  :strand => '-',
237
237
  :exons => [1000,1200,1800,2000],
238
238
  :utrs => [923,1000,2000,2345])
239
239
  transcript_track.add(feature3)
240
240
 
241
- feature1 = MiniFeature.new(:start => 467,
241
+ feature1 = Bio::Graphics::MiniFeature.new(:start => 467,
242
242
  :end => 15000,
243
243
  :exons => [1500,2500, 3000,7000, 9000,12000],
244
244
  :utrs => [467, 1000, 13500,14000])
@@ -257,7 +257,7 @@ data_track = p.add_track(:glyph => :histogram, #might also be :density or heatm
257
257
  )
258
258
  ##generate a load of data, each data point becomes a feature...
259
259
  data = (400..25000).step(1000) do |start|
260
- data_feature = MiniFeature.new(:start => start,
260
+ data_feature = Bio::Graphics::MiniFeature.new(:start => start,
261
261
  :end => start + 999,
262
262
  :segment_height => rand(30)
263
263
  )
@@ -279,7 +279,7 @@ data_track1 = p.add_track(:glyph => :histogram, #might also be :density or heat
279
279
  )
280
280
  ##generate a load of data, each data point becomes a feature...
281
281
  data = (400..25000).step(200) do |start|
282
- data_feature = MiniFeature.new(:start => start,
282
+ data_feature = Bio::Graphics::MiniFeature.new(:start => start,
283
283
  :end => start + 200,
284
284
  :segment_height => rand(30)
285
285
  )
@@ -131,23 +131,24 @@ class Glyph
131
131
 
132
132
 
133
133
  first_mark = args[:start]
134
- last_mark = args[:stop]
134
+ last_mark = args[:stop]
135
135
  #(num.to_f / @nt_per_px_x.to_f)
136
136
  full_dist = last_mark - first_mark
137
- interval_width = full_dist / args[:number_of_intervals]
137
+ interval_width = full_dist / (args[:number_of_intervals] - 1)
138
138
 
139
139
 
140
140
  a = [Bio::Graphics::Primitive.new(:line,
141
141
  :stroke => 'black',
142
142
  :stroke_width => 1,
143
- :x1 => 1, :x2 => args[:page_width] * 1.1,
143
+ :x1 => 1, :x2 => args[:page_width],# * 1.1,
144
144
  :y1 => "20", :y2 => "20" )]
145
145
 
146
146
 
147
147
  marks = (first_mark..last_mark).step(interval_width).to_a
148
- px_per_nt = full_dist / args[:page_width]
148
+
149
+ px_per_nt = args[:page_width].to_f / full_dist.to_f
149
150
  marks.each do |mark|
150
- x = (mark.to_f - first_mark )/ px_per_nt
151
+ x = (mark.to_f - first_mark ).to_f * px_per_nt
151
152
  a << Bio::Graphics::Primitive.new(:rectangle,
152
153
  :x => x,
153
154
  :y => 20,
@@ -17,9 +17,9 @@ class Page
17
17
  @height = height
18
18
  end
19
19
 
20
- def @svg.update_width(width)
21
- @width = width
22
- end
20
+ #def @svg.update_width(width)
21
+ # @width = width
22
+ #end
23
23
  end
24
24
 
25
25
  def self.from_json(args)
@@ -240,7 +240,7 @@ class Page
240
240
 
241
241
  @height = @track_top + 100 #fudge...
242
242
  @svg.update_height(@height)
243
- @svg.update_width(@width + 200)
243
+ #@svg.update_width(@width + 200)
244
244
 
245
245
  end
246
246
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-svgenes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-03 00:00:00.000000000 Z
12
+ date: 2012-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
16
- requirement: &70240940669740 !ruby/object:Gem::Requirement
16
+ requirement: &70110120233860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70240940669740
24
+ version_requirements: *70110120233860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70240940669140 !ruby/object:Gem::Requirement
27
+ requirement: &70110120233360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70240940669140
35
+ version_requirements: *70110120233360
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70240940668620 !ruby/object:Gem::Requirement
38
+ requirement: &70110120232860 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70240940668620
46
+ version_requirements: *70110120232860
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &70240940668040 !ruby/object:Gem::Requirement
49
+ requirement: &70110120232320 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70240940668040
57
+ version_requirements: *70110120232320
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bio
60
- requirement: &70240940667540 !ruby/object:Gem::Requirement
60
+ requirement: &70110120231820 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.4.2
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70240940667540
68
+ version_requirements: *70110120231820
69
69
  description: This bio-gem facilitates the creation of pretty, publication quality
70
70
  SVG images from feature data.
71
71
  email: maclean.daniel@gmail.com
@@ -90,6 +90,7 @@ files:
90
90
  - examples/draw_from_json.rb
91
91
  - examples/drawn_from_json.svg
92
92
  - examples/drawn_from_json2.svg
93
+ - examples/eg2.rb
93
94
  - examples/example.rb
94
95
  - examples/example.svg
95
96
  - examples/example_config.json
@@ -122,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
123
  version: '0'
123
124
  segments:
124
125
  - 0
125
- hash: 2128540255193795990
126
+ hash: -3214761707146878159
126
127
  required_rubygems_version: !ruby/object:Gem::Requirement
127
128
  none: false
128
129
  requirements: