bio-graphics 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/doc/classes/Bio.html +135 -0
  2. data/doc/classes/Bio/Graphics.html +247 -0
  3. data/doc/classes/Bio/Graphics/Panel.html +344 -0
  4. data/doc/classes/Bio/Graphics/Panel.src/M000005.html +29 -0
  5. data/doc/classes/Bio/Graphics/Panel.src/M000006.html +19 -0
  6. data/doc/classes/Bio/Graphics/Panel.src/M000007.html +67 -0
  7. data/doc/classes/Bio/Graphics/Panel/Ruler.html +238 -0
  8. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000008.html +20 -0
  9. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000009.html +28 -0
  10. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000010.html +54 -0
  11. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000013.html +20 -0
  12. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000014.html +28 -0
  13. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000015.html +59 -0
  14. data/doc/classes/Bio/Graphics/Panel/Track.html +342 -0
  15. data/doc/classes/Bio/Graphics/Panel/Track.src/M000008.html +23 -0
  16. data/doc/classes/Bio/Graphics/Panel/Track.src/M000009.html +42 -0
  17. data/doc/classes/Bio/Graphics/Panel/Track.src/M000010.html +285 -0
  18. data/doc/classes/Bio/Graphics/Panel/Track.src/M000011.html +23 -0
  19. data/doc/classes/Bio/Graphics/Panel/Track.src/M000012.html +43 -0
  20. data/doc/classes/Bio/Graphics/Panel/Track.src/M000013.html +259 -0
  21. data/doc/classes/Bio/Graphics/Panel/Track/Feature.html +292 -0
  22. data/doc/classes/Bio/Graphics/Panel/Track/Feature.src/M000011.html +65 -0
  23. data/doc/classes/Bio/Graphics/Panel/Track/Feature.src/M000014.html +65 -0
  24. data/doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.html +155 -0
  25. data/doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.src/M000012.html +18 -0
  26. data/doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.src/M000015.html +18 -0
  27. data/doc/classes/ImageMap.html +185 -0
  28. data/doc/classes/ImageMap.src/M000001.html +18 -0
  29. data/doc/classes/ImageMap.src/M000002.html +24 -0
  30. data/doc/classes/ImageMap/ImageMapElement.html +187 -0
  31. data/doc/classes/ImageMap/ImageMapElement.src/M000003.html +19 -0
  32. data/doc/classes/ImageMap/ImageMapElement.src/M000004.html +20 -0
  33. data/doc/created.rid +1 -0
  34. data/doc/files/README_DEV.html +432 -0
  35. data/doc/files/TUTORIAL.html +358 -0
  36. data/doc/files/lib/bio-graphics_rb.html +121 -0
  37. data/doc/files/lib/bio/graphics/feature_rb.html +113 -0
  38. data/doc/files/lib/bio/graphics/image_map_rb.html +113 -0
  39. data/doc/files/lib/bio/graphics/panel_rb.html +113 -0
  40. data/doc/files/lib/bio/graphics/ruler_rb.html +113 -0
  41. data/doc/files/lib/bio/graphics/track_rb.html +113 -0
  42. data/doc/fr_class_index.html +35 -0
  43. data/doc/fr_file_index.html +34 -0
  44. data/doc/fr_method_index.html +41 -0
  45. data/doc/images/example.png +0 -0
  46. data/doc/images/glyph_showcase.png +0 -0
  47. data/doc/images/terms.png +0 -0
  48. data/doc/images/terms.svg +166 -0
  49. data/doc/index.html +24 -0
  50. data/images/example.png +0 -0
  51. data/images/glyph_showcase.png +0 -0
  52. data/images/terms.png +0 -0
  53. data/images/terms.svg +166 -0
  54. data/lib/bio-graphics.rb +18 -0
  55. data/lib/bio/graphics/feature.rb +136 -0
  56. data/lib/bio/graphics/image_map.rb +37 -0
  57. data/lib/bio/graphics/panel.rb +205 -0
  58. data/lib/bio/graphics/ruler.rb +96 -0
  59. data/lib/bio/graphics/track.rb +387 -0
  60. data/samples/arkdb_features.rb +37 -0
  61. data/samples/data.txt +32 -0
  62. data/samples/glyph_showcase.rb +29 -0
  63. metadata +137 -0
