bio-svgenes 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/.DS_Store +0 -0
  2. data/VERSION +1 -1
  3. data/bio-svgenes.gemspec +59 -4
  4. data/doc/.DS_Store +0 -0
  5. data/doc/Bio.html +141 -0
  6. data/doc/Bio/.DS_Store +0 -0
  7. data/doc/Bio/Graphics.html +147 -0
  8. data/doc/Bio/Graphics/Glyph.html +1061 -0
  9. data/doc/Bio/Graphics/MiniFeature.html +342 -0
  10. data/doc/Bio/Graphics/Page.html +1200 -0
  11. data/doc/Bio/Graphics/Primitive.html +278 -0
  12. data/doc/Bio/Graphics/SVGEE.html +471 -0
  13. data/doc/Bio/Graphics/Track.html +506 -0
  14. data/doc/LICENSE_txt.html +118 -0
  15. data/doc/created.rid +9 -0
  16. data/doc/images/add.png +0 -0
  17. data/doc/images/arrow_up.png +0 -0
  18. data/doc/images/brick.png +0 -0
  19. data/doc/images/brick_link.png +0 -0
  20. data/doc/images/bug.png +0 -0
  21. data/doc/images/bullet_black.png +0 -0
  22. data/doc/images/bullet_toggle_minus.png +0 -0
  23. data/doc/images/bullet_toggle_plus.png +0 -0
  24. data/doc/images/date.png +0 -0
  25. data/doc/images/delete.png +0 -0
  26. data/doc/images/find.png +0 -0
  27. data/doc/images/loadingAnimation.gif +0 -0
  28. data/doc/images/macFFBgHack.png +0 -0
  29. data/doc/images/package.png +0 -0
  30. data/doc/images/page_green.png +0 -0
  31. data/doc/images/page_white_text.png +0 -0
  32. data/doc/images/page_white_width.png +0 -0
  33. data/doc/images/plugin.png +0 -0
  34. data/doc/images/ruby.png +0 -0
  35. data/doc/images/tag_blue.png +0 -0
  36. data/doc/images/tag_green.png +0 -0
  37. data/doc/images/transparent.png +0 -0
  38. data/doc/images/wrench.png +0 -0
  39. data/doc/images/wrench_orange.png +0 -0
  40. data/doc/images/zoom.png +0 -0
  41. data/doc/index.html +94 -0
  42. data/doc/js/darkfish.js +155 -0
  43. data/doc/js/jquery.js +18 -0
  44. data/doc/js/navigation.js +142 -0
  45. data/doc/js/search.js +94 -0
  46. data/doc/js/search_index.js +1 -0
  47. data/doc/js/searcher.js +228 -0
  48. data/doc/rdoc.css +595 -0
  49. data/doc/table_of_contents.html +162 -0
  50. data/test/gene.gff +4 -0
  51. data/test/json_config.json +17 -0
  52. data/test/test_glyph.rb +33 -0
  53. data/test/test_mini_feature.rb +37 -0
  54. data/test/test_page.rb +127 -0
  55. data/test/test_primitive.rb +45 -0
  56. data/test/test_svgee.rb +73 -0
  57. data/test/test_track.rb +53 -0
  58. data/test/test_transcripts.gff +4 -0
  59. metadata +94 -14
@@ -0,0 +1,53 @@
1
+ $: << File.expand_path(File.dirname(__FILE__) + '/../lib')
2
+ $: << File.expand_path('.')
3
+ require 'rubygems'
4
+ require 'helper'
5
+ require 'bio-svgenes'
6
+ require 'pp'
7
+
8
+
9
+ class TestTrack < Test::Unit::TestCase
10
+ def setup
11
+
12
+ @track = Bio::Graphics::Track.new(:glyph => :generic,
13
+ :name => 'generic_features',
14
+ :label => true, :feature_height => 12)
15
+ @feature1 = Bio::Graphics::MiniFeature.new(:start => 100, :end => 200, :strand => '+', :id => "MyFeature1")
16
+ @feature2 = Bio::Graphics::MiniFeature.new(:start => 190, :end => 250, :strand => '+', :id => "MyFeature2")
17
+ @feature3 = Bio::Graphics::MiniFeature.new(:start => 300, :end => 350, :strand => '+', :id => "MyFeature3")
18
+
19
+ end
20
+
21
+
22
+ def test_track_class
23
+ assert_equal(Bio::Graphics::Track, @track.class)
24
+
25
+ assert_equal(:generic, @track.glyph)
26
+ assert_equal('generic_features', @track.name)
27
+ assert_equal(true, @track.label)
28
+ assert_equal(nil, @track.track_height)
29
+
30
+ end
31
+
32
+ def test_overlaps
33
+ assert(@track.overlaps(@feature1, @feature2))
34
+ assert_equal(false, @track.overlaps(@feature2, @feature3))
35
+ end
36
+
37
+ def test_get_rows_and_add
38
+ @track.add(@feature1)
39
+ assert_not_equal(2, @track.features.length)
40
+ assert_equal(1, @track.features.length)
41
+ @track.add(@feature2)
42
+ assert_equal(2, @track.features.length)
43
+ @track.add(@feature3)
44
+ assert_equal(3, @track.features.length)
45
+
46
+ #hasn't been called yet, so should be nil
47
+ assert_nil(@track.number_rows)
48
+ #call method - @feature1 and @feature2 overlap, but @feature3 doesn't so there should be two rows
49
+ @track.get_rows
50
+ assert_equal(2, @track.number_rows)
51
+
52
+ end
53
+ end
@@ -0,0 +1,4 @@
1
+ ##gff-version 3
2
+ ##sequence-region ctg123 1 1497228
3
+ ctg123 . mRNA 900 9200 . + . ID=mRNA00001;Name=EDEN.1
4
+ ctg123 . utr 900 1000 . + . ID=utr00001;Parent=mRNA00001
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.3
4
+ version: 0.3.0
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: 2013-01-30 00:00:00.000000000 Z
12
+ date: 2013-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
16
- requirement: &70232196114400 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70232196114400
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: bundler
27
- requirement: &70232196113480 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: 1.0.0
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70232196113480
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.0.0
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: jeweler
38
- requirement: &70232196112820 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: 1.6.4
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70232196112820
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.6.4
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rcov
49
- requirement: &70232196111740 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70232196111740
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: bio
60
- requirement: &70232196111080 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,7 +85,12 @@ dependencies:
65
85
  version: 1.4.2
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *70232196111080
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 1.4.2
69
94
  description: This bio-gem facilitates the creation of pretty, publication quality
70
95
  SVG images from feature data.
71
96
  email: maclean.daniel@gmail.com
@@ -84,6 +109,52 @@ files:
84
109
  - Rakefile
85
110
  - VERSION
86
111
  - bio-svgenes.gemspec
112
+ - doc/.DS_Store
113
+ - doc/Bio.html
114
+ - doc/Bio/.DS_Store
115
+ - doc/Bio/Graphics.html
116
+ - doc/Bio/Graphics/Glyph.html
117
+ - doc/Bio/Graphics/MiniFeature.html
118
+ - doc/Bio/Graphics/Page.html
119
+ - doc/Bio/Graphics/Primitive.html
120
+ - doc/Bio/Graphics/SVGEE.html
121
+ - doc/Bio/Graphics/Track.html
122
+ - doc/LICENSE_txt.html
123
+ - doc/created.rid
124
+ - doc/images/add.png
125
+ - doc/images/arrow_up.png
126
+ - doc/images/brick.png
127
+ - doc/images/brick_link.png
128
+ - doc/images/bug.png
129
+ - doc/images/bullet_black.png
130
+ - doc/images/bullet_toggle_minus.png
131
+ - doc/images/bullet_toggle_plus.png
132
+ - doc/images/date.png
133
+ - doc/images/delete.png
134
+ - doc/images/find.png
135
+ - doc/images/loadingAnimation.gif
136
+ - doc/images/macFFBgHack.png
137
+ - doc/images/package.png
138
+ - doc/images/page_green.png
139
+ - doc/images/page_white_text.png
140
+ - doc/images/page_white_width.png
141
+ - doc/images/plugin.png
142
+ - doc/images/ruby.png
143
+ - doc/images/tag_blue.png
144
+ - doc/images/tag_green.png
145
+ - doc/images/transparent.png
146
+ - doc/images/wrench.png
147
+ - doc/images/wrench_orange.png
148
+ - doc/images/zoom.png
149
+ - doc/index.html
150
+ - doc/js/darkfish.js
151
+ - doc/js/jquery.js
152
+ - doc/js/navigation.js
153
+ - doc/js/search.js
154
+ - doc/js/search_index.js
155
+ - doc/js/searcher.js
156
+ - doc/rdoc.css
157
+ - doc/table_of_contents.html
87
158
  - examples/.DS_Store
88
159
  - examples/annotate_snps.rb
89
160
  - examples/data.txt
@@ -107,8 +178,17 @@ files:
107
178
  - lib/bio/graphics/primitive.rb
108
179
  - lib/bio/graphics/svgee.rb
109
180
  - lib/bio/graphics/track.rb
181
+ - test/gene.gff
110
182
  - test/helper.rb
183
+ - test/json_config.json
111
184
  - test/test_bio-svgenes.rb
185
+ - test/test_glyph.rb
186
+ - test/test_mini_feature.rb
187
+ - test/test_page.rb
188
+ - test/test_primitive.rb
189
+ - test/test_svgee.rb
190
+ - test/test_track.rb
191
+ - test/test_transcripts.gff
112
192
  homepage: http://github.com/danmaclean/bioruby-svgenes
113
193
  licenses:
114
194
  - MIT
@@ -124,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
204
  version: '0'
125
205
  segments:
126
206
  - 0
127
- hash: 1694400785006489552
207
+ hash: 424523065025967701
128
208
  required_rubygems_version: !ruby/object:Gem::Requirement
129
209
  none: false
130
210
  requirements:
@@ -133,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
213
  version: '0'
134
214
  requirements: []
135
215
  rubyforge_project:
136
- rubygems_version: 1.8.10
216
+ rubygems_version: 1.8.25
137
217
  signing_key:
138
218
  specification_version: 3
139
219
  summary: Create pretty SVG-format images of features, gene models and data tracks