@@ -0,0 +1,29 @@
1
+ require '../lib/bio-graphics'
2
+
3
+ my_panel = Bio::Graphics::Panel.new(500, 1000, true)
4
+
5
+ generic_track = my_panel.add_track('generic')
6
+ directed_track = my_panel.add_track('directed',[0,1,0],'directed_generic')
7
+ triangle_track = my_panel.add_track('triangle',[1,0,0],'triangle')
8
+ spliced_track = my_panel.add_track('spliced',[1,0,0],'spliced')
9
+ directed_spliced_track = my_panel.add_track('directed_spliced',[1,0,1],'directed_spliced')
10
+
11
+ generic_track.add_feature('clone1','250..375', 'http://www.newsforge.com')
12
+ generic_track.add_feature('clone2','54..124', 'http://www.thearkdb.org')
13
+ generic_track.add_feature('clone3','100..449', 'http://www.google.com')
14
+
15
+ directed_track.add_feature('marker1','50..60', 'http://www.google.com')
16
+ directed_track.add_feature('marker2','complement(80..120)', 'http://www.sourceforge.net')
17
+
18
+ triangle_track.add_feature('snp1','56')
19
+ triangle_track.add_feature('snp2','103','http://digg.com')
20
+
21
+ spliced_track.add_feature('gene1','join(34..52,109..183)','http://news.bbc.co.uk')
22
+ spliced_track.add_feature('gene2','complement(join(170..231,264..299,350..360,409..445))')
23
+ spliced_track.add_feature('gene3','join(134..152,209..283)')
24
+
25
+ directed_spliced_track.add_feature('gene4','join(34..52,109..183)', 'http://www.vrtnieuws.net')
26
+ directed_spliced_track.add_feature('gene5','complement(join(170..231,264..299,350..360,409..445))', 'http://bioinformatics.roslin.ac.uk')
27
+ directed_spliced_track.add_feature('gene6','join(134..152,209..283)')
28
+
29
+ my_panel.draw('glyph_showcase.png')
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.0
3
+ specification_version: 1
4
+ name: bio-graphics
5
+ version: !ruby/object:Gem::Version
6
+ version: "1.0"
7
+ date: 2007-10-01 00:00:00 +01:00
8
+ summary: Library for visualizing genomic regions
9
+ require_paths:
10
+ - lib
11
+ email: jan.aerts@bbsrc.ac.uk
12
+ homepage: http://bio-graphics.rubyforge.org/
13
+ rubyforge_project:
14
+ description:
15
+ autorequire: bio-graphics
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Jan Aerts
31
+ files:
32
+ - doc/images
33
+ - doc/fr_file_index.html
34
+ - doc/fr_class_index.html
35
+ - doc/index.html
36
+ - doc/fr_method_index.html
37
+ - doc/classes
38
+ - doc/created.rid
39
+ - doc/files
40
+ - doc/images/terms.svg
41
+ - doc/images/terms.png
42
+ - doc/images/glyph_showcase.png
43
+ - doc/images/example.png
44
+ - doc/classes/Bio
45
+ - doc/classes/ImageMap.html
46
+ - doc/classes/ImageMap
47
+ - doc/classes/ImageMap.src
48
+ - doc/classes/Bio.html
49
+ - doc/classes/Bio/Graphics.html
50
+ - doc/classes/Bio/Graphics
51
+ - doc/classes/Bio/Graphics/Panel
52
+ - doc/classes/Bio/Graphics/Panel.src
53
+ - doc/classes/Bio/Graphics/Panel.html
54
+ - doc/classes/Bio/Graphics/Panel/Track
55
+ - doc/classes/Bio/Graphics/Panel/Ruler.html
56
+ - doc/classes/Bio/Graphics/Panel/Track.html
57
+ - doc/classes/Bio/Graphics/Panel/Track.src
58
+ - doc/classes/Bio/Graphics/Panel/Ruler.src
59
+ - doc/classes/Bio/Graphics/Panel/Track/Feature.html
60
+ - doc/classes/Bio/Graphics/Panel/Track/Feature
61
+ - doc/classes/Bio/Graphics/Panel/Track/Feature.src
62
+ - doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.src
63
+ - doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.html
64
+ - doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.src/M000015.html
65
+ - doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.src/M000012.html
66
+ - doc/classes/Bio/Graphics/Panel/Track/Feature.src/M000011.html
67
+ - doc/classes/Bio/Graphics/Panel/Track/Feature.src/M000014.html
68
+ - doc/classes/Bio/Graphics/Panel/Track.src/M000013.html
69
+ - doc/classes/Bio/Graphics/Panel/Track.src/M000012.html
70
+ - doc/classes/Bio/Graphics/Panel/Track.src/M000009.html
71
+ - doc/classes/Bio/Graphics/Panel/Track.src/M000011.html
72
+ - doc/classes/Bio/Graphics/Panel/Track.src/M000010.html
73
+ - doc/classes/Bio/Graphics/Panel/Track.src/M000008.html
74
+ - doc/classes/Bio/Graphics/Panel/Ruler.src/M000015.html
75
+ - doc/classes/Bio/Graphics/Panel/Ruler.src/M000013.html
76
+ - doc/classes/Bio/Graphics/Panel/Ruler.src/M000009.html
77
+ - doc/classes/Bio/Graphics/Panel/Ruler.src/M000010.html
78
+ - doc/classes/Bio/Graphics/Panel/Ruler.src/M000008.html
79
+ - doc/classes/Bio/Graphics/Panel/Ruler.src/M000014.html
80
+ - doc/classes/Bio/Graphics/Panel.src/M000007.html
81
+ - doc/classes/Bio/Graphics/Panel.src/M000005.html
82
+ - doc/classes/Bio/Graphics/Panel.src/M000006.html
83
+ - doc/classes/ImageMap/ImageMapElement.src
84
+ - doc/classes/ImageMap/ImageMapElement.html
85
+ - doc/classes/ImageMap/ImageMapElement.src/M000003.html
86
+ - doc/classes/ImageMap/ImageMapElement.src/M000004.html
87
+ - doc/classes/ImageMap.src/M000001.html
88
+ - doc/classes/ImageMap.src/M000002.html
89
+ - doc/files/lib
90
+ - doc/files/README_DEV.html
91
+ - doc/files/TUTORIAL.html
92
+ - doc/files/lib/bio-graphics_rb.html
93
+ - doc/files/lib/bio
94
+ - doc/files/lib/bio/graphics
95
+ - doc/files/lib/bio/graphics/panel_rb.html
96
+ - doc/files/lib/bio/graphics/track_rb.html
97
+ - doc/files/lib/bio/graphics/image_map_rb.html
98
+ - doc/files/lib/bio/graphics/feature_rb.html
99
+ - doc/files/lib/bio/graphics/ruler_rb.html
100
+ - lib/bio
101
+ - lib/bio-graphics.rb
102
+ - lib/bio/graphics
103
+ - lib/bio/graphics/panel.rb
104
+ - lib/bio/graphics/ruler.rb
105
+ - lib/bio/graphics/feature.rb
106
+ - lib/bio/graphics/track.rb
107
+ - lib/bio/graphics/image_map.rb
108
+ - samples/arkdb_features.rb
109
+ - samples/data.txt
110
+ - samples/glyph_showcase.rb
111
+ - test/unit
112
+ - images/terms.svg
113
+ - images/terms.png
114
+ - images/glyph_showcase.png
115
+ - images/example.png
116
+ test_files: []
117
+
118
+ rdoc_options: []
119
+
120
+ extra_rdoc_files: []
121
+
122
+ executables: []
123
+
124
+ extensions: []
125
+
126
+ requirements: []
127
+
128
+ dependencies:
129
+ - !ruby/object:Gem::Dependency
130
+ name: bio
131
+ version_requirement:
132
+ version_requirements: !ruby/object:Gem::Version::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: "1"
137
+ version: