bio-graphics 1.2 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (331) hide show
  1. data/doc/classes/Bio.html +4 -26
  2. data/doc/classes/Bio/Feature.html +350 -0
  3. data/doc/classes/Bio/Feature.src/M000010.html +21 -0
  4. data/doc/classes/Bio/Feature.src/M000011.html +20 -0
  5. data/doc/classes/Bio/Feature.src/M000012.html +19 -0
  6. data/doc/classes/Bio/Feature.src/M000014.html +21 -0
  7. data/doc/classes/Bio/Feature.src/M000016.html +21 -0
  8. data/doc/classes/Bio/Feature.src/M000034.html +21 -0
  9. data/doc/classes/Bio/Feature.src/M000035.html +20 -0
  10. data/doc/classes/Bio/Feature.src/M000036.html +19 -0
  11. data/doc/classes/Bio/Feature.src/M000038.html +21 -0
  12. data/doc/classes/Bio/Feature.src/M000040.html +21 -0
  13. data/doc/classes/Bio/Feature.src/M000042.html +21 -0
  14. data/doc/classes/Bio/Feature.src/M000043.html +20 -0
  15. data/doc/classes/Bio/Feature.src/M000044.html +21 -0
  16. data/doc/classes/Bio/Feature.src/M000045.html +20 -0
  17. data/doc/classes/Bio/Feature.src/M000046.html +19 -0
  18. data/doc/classes/Bio/Feature.src/M000048.html +21 -0
  19. data/doc/classes/Bio/Feature.src/M000050.html +21 -0
  20. data/doc/classes/Bio/Feature.src/M000074.html +21 -0
  21. data/doc/classes/Bio/Feature.src/M000075.html +20 -0
  22. data/doc/classes/Bio/Feature.src/M000076.html +19 -0
  23. data/doc/classes/Bio/Feature.src/M000078.html +21 -0
  24. data/doc/classes/Bio/Feature.src/M000080.html +21 -0
  25. data/doc/classes/Bio/Feature/Qualifier.html +189 -0
  26. data/doc/classes/Bio/Feature/Qualifier.src/M000017.html +18 -0
  27. data/doc/classes/Bio/Feature/Qualifier.src/M000041.html +18 -0
  28. data/doc/classes/Bio/Feature/Qualifier.src/M000049.html +18 -0
  29. data/doc/classes/Bio/Feature/Qualifier.src/M000051.html +18 -0
  30. data/doc/classes/Bio/Feature/Qualifier.src/M000081.html +18 -0
  31. data/doc/classes/Bio/Features.html +329 -0
  32. data/doc/classes/Bio/Features.src/M000004.html +18 -0
  33. data/doc/classes/Bio/Features.src/M000005.html +19 -0
  34. data/doc/classes/Bio/Features.src/M000006.html +21 -0
  35. data/doc/classes/Bio/Features.src/M000007.html +18 -0
  36. data/doc/classes/Bio/Features.src/M000008.html +18 -0
  37. data/doc/classes/Bio/Features.src/M000009.html +18 -0
  38. data/doc/classes/Bio/Features.src/M000028.html +18 -0
  39. data/doc/classes/Bio/Features.src/M000029.html +19 -0
  40. data/doc/classes/Bio/Features.src/M000030.html +21 -0
  41. data/doc/classes/Bio/Features.src/M000031.html +18 -0
  42. data/doc/classes/Bio/Features.src/M000032.html +18 -0
  43. data/doc/classes/Bio/Features.src/M000033.html +18 -0
  44. data/doc/classes/Bio/Features.src/M000036.html +18 -0
  45. data/doc/classes/Bio/Features.src/M000037.html +19 -0
  46. data/doc/classes/Bio/Features.src/M000038.html +18 -0
  47. data/doc/classes/Bio/Features.src/M000039.html +19 -0
  48. data/doc/classes/Bio/Features.src/M000040.html +21 -0
  49. data/doc/classes/Bio/Features.src/M000041.html +18 -0
  50. data/doc/classes/Bio/Features.src/M000042.html +18 -0
  51. data/doc/classes/Bio/Features.src/M000043.html +18 -0
  52. data/doc/classes/Bio/Features.src/M000068.html +18 -0
  53. data/doc/classes/Bio/Features.src/M000069.html +19 -0
  54. data/doc/classes/Bio/Features.src/M000070.html +21 -0
  55. data/doc/classes/Bio/Features.src/M000071.html +18 -0
  56. data/doc/classes/Bio/Features.src/M000072.html +18 -0
  57. data/doc/classes/Bio/Features.src/M000073.html +18 -0
  58. data/doc/classes/Bio/Graphics.html +28 -42
  59. data/doc/classes/Bio/Graphics/{Panel/Track/Feature.html → Feature.html} +98 -125
  60. data/doc/classes/Bio/Graphics/Feature.src/M000020.html +51 -0
  61. data/doc/classes/Bio/Graphics/Feature.src/M000021.html +65 -0
  62. data/doc/classes/Bio/Graphics/Feature.src/M000022.html +55 -0
  63. data/doc/classes/Bio/Graphics/Feature.src/M000023.html +66 -0
  64. data/doc/classes/Bio/Graphics/Feature.src/M000024.html +51 -0
  65. data/doc/classes/Bio/Graphics/Feature.src/M000025.html +65 -0
  66. data/doc/classes/Bio/Graphics/Feature.src/M000026.html +55 -0
  67. data/doc/classes/Bio/Graphics/Feature.src/M000054.html +51 -0
  68. data/doc/classes/Bio/Graphics/Feature.src/M000055.html +65 -0
  69. data/doc/classes/Bio/Graphics/Feature.src/M000056.html +55 -0
  70. data/doc/classes/Bio/Graphics/Feature/SubFeature.html +348 -0
  71. data/doc/classes/Bio/Graphics/Feature/SubFeature.src/M000025.html +68 -0
  72. data/doc/classes/Bio/Graphics/Feature/SubFeature.src/M000026.html +67 -0
  73. data/doc/classes/Bio/Graphics/Glyph.html +178 -0
  74. data/doc/classes/Bio/Graphics/Glyph/Box.html +139 -0
  75. data/doc/classes/Bio/Graphics/Glyph/Box.src/M000004.html +24 -0
  76. data/doc/classes/Bio/Graphics/Glyph/Box.src/M000032.html +24 -0
  77. data/doc/classes/Bio/Graphics/Glyph/Common.html +187 -0
  78. data/doc/classes/Bio/Graphics/Glyph/Common.src/M000004.html +18 -0
  79. data/doc/classes/Bio/Graphics/Glyph/Common.src/M000005.html +18 -0
  80. data/doc/classes/Bio/Graphics/Glyph/Common.src/M000006.html +24 -0
  81. data/doc/classes/Bio/Graphics/Glyph/Common.src/M000007.html +24 -0
  82. data/doc/classes/Bio/Graphics/Glyph/Common.src/M000033.html +18 -0
  83. data/doc/classes/Bio/Graphics/Glyph/Common.src/M000034.html +24 -0
  84. data/doc/classes/Bio/Graphics/Glyph/Common.src/M000035.html +24 -0
  85. data/doc/classes/Bio/Graphics/Glyph/CustomTestGlyph.html +139 -0
  86. data/doc/classes/Bio/Graphics/Glyph/CustomTestGlyph.src/M000037.html +22 -0
  87. data/doc/classes/Bio/Graphics/Glyph/CustomTestGlyphInFile.html +139 -0
  88. data/doc/classes/Bio/Graphics/Glyph/CustomTestGlyphInFile.src/M000038.html +22 -0
  89. data/doc/classes/Bio/Graphics/Glyph/DirectedBox.html +139 -0
  90. data/doc/classes/Bio/Graphics/Glyph/DirectedBox.src/M000009.html +31 -0
  91. data/doc/classes/Bio/Graphics/Glyph/DirectedBox.src/M000039.html +31 -0
  92. data/doc/classes/Bio/Graphics/Glyph/DirectedGeneric.html +139 -0
  93. data/doc/classes/Bio/Graphics/Glyph/DirectedGeneric.src/M000011.html +26 -0
  94. data/doc/classes/Bio/Graphics/Glyph/DirectedGeneric.src/M000013.html +26 -0
  95. data/doc/classes/Bio/Graphics/Glyph/DirectedGeneric.src/M000043.html +26 -0
  96. data/doc/classes/Bio/Graphics/Glyph/DirectedSpliced.html +139 -0
  97. data/doc/classes/Bio/Graphics/Glyph/DirectedSpliced.src/M000008.html +40 -0
  98. data/doc/classes/Bio/Graphics/Glyph/DirectedSpliced.src/M000010.html +40 -0
  99. data/doc/classes/Bio/Graphics/Glyph/DirectedSpliced.src/M000040.html +40 -0
  100. data/doc/classes/Bio/Graphics/{Panel/Track/Feature/PixelRange.html → Glyph/Dot.html} +16 -19
  101. data/doc/classes/Bio/Graphics/Glyph/Dot.src/M000013.html +22 -0
  102. data/doc/classes/Bio/Graphics/Glyph/Dot.src/M000015.html +22 -0
  103. data/doc/classes/Bio/Graphics/Glyph/Dot.src/M000045.html +22 -0
  104. data/doc/classes/Bio/Graphics/Glyph/Generic.html +139 -0
  105. data/doc/classes/Bio/Graphics/Glyph/Generic.src/M000009.html +18 -0
  106. data/doc/classes/Bio/Graphics/Glyph/Generic.src/M000011.html +18 -0
  107. data/doc/classes/Bio/Graphics/Glyph/Generic.src/M000041.html +18 -0
  108. data/doc/classes/Bio/Graphics/Glyph/Line.html +139 -0
  109. data/doc/classes/Bio/Graphics/Glyph/Line.src/M000012.html +20 -0
  110. data/doc/classes/Bio/Graphics/Glyph/Line.src/M000014.html +20 -0
  111. data/doc/classes/Bio/Graphics/Glyph/Line.src/M000044.html +20 -0
  112. data/doc/classes/Bio/Graphics/Glyph/LineWithHandles.html +139 -0
  113. data/doc/classes/Bio/Graphics/Glyph/LineWithHandles.src/M000014.html +28 -0
  114. data/doc/classes/Bio/Graphics/Glyph/LineWithHandles.src/M000016.html +28 -0
  115. data/doc/classes/Bio/Graphics/Glyph/LineWithHandles.src/M000046.html +28 -0
  116. data/doc/classes/Bio/Graphics/Glyph/Spliced.html +139 -0
  117. data/doc/classes/Bio/Graphics/Glyph/Spliced.src/M000010.html +19 -0
  118. data/doc/classes/Bio/Graphics/Glyph/Spliced.src/M000012.html +19 -0
  119. data/doc/classes/Bio/Graphics/Glyph/Spliced.src/M000042.html +19 -0
  120. data/doc/classes/Bio/Graphics/Glyph/Transcript.html +113 -0
  121. data/doc/classes/Bio/Graphics/Glyph/Triangle.html +139 -0
  122. data/doc/classes/Bio/Graphics/Glyph/Triangle.src/M000007.html +21 -0
  123. data/doc/classes/Bio/Graphics/Glyph/Triangle.src/M000008.html +21 -0
  124. data/doc/classes/Bio/Graphics/Glyph/Triangle.src/M000036.html +21 -0
  125. data/doc/classes/{ImageMap.html → Bio/Graphics/ImageMap.html} +50 -16
  126. data/doc/classes/{ImageMap.src/M000001.html → Bio/Graphics/ImageMap.src/M000030.html} +3 -3
  127. data/doc/classes/Bio/Graphics/ImageMap.src/M000031.html +18 -0
  128. data/doc/classes/Bio/Graphics/ImageMap.src/M000032.html +18 -0
  129. data/doc/classes/Bio/Graphics/ImageMap.src/M000033.html +18 -0
  130. data/doc/classes/{ImageMap.src/M000002.html → Bio/Graphics/ImageMap.src/M000034.html} +7 -4
  131. data/doc/classes/Bio/Graphics/ImageMap.src/M000035.html +24 -0
  132. data/doc/classes/Bio/Graphics/ImageMap.src/M000062.html +18 -0
  133. data/doc/classes/Bio/Graphics/ImageMap.src/M000063.html +18 -0
  134. data/doc/classes/Bio/Graphics/ImageMap.src/M000064.html +27 -0
  135. data/doc/classes/Bio/Graphics/ImageMap.src/M000065.html +24 -0
  136. data/doc/classes/{ImageMap/ImageMapElement.html → Bio/Graphics/ImageMap/Element.html} +14 -14
  137. data/doc/classes/{ImageMap/ImageMapElement.src/M000003.html → Bio/Graphics/ImageMap/Element.src/M000034.html} +3 -3
  138. data/doc/classes/{ImageMap/ImageMapElement.src/M000004.html → Bio/Graphics/ImageMap/Element.src/M000035.html} +6 -4
  139. data/doc/classes/Bio/Graphics/ImageMap/Element.src/M000036.html +19 -0
  140. data/doc/classes/Bio/Graphics/ImageMap/Element.src/M000037.html +22 -0
  141. data/doc/classes/Bio/Graphics/ImageMap/Element.src/M000066.html +19 -0
  142. data/doc/classes/Bio/Graphics/ImageMap/Element.src/M000067.html +22 -0
  143. data/doc/classes/Bio/Graphics/Panel.html +70 -69
  144. data/doc/classes/Bio/Graphics/Panel.src/M000025.html +52 -0
  145. data/doc/classes/Bio/Graphics/Panel.src/M000026.html +20 -0
  146. data/doc/classes/Bio/Graphics/Panel.src/M000027.html +98 -0
  147. data/doc/classes/Bio/Graphics/Panel.src/M000028.html +20 -0
  148. data/doc/classes/Bio/Graphics/Panel.src/M000029.html +52 -0
  149. data/doc/classes/Bio/Graphics/Panel.src/M000030.html +20 -0
  150. data/doc/classes/Bio/Graphics/Panel.src/M000031.html +98 -0
  151. data/doc/classes/Bio/Graphics/Panel.src/M000059.html +52 -0
  152. data/doc/classes/Bio/Graphics/Panel.src/M000060.html +20 -0
  153. data/doc/classes/Bio/Graphics/Panel.src/M000061.html +98 -0
  154. data/doc/classes/Bio/Graphics/{Panel/Ruler.html → Ruler.html} +50 -21
  155. data/doc/classes/Bio/Graphics/Ruler.src/M000015.html +30 -0
  156. data/doc/classes/Bio/Graphics/Ruler.src/M000016.html +20 -0
  157. data/doc/classes/Bio/Graphics/Ruler.src/M000017.html +30 -0
  158. data/doc/classes/Bio/Graphics/Ruler.src/M000018.html +20 -0
  159. data/doc/classes/Bio/Graphics/Ruler.src/M000019.html +26 -0
  160. data/doc/classes/Bio/Graphics/Ruler.src/M000020.html +45 -0
  161. data/doc/classes/Bio/Graphics/Ruler.src/M000047.html +30 -0
  162. data/doc/classes/Bio/Graphics/Ruler.src/M000048.html +20 -0
  163. data/doc/classes/Bio/Graphics/Ruler.src/M000049.html +26 -0
  164. data/doc/classes/Bio/Graphics/Ruler.src/M000050.html +45 -0
  165. data/doc/classes/Bio/Graphics/SubFeature.html +348 -0
  166. data/doc/classes/Bio/Graphics/SubFeature.src/M000001.html +73 -0
  167. data/doc/classes/Bio/Graphics/SubFeature.src/M000002.html +69 -0
  168. data/doc/classes/Bio/Graphics/SubFeature.src/M000023.html +73 -0
  169. data/doc/classes/Bio/Graphics/SubFeature.src/M000024.html +69 -0
  170. data/doc/classes/Bio/Graphics/SubFeature.src/M000027.html +73 -0
  171. data/doc/classes/Bio/Graphics/SubFeature.src/M000028.html +69 -0
  172. data/doc/classes/Bio/Graphics/SubFeature.src/M000057.html +73 -0
  173. data/doc/classes/Bio/Graphics/SubFeature.src/M000058.html +69 -0
  174. data/doc/classes/Bio/Graphics/{Panel/Track.html → Track.html} +67 -69
  175. data/doc/classes/Bio/Graphics/Track.src/M000017.html +39 -0
  176. data/doc/classes/Bio/Graphics/Track.src/M000018.html +37 -0
  177. data/doc/classes/Bio/Graphics/Track.src/M000019.html +45 -0
  178. data/doc/classes/Bio/Graphics/Track.src/M000020.html +41 -0
  179. data/doc/classes/Bio/Graphics/Track.src/M000021.html +39 -0
  180. data/doc/classes/Bio/Graphics/Track.src/M000022.html +37 -0
  181. data/doc/classes/Bio/Graphics/Track.src/M000023.html +45 -0
  182. data/doc/classes/Bio/Graphics/Track.src/M000051.html +39 -0
  183. data/doc/classes/Bio/Graphics/Track.src/M000052.html +37 -0
  184. data/doc/classes/Bio/Graphics/Track.src/M000053.html +45 -0
  185. data/doc/classes/Range.html +129 -0
  186. data/doc/classes/String.html +167 -0
  187. data/doc/classes/String.src/M000001.html +18 -0
  188. data/doc/classes/String.src/M000002.html +18 -0
  189. data/doc/classes/String.src/M000003.html +23 -0
  190. data/doc/classes/String.src/M000029.html +18 -0
  191. data/doc/classes/String.src/M000030.html +18 -0
  192. data/doc/classes/String.src/M000031.html +23 -0
  193. data/doc/classes/TestCustomGlyph.html +137 -0
  194. data/doc/classes/TestCustomGlyph.src/M000025.html +25 -0
  195. data/doc/classes/TestCustomGlyphInFile.html +167 -0
  196. data/doc/classes/TestCustomGlyphInFile.src/M000026.html +19 -0
  197. data/doc/classes/TestCustomGlyphInFile.src/M000027.html +25 -0
  198. data/doc/classes/TestCustomGlyphInFile.src/M000028.html +18 -0
  199. data/doc/classes/TestExtensions.html +152 -0
  200. data/doc/classes/TestExtensions.src/M000015.html +22 -0
  201. data/doc/classes/TestExtensions.src/M000016.html +25 -0
  202. data/doc/classes/TestFeature.html +152 -0
  203. data/doc/classes/TestFeature.src/M000017.html +19 -0
  204. data/doc/classes/TestFeature.src/M000018.html +21 -0
  205. data/doc/classes/TestImageMap.html +182 -0
  206. data/doc/classes/TestImageMap.src/M000019.html +22 -0
  207. data/doc/classes/TestImageMap.src/M000020.html +56 -0
  208. data/doc/classes/TestImageMap.src/M000021.html +56 -0
  209. data/doc/classes/TestImageMap.src/M000022.html +20 -0
  210. data/doc/classes/TestPanel.html +276 -0
  211. data/doc/classes/TestPanel.src/M000001.html +18 -0
  212. data/doc/classes/TestPanel.src/M000002.html +61 -0
  213. data/doc/classes/TestPanel.src/M000003.html +35 -0
  214. data/doc/classes/TestPanel.src/M000004.html +54 -0
  215. data/doc/classes/TestPanel.src/M000005.html +54 -0
  216. data/doc/classes/TestPanel.src/M000006.html +41 -0
  217. data/doc/classes/TestPanel.src/M000007.html +36 -0
  218. data/doc/classes/TestPanel.src/M000008.html +20 -0
  219. data/doc/classes/TestPanel.src/M000009.html +26 -0
  220. data/doc/classes/TestPanel.src/M000010.html +21 -0
  221. data/doc/classes/TestRuler.html +152 -0
  222. data/doc/classes/TestRuler.src/M000013.html +22 -0
  223. data/doc/classes/TestRuler.src/M000014.html +31 -0
  224. data/doc/classes/TestSubFeature.html +152 -0
  225. data/doc/classes/TestSubFeature.src/M000023.html +21 -0
  226. data/doc/classes/TestSubFeature.src/M000024.html +18 -0
  227. data/doc/classes/TestTrack.html +152 -0
  228. data/doc/classes/TestTrack.src/M000011.html +19 -0
  229. data/doc/classes/TestTrack.src/M000012.html +23 -0
  230. data/doc/created.rid +1 -1
  231. data/doc/files/README_DEV.html +399 -70
  232. data/doc/files/TUTORIAL.html +188 -67
  233. data/doc/files/lib/bio-graphics_rb.html +3 -2
  234. data/doc/files/lib/bio/graphics/feature_rb.html +12 -6
  235. data/doc/files/lib/bio/graphics/glyphs/box_rb.html +113 -0
  236. data/doc/files/lib/bio/graphics/glyphs/common_rb.html +113 -0
  237. data/doc/files/lib/bio/graphics/glyphs/directed_box_rb.html +113 -0
  238. data/doc/files/lib/bio/graphics/glyphs/directed_generic_rb.html +113 -0
  239. data/doc/files/lib/bio/graphics/glyphs/directed_spliced_rb.html +113 -0
  240. data/doc/files/lib/bio/graphics/glyphs/dot_rb.html +113 -0
  241. data/doc/files/lib/bio/graphics/glyphs/generic_rb.html +113 -0
  242. data/doc/files/lib/bio/graphics/glyphs/line_rb.html +113 -0
  243. data/doc/files/lib/bio/graphics/glyphs/line_with_handles_rb.html +113 -0
  244. data/doc/files/lib/bio/graphics/glyphs/spliced_rb.html +113 -0
  245. data/doc/files/lib/bio/graphics/glyphs/transcript_rb.html +113 -0
  246. data/doc/files/lib/bio/graphics/glyphs/triangle_rb.html +113 -0
  247. data/doc/files/lib/bio/graphics/image_map_rb.html +3 -2
  248. data/doc/files/lib/bio/graphics/panel_rb.html +10 -2
  249. data/doc/files/lib/bio/graphics/ruler_rb.html +3 -2
  250. data/doc/files/lib/bio/graphics/subfeature_rb.html +114 -0
  251. data/doc/files/lib/bio/graphics/track_rb.html +3 -2
  252. data/doc/files/lib/feature_rb.html +101 -0
  253. data/doc/files/samples/arkdb_features_rb.html +101 -0
  254. data/doc/files/samples/glyph_showcase_rb.html +108 -0
  255. data/doc/files/samples/protein_domains_rb.html +115 -0
  256. data/doc/files/samples/subfeatures_rb.html +108 -0
  257. data/doc/files/scripts/gff2png_rb.html +154 -0
  258. data/doc/files/test/unit/custom_glyph_in_file_rb.html +101 -0
  259. data/doc/files/test/unit/test_class_extensions_rb.html +108 -0
  260. data/doc/files/test/unit/test_creation_rb.html +108 -0
  261. data/doc/files/test/unit/test_custom_glyph_rb.html +108 -0
  262. data/doc/files/test/unit/test_draw_rb.html +108 -0
  263. data/doc/files/test/unit/test_imagemap_rb.html +108 -0
  264. data/doc/files/test/unit/test_subfeatures_rb.html +108 -0
  265. data/doc/fr_class_index.html +24 -6
  266. data/doc/fr_file_index.html +14 -0
  267. data/doc/fr_method_index.html +51 -19
  268. data/doc/images/glyph_showcase.png +0 -0
  269. data/doc/images/terms.svg +146 -132
  270. data/images/glyph_showcase.png +0 -0
  271. data/lib/bio-graphics.rb +38 -6
  272. data/lib/bio/graphics/feature.rb +212 -440
  273. data/lib/bio/graphics/glyphs/box.rb +21 -0
  274. data/lib/bio/graphics/glyphs/common.rb +149 -0
  275. data/lib/bio/graphics/glyphs/directed_box.rb +28 -0
  276. data/lib/bio/graphics/glyphs/directed_generic.rb +23 -0
  277. data/lib/bio/graphics/glyphs/directed_spliced.rb +39 -0
  278. data/lib/bio/graphics/glyphs/dot.rb +21 -0
  279. data/lib/bio/graphics/glyphs/generic.rb +15 -0
  280. data/lib/bio/graphics/glyphs/line.rb +17 -0
  281. data/lib/bio/graphics/glyphs/line_with_handles.rb +25 -0
  282. data/lib/bio/graphics/glyphs/spliced.rb +16 -0
  283. data/lib/bio/graphics/glyphs/transcript.rb +12 -0
  284. data/lib/bio/graphics/glyphs/triangle.rb +18 -0
  285. data/lib/bio/graphics/image_map.rb +25 -4
  286. data/lib/bio/graphics/panel.rb +266 -209
  287. data/lib/bio/graphics/ruler.rb +95 -96
  288. data/lib/bio/graphics/subfeature.rb +187 -0
  289. data/lib/bio/graphics/track.rb +155 -156
  290. data/lib/feature.rb +204 -0
  291. data/samples/arkdb_features.rb +10 -8
  292. data/samples/glyph_showcase.rb +58 -22
  293. data/samples/protein_domains.rb +19 -0
  294. data/samples/subfeatures.rb +31 -0
  295. data/test/unit/custom_glyph_in_file.rb +12 -0
  296. data/test/unit/data.txt +32 -0
  297. data/test/unit/test_class_extensions.rb +23 -0
  298. data/test/unit/test_creation.rb +43 -13
  299. data/test/unit/test_custom_glyph.rb +50 -0
  300. data/test/unit/test_draw.rb +211 -0
  301. data/test/unit/test_imagemap.rb +134 -0
  302. data/test/unit/test_subfeatures.rb +17 -0
  303. metadata +396 -119
  304. data/doc/classes/Bio/Graphics/Panel.src/M000005.html +0 -29
  305. data/doc/classes/Bio/Graphics/Panel.src/M000006.html +0 -19
  306. data/doc/classes/Bio/Graphics/Panel.src/M000007.html +0 -68
  307. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000008.html +0 -20
  308. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000009.html +0 -28
  309. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000010.html +0 -54
  310. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000013.html +0 -20
  311. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000014.html +0 -20
  312. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000015.html +0 -28
  313. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000016.html +0 -59
  314. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000017.html +0 -20
  315. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000018.html +0 -28
  316. data/doc/classes/Bio/Graphics/Panel/Ruler.src/M000019.html +0 -59
  317. data/doc/classes/Bio/Graphics/Panel/Track.src/M000008.html +0 -26
  318. data/doc/classes/Bio/Graphics/Panel/Track.src/M000009.html +0 -42
  319. data/doc/classes/Bio/Graphics/Panel/Track.src/M000010.html +0 -52
  320. data/doc/classes/Bio/Graphics/Panel/Track.src/M000011.html +0 -23
  321. data/doc/classes/Bio/Graphics/Panel/Track.src/M000012.html +0 -43
  322. data/doc/classes/Bio/Graphics/Panel/Track.src/M000013.html +0 -259
  323. data/doc/classes/Bio/Graphics/Panel/Track/Feature.src/M000011.html +0 -65
  324. data/doc/classes/Bio/Graphics/Panel/Track/Feature.src/M000012.html +0 -39
  325. data/doc/classes/Bio/Graphics/Panel/Track/Feature.src/M000013.html +0 -27
  326. data/doc/classes/Bio/Graphics/Panel/Track/Feature.src/M000014.html +0 -225
  327. data/doc/classes/Bio/Graphics/Panel/Track/Feature.src/M000015.html +0 -48
  328. data/doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.src/M000012.html +0 -18
  329. data/doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.src/M000013.html +0 -18
  330. data/doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.src/M000015.html +0 -18
  331. data/doc/classes/Bio/Graphics/Panel/Track/Feature/PixelRange.src/M000016.html +0 -18
@@ -24,10 +24,24 @@
24
24
  <a href="files/TUTORIAL.html">TUTORIAL</a><br />
25
25
  <a href="files/lib/bio-graphics_rb.html">lib/bio-graphics.rb</a><br />
26
26
  <a href="files/lib/bio/graphics/feature_rb.html">lib/bio/graphics/feature.rb</a><br />
27
+ <a href="files/lib/bio/graphics/glyphs/box_rb.html">lib/bio/graphics/glyphs/box.rb</a><br />
28
+ <a href="files/lib/bio/graphics/glyphs/common_rb.html">lib/bio/graphics/glyphs/common.rb</a><br />
29
+ <a href="files/lib/bio/graphics/glyphs/directed_box_rb.html">lib/bio/graphics/glyphs/directed_box.rb</a><br />
30
+ <a href="files/lib/bio/graphics/glyphs/directed_generic_rb.html">lib/bio/graphics/glyphs/directed_generic.rb</a><br />
31
+ <a href="files/lib/bio/graphics/glyphs/directed_spliced_rb.html">lib/bio/graphics/glyphs/directed_spliced.rb</a><br />
32
+ <a href="files/lib/bio/graphics/glyphs/dot_rb.html">lib/bio/graphics/glyphs/dot.rb</a><br />
33
+ <a href="files/lib/bio/graphics/glyphs/generic_rb.html">lib/bio/graphics/glyphs/generic.rb</a><br />
34
+ <a href="files/lib/bio/graphics/glyphs/line_rb.html">lib/bio/graphics/glyphs/line.rb</a><br />
35
+ <a href="files/lib/bio/graphics/glyphs/line_with_handles_rb.html">lib/bio/graphics/glyphs/line_with_handles.rb</a><br />
36
+ <a href="files/lib/bio/graphics/glyphs/spliced_rb.html">lib/bio/graphics/glyphs/spliced.rb</a><br />
37
+ <a href="files/lib/bio/graphics/glyphs/transcript_rb.html">lib/bio/graphics/glyphs/transcript.rb</a><br />
38
+ <a href="files/lib/bio/graphics/glyphs/triangle_rb.html">lib/bio/graphics/glyphs/triangle.rb</a><br />
27
39
  <a href="files/lib/bio/graphics/image_map_rb.html">lib/bio/graphics/image_map.rb</a><br />
28
40
  <a href="files/lib/bio/graphics/panel_rb.html">lib/bio/graphics/panel.rb</a><br />
29
41
  <a href="files/lib/bio/graphics/ruler_rb.html">lib/bio/graphics/ruler.rb</a><br />
42
+ <a href="files/lib/bio/graphics/subfeature_rb.html">lib/bio/graphics/subfeature.rb</a><br />
30
43
  <a href="files/lib/bio/graphics/track_rb.html">lib/bio/graphics/track.rb</a><br />
44
+ <a href="files/lib/feature_rb.html">lib/feature.rb</a><br />
31
45
  </div>
32
46
  </div>
33
47
  </body>
@@ -20,25 +20,57 @@
20
20
  <div id="index">
21
21
  <h1 class="section-bar">Methods</h1>
22
22
  <div id="index-entries">
23
- <a href="classes/Bio/Graphics/Panel/Track.html#M000009">add_feature (Bio::Graphics::Panel::Track)</a><br />
24
- <a href="classes/Bio/Graphics/Panel.html#M000006">add_track (Bio::Graphics::Panel)</a><br />
25
- <a href="classes/Bio/Graphics/Panel/Track/Feature.html#M000012">arrow (Bio::Graphics::Panel::Track::Feature)</a><br />
26
- <a href="classes/Bio/Graphics/Panel/Ruler.html#M000018">calculate_tick_distance (Bio::Graphics::Panel::Ruler)</a><br />
27
- <a href="classes/Bio/Graphics/Panel/Track/Feature.html#M000013">connector (Bio::Graphics::Panel::Track::Feature)</a><br />
28
- <a href="classes/Bio/Graphics/Panel/Track/Feature.html#M000014">draw (Bio::Graphics::Panel::Track::Feature)</a><br />
29
- <a href="classes/Bio/Graphics/Panel.html#M000007">draw (Bio::Graphics::Panel)</a><br />
30
- <a href="classes/Bio/Graphics/Panel/Ruler.html#M000019">draw (Bio::Graphics::Panel::Ruler)</a><br />
31
- <a href="classes/Bio/Graphics/Panel/Track.html#M000010">draw (Bio::Graphics::Panel::Track)</a><br />
32
- <a href="classes/Bio/Graphics/Panel/Track/Feature.html#M000015">find_row (Bio::Graphics::Panel::Track::Feature)</a><br />
33
- <a href="classes/Bio/Graphics/Panel/Track.html#M000008">new (Bio::Graphics::Panel::Track)</a><br />
34
- <a href="classes/Bio/Graphics/Panel.html#M000005">new (Bio::Graphics::Panel)</a><br />
35
- <a href="classes/ImageMap.html#M000001">new (ImageMap)</a><br />
36
- <a href="classes/ImageMap/ImageMapElement.html#M000003">new (ImageMap::ImageMapElement)</a><br />
37
- <a href="classes/Bio/Graphics/Panel/Track/Feature.html#M000011">new (Bio::Graphics::Panel::Track::Feature)</a><br />
38
- <a href="classes/Bio/Graphics/Panel/Ruler.html#M000017">new (Bio::Graphics::Panel::Ruler)</a><br />
39
- <a href="classes/Bio/Graphics/Panel/Track/Feature/PixelRange.html#M000016">new (Bio::Graphics::Panel::Track::Feature::PixelRange)</a><br />
40
- <a href="classes/ImageMap.html#M000002">to_s (ImageMap)</a><br />
41
- <a href="classes/ImageMap/ImageMapElement.html#M000004">to_s (ImageMap::ImageMapElement)</a><br />
23
+ <a href="classes/Bio/Features.html#M000041">[] (Bio::Features)</a><br />
24
+ <a href="classes/Bio/Graphics/ImageMap.html#M000033">add_element (Bio::Graphics::ImageMap)</a><br />
25
+ <a href="classes/Bio/Graphics/Track.html#M000022">add_feature (Bio::Graphics::Track)</a><br />
26
+ <a href="classes/Bio/Feature.html#M000046">add_qualifier (Bio::Feature)</a><br />
27
+ <a href="classes/Bio/Feature.html#M000045">add_subfeature (Bio::Feature)</a><br />
28
+ <a href="classes/Bio/Graphics/Panel.html#M000030">add_track (Bio::Graphics::Panel)</a><br />
29
+ <a href="classes/Bio/Features.html#M000039">append (Bio::Features)</a><br />
30
+ <a href="classes/Bio/Feature.html#M000047">append_qualifier (Bio::Feature)</a><br />
31
+ <a href="classes/String.html#M000002">camel_case (String)</a><br />
32
+ <a href="classes/Bio/Graphics/Glyph/Dot.html#M000015">draw (Bio::Graphics::Glyph::Dot)</a><br />
33
+ <a href="classes/Bio/Graphics/Glyph/Generic.html#M000011">draw (Bio::Graphics::Glyph::Generic)</a><br />
34
+ <a href="classes/Bio/Graphics/Glyph/Spliced.html#M000012">draw (Bio::Graphics::Glyph::Spliced)</a><br />
35
+ <a href="classes/Bio/Graphics/Glyph/DirectedGeneric.html#M000013">draw (Bio::Graphics::Glyph::DirectedGeneric)</a><br />
36
+ <a href="classes/Bio/Graphics/Glyph/Line.html#M000014">draw (Bio::Graphics::Glyph::Line)</a><br />
37
+ <a href="classes/Bio/Graphics/Glyph/DirectedSpliced.html#M000010">draw (Bio::Graphics::Glyph::DirectedSpliced)</a><br />
38
+ <a href="classes/Bio/Graphics/Glyph/LineWithHandles.html#M000016">draw (Bio::Graphics::Glyph::LineWithHandles)</a><br />
39
+ <a href="classes/Bio/Graphics/Glyph/DirectedBox.html#M000009">draw (Bio::Graphics::Glyph::DirectedBox)</a><br />
40
+ <a href="classes/Bio/Graphics/SubFeature.html#M000028">draw (Bio::Graphics::SubFeature)</a><br />
41
+ <a href="classes/Bio/Graphics/Glyph/Triangle.html#M000008">draw (Bio::Graphics::Glyph::Triangle)</a><br />
42
+ <a href="classes/Bio/Graphics/Panel.html#M000031">draw (Bio::Graphics::Panel)</a><br />
43
+ <a href="classes/Bio/Graphics/Track.html#M000023">draw (Bio::Graphics::Track)</a><br />
44
+ <a href="classes/Bio/Graphics/Feature.html#M000025">draw (Bio::Graphics::Feature)</a><br />
45
+ <a href="classes/Bio/Graphics/Glyph/Box.html#M000004">draw (Bio::Graphics::Glyph::Box)</a><br />
46
+ <a href="classes/Bio/Graphics/Ruler.html#M000020">draw (Bio::Graphics::Ruler)</a><br />
47
+ <a href="classes/Bio/Features.html#M000040">each (Bio::Features)</a><br />
48
+ <a href="classes/Bio/Feature.html#M000049">each (Bio::Feature)</a><br />
49
+ <a href="classes/Bio/Feature.html#M000050">each_qualifier (Bio::Feature)</a><br />
50
+ <a href="classes/Bio/Feature.html#M000048">each_subfeature (Bio::Feature)</a><br />
51
+ <a href="classes/Bio/Graphics/Feature.html#M000026">find_row (Bio::Graphics::Feature)</a><br />
52
+ <a href="classes/Bio/Features.html#M000042">first (Bio::Features)</a><br />
53
+ <a href="classes/Bio/Graphics/Ruler.html#M000019">first_tick_position (Bio::Graphics::Ruler)</a><br />
54
+ <a href="classes/Bio/Graphics/ImageMap.html#M000035">flip_orientation (Bio::Graphics::ImageMap)</a><br />
55
+ <a href="classes/Bio/Features.html#M000043">last (Bio::Features)</a><br />
56
+ <a href="classes/Bio/Graphics/Glyph/Common.html#M000006">left_pixel (Bio::Graphics::Glyph::Common)</a><br />
57
+ <a href="classes/Bio/Graphics/SubFeature.html#M000027">new (Bio::Graphics::SubFeature)</a><br />
58
+ <a href="classes/Bio/Graphics/ImageMap/Element.html#M000036">new (Bio::Graphics::ImageMap::Element)</a><br />
59
+ <a href="classes/Bio/Graphics/Track.html#M000021">new (Bio::Graphics::Track)</a><br />
60
+ <a href="classes/Bio/Features.html#M000038">new (Bio::Features)</a><br />
61
+ <a href="classes/Bio/Graphics/Ruler.html#M000017">new (Bio::Graphics::Ruler)</a><br />
62
+ <a href="classes/Bio/Graphics/Panel.html#M000029">new (Bio::Graphics::Panel)</a><br />
63
+ <a href="classes/Bio/Graphics/Glyph/Common.html#M000005">new (Bio::Graphics::Glyph::Common)</a><br />
64
+ <a href="classes/Bio/Graphics/ImageMap.html#M000032">new (Bio::Graphics::ImageMap)</a><br />
65
+ <a href="classes/Bio/Graphics/Feature.html#M000024">new (Bio::Graphics::Feature)</a><br />
66
+ <a href="classes/Bio/Feature.html#M000044">new (Bio::Feature)</a><br />
67
+ <a href="classes/Bio/Feature/Qualifier.html#M000051">new (Bio::Feature::Qualifier)</a><br />
68
+ <a href="classes/Bio/Graphics/Glyph/Common.html#M000007">right_pixel (Bio::Graphics::Glyph::Common)</a><br />
69
+ <a href="classes/Bio/Graphics/Ruler.html#M000018">scaling_factor (Bio::Graphics::Ruler)</a><br />
70
+ <a href="classes/String.html#M000001">snake_case (String)</a><br />
71
+ <a href="classes/String.html#M000003">to_class (String)</a><br />
72
+ <a href="classes/Bio/Graphics/ImageMap.html#M000034">to_s (Bio::Graphics::ImageMap)</a><br />
73
+ <a href="classes/Bio/Graphics/ImageMap/Element.html#M000037">to_s (Bio::Graphics::ImageMap::Element)</a><br />
42
74
  </div>
43
75
  </div>
44
76
  </body>
@@ -9,17 +9,31 @@
9
9
  xmlns:xlink="http://www.w3.org/1999/xlink"
10
10
  xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
11
  xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
- width="1052.3622"
13
- height="744.09448"
14
- id="svg2"
12
+ id="svg2288"
15
13
  sodipodi:version="0.32"
16
14
  inkscape:version="0.45.1"
15
+ width="800"
16
+ height="365"
17
17
  version="1.0"
18
- sodipodi:docbase="/home/aertsj/Documents/Projects/20070924_RT3097_BioGraphics/images"
18
+ sodipodi:docbase="/home/aertsj/LocalDocuments/bio-graphics/trunk/images"
19
19
  sodipodi:docname="terms.svg"
20
- inkscape:output_extension="org.inkscape.output.svg.inkscape">
20
+ inkscape:output_extension="org.inkscape.output.svg.inkscape"
21
+ inkscape:export-filename="/home/aertsj/LocalDocuments/bio-graphics/trunk/images/terms.png"
22
+ inkscape:export-xdpi="90"
23
+ inkscape:export-ydpi="90">
24
+ <metadata
25
+ id="metadata2293">
26
+ <rdf:RDF>
27
+ <cc:Work
28
+ rdf:about="">
29
+ <dc:format>image/svg+xml</dc:format>
30
+ <dc:type
31
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
32
+ </cc:Work>
33
+ </rdf:RDF>
34
+ </metadata>
21
35
  <defs
22
- id="defs4">
36
+ id="defs2291">
23
37
  <marker
24
38
  inkscape:stockid="Arrow1Lend"
25
39
  orient="auto"
@@ -35,132 +49,132 @@
35
49
  </marker>
36
50
  </defs>
37
51
  <sodipodi:namedview
38
- id="base"
39
- pagecolor="#ffffff"
40
- bordercolor="#666666"
41
- borderopacity="1.0"
42
- gridtolerance="10000"
43
- guidetolerance="10"
44
- objecttolerance="10"
45
- inkscape:pageopacity="0.0"
46
- inkscape:pageshadow="2"
47
- inkscape:zoom="1.3432653"
48
- inkscape:cx="478.61669"
49
- inkscape:cy="477.62578"
50
- inkscape:document-units="px"
51
- inkscape:current-layer="layer1"
52
- width="1052.3622px"
53
- height="744.09449px"
54
- inkscape:window-width="1280"
55
52
  inkscape:window-height="750"
53
+ inkscape:window-width="1280"
54
+ inkscape:pageshadow="2"
55
+ inkscape:pageopacity="0.0"
56
+ guidetolerance="10.0"
57
+ gridtolerance="10.0"
58
+ objecttolerance="10.0"
59
+ borderopacity="1.0"
60
+ bordercolor="#666666"
61
+ pagecolor="#ffffff"
62
+ id="base"
63
+ inkscape:zoom="1.02"
64
+ inkscape:cx="411.76471"
65
+ inkscape:cy="175.14706"
56
66
  inkscape:window-x="0"
57
- inkscape:window-y="0" />
58
- <metadata
59
- id="metadata7">
60
- <rdf:RDF>
61
- <cc:Work
62
- rdf:about="">
63
- <dc:format>image/svg+xml</dc:format>
64
- <dc:type
65
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
66
- </cc:Work>
67
- </rdf:RDF>
68
- </metadata>
69
- <g
70
- inkscape:label="Layer 1"
71
- inkscape:groupmode="layer"
72
- id="layer1">
73
- <image
74
- y="149.01341"
75
- x="69.698372"
76
- id="image2218"
77
- height="245"
78
- width="800"
79
- sodipodi:absref="/home/aertsj/Documents/Projects/20070924_RT3097_BioGraphics/images/example.png"
80
- xlink:href="example.png" />
81
- <rect
82
- style="fill:#6ae432;fill-opacity:0.46448088;stroke:none;stroke-width:1.40473521;stroke-linejoin:round;stroke-opacity:1"
83
- id="rect3194"
84
- width="805.83954"
85
- height="88.185356"
86
- x="67.947731"
87
- y="286.45731" />
88
- <text
89
- xml:space="preserve"
90
- style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
91
- x="627.5752"
92
- y="401.64539"
93
- id="text5134"><tspan
94
- sodipodi:role="line"
95
- id="tspan5136"
96
- x="627.5752"
97
- y="401.64539">Track</tspan></text>
98
- <path
99
- style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Lend)"
100
- d="M 629.80855,388.98966 L 610.45273,364.42267"
101
- id="path5138"
102
- sodipodi:nodetypes="cc" />
103
- <rect
104
- style="fill:#d02e16;fill-opacity:0.46448088;stroke:none;stroke-linejoin:round;stroke-opacity:1"
105
- id="rect6307"
106
- width="815.92218"
107
- height="35.733818"
108
- x="64.767548"
109
- y="146.29749" />
110
- <path
111
- sodipodi:type="arc"
112
- style="fill:#0209fb;fill-opacity:0.55191255;stroke:none;stroke-linejoin:round;stroke-opacity:1"
113
- id="path7278"
114
- sodipodi:cx="442.57822"
115
- sodipodi:cy="272.11029"
116
- sodipodi:rx="10.794591"
117
- sodipodi:ry="10.422363"
118
- d="M 453.37281 272.11029 A 10.794591 10.422363 0 1 1 431.78363,272.11029 A 10.794591 10.422363 0 1 1 453.37281 272.11029 z"
119
- transform="translate(-2.9778182,0)" />
120
- <text
121
- xml:space="preserve"
122
- style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
123
- x="477.88785"
124
- y="263.92819"
125
- id="text8249"><tspan
126
- sodipodi:role="line"
127
- id="tspan8251"
128
- x="477.88785"
129
- y="263.92819">Feature</tspan></text>
130
- <text
131
- xml:space="preserve"
132
- style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
133
- x="331.97473"
134
- y="123.97075"
135
- id="text8253"><tspan
136
- sodipodi:role="line"
137
- id="tspan8255"
138
- x="331.97473"
139
- y="123.97075">Ruler</tspan></text>
140
- <path
141
- style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1"
142
- d="M 364.78273,124.33607 L 411.68337,152.62535"
143
- id="path8257"
144
- sodipodi:nodetypes="cc" />
145
- <path
146
- style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1"
147
- d="M 474.962,260.57124 L 445.18382,269.50471"
148
- id="path8259"
149
- sodipodi:nodetypes="cc" />
150
- <path
151
- sodipodi:type="arc"
152
- style="fill:#0209fb;fill-opacity:0.55191255;stroke:none;stroke-linejoin:round;stroke-opacity:1"
153
- id="path8261"
154
- sodipodi:cx="442.57822"
155
- sodipodi:cy="272.11029"
156
- sodipodi:rx="10.794591"
157
- sodipodi:ry="10.422363"
158
- d="M 453.37281 272.11029 A 10.794591 10.422363 0 1 1 431.78363,272.11029 A 10.794591 10.422363 0 1 1 453.37281 272.11029 z"
159
- transform="matrix(4.2413793,0,0,1,-1423.7692,-50.622902)" />
160
- <path
161
- style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1"
162
- d="M 475.70645,251.26556 L 454.86173,225.95412"
163
- id="path8263"
164
- sodipodi:nodetypes="cc" />
165
- </g>
67
+ inkscape:window-y="0"
68
+ inkscape:current-layer="svg2288" />
69
+ <image
70
+ xlink:href="example_labels.png"
71
+ sodipodi:absref="/home/aertsj/LocalDocuments/bio-graphics/trunk/images/example_labels.png"
72
+ width="800"
73
+ height="365"
74
+ id="image2295"
75
+ x="0"
76
+ y="0" />
77
+ <rect
78
+ style="fill:#d02e16;fill-opacity:0.46448089;stroke:none;stroke-linejoin:round;stroke-opacity:1"
79
+ id="rect6307"
80
+ width="815.92218"
81
+ height="35.733818"
82
+ x="-6.9806962"
83
+ y="-1.8865167" />
84
+ <text
85
+ xml:space="preserve"
86
+ style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
87
+ x="264.2088"
88
+ y="-30.312824"
89
+ id="text8253"
90
+ sodipodi:linespacing="125%"><tspan
91
+ sodipodi:role="line"
92
+ id="tspan8255"
93
+ x="264.2088"
94
+ y="-30.312824">Ruler</tspan></text>
95
+ <path
96
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1"
97
+ d="M 305.8403,-31.908288 L 352.74094,-3.6190077"
98
+ id="path8257"
99
+ sodipodi:nodetypes="cc" />
100
+ <text
101
+ xml:space="preserve"
102
+ style="font-size:12px;font-style:normal;font-weight:bold;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
103
+ x="732.52533"
104
+ y="240.59735"
105
+ id="text5134"
106
+ sodipodi:linespacing="125%"><tspan
107
+ sodipodi:role="line"
108
+ id="tspan5136"
109
+ x="732.52533"
110
+ y="240.59735">Track</tspan></text>
111
+ <path
112
+ sodipodi:type="arc"
113
+ style="fill:#0209fb;fill-opacity:0.55191255;stroke:none;stroke-linejoin:round;stroke-opacity:1"
114
+ id="path7278"
115
+ sodipodi:cx="442.57822"
116
+ sodipodi:cy="272.11029"
117
+ sodipodi:rx="10.794591"
118
+ sodipodi:ry="10.422363"
119
+ d="M 453.37281 272.11029 A 10.794591 10.422363 0 1 1 431.78363,272.11029 A 10.794591 10.422363 0 1 1 453.37281 272.11029 z"
120
+ transform="translate(-91.164966,-131.63624)" />
121
+ <text
122
+ xml:space="preserve"
123
+ style="font-size:12px;font-style:normal;font-weight:bold;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
124
+ x="447.54382"
125
+ y="131.31154"
126
+ id="text8249"
127
+ sodipodi:linespacing="125%"><tspan
128
+ sodipodi:role="line"
129
+ id="tspan8251"
130
+ x="447.54382"
131
+ y="131.31154">Feature</tspan></text>
132
+ <path
133
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1"
134
+ d="M 440.69642,131.87618 L 363.85942,137.86847"
135
+ id="path8259"
136
+ sodipodi:nodetypes="cc" />
137
+ <path
138
+ sodipodi:type="arc"
139
+ style="fill:#0209fb;fill-opacity:0.55191255;stroke:none;stroke-linejoin:round;stroke-opacity:1"
140
+ id="path8261"
141
+ sodipodi:cx="442.57822"
142
+ sodipodi:cy="272.11029"
143
+ sodipodi:rx="10.794591"
144
+ sodipodi:ry="10.422363"
145
+ d="M 453.37281 272.11029 A 10.794591 10.422363 0 1 1 431.78363,272.11029 A 10.794591 10.422363 0 1 1 453.37281 272.11029 z"
146
+ transform="matrix(4.2413793,0,0,1,-1493.3289,-185.20032)" />
147
+ <path
148
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1"
149
+ d="M 442.42126,117.66854 L 411.77262,95.298269"
150
+ id="path8263"
151
+ sodipodi:nodetypes="cc" />
152
+ <rect
153
+ style="fill:#6ae432;fill-opacity:0.46448089;stroke:none;stroke-width:1.40473521;stroke-linejoin:round;stroke-opacity:1"
154
+ id="rect3194"
155
+ width="805.83954"
156
+ height="88.185356"
157
+ x="-7.8217263"
158
+ y="261.10339" />
159
+ <path
160
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1"
161
+ d="M 727.89591,239.70636 L 668.34402,270.04133"
162
+ id="path5138"
163
+ sodipodi:nodetypes="cc" />
164
+ <text
165
+ xml:space="preserve"
166
+ style="font-size:12px;font-style:normal;font-weight:bold;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;font-stretch:normal;font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125%"
167
+ x="522.54974"
168
+ y="220.45403"
169
+ id="text2181"
170
+ sodipodi:linespacing="125%"><tspan
171
+ sodipodi:role="line"
172
+ id="tspan2183"
173
+ x="522.54974"
174
+ y="220.45403">Label</tspan></text>
175
+ <path
176
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow1Lend);stroke-opacity:1"
177
+ d="M 519.97202,211.59722 L 468.26327,187.03023"
178
+ id="path2185"
179
+ sodipodi:nodetypes="cc" />
166
180
  </svg>
Binary file
@@ -3,17 +3,49 @@
3
3
  #
4
4
  # Copyright:: Copyright (C) 2007
5
5
  # Jan Aerts <jan.aerts@bbsrc.ac.uk>
6
+ # Charles Comstock <dgtized@gmail.com>
6
7
  # License:: The Ruby License
7
8
  #
8
- begin
9
- require 'bio'
10
- require 'cairo'
11
- require 'pango'
12
- require 'stringio'
9
+
10
+ require 'bio'
11
+ require 'cairo'
12
+ require 'pango'
13
+ require 'stringio'
14
+
15
+ class Range
16
+ alias :lend :begin
17
+ alias :rend :end
13
18
  end
14
19
 
15
- require File.dirname(__FILE__) + '/bio/graphics/image_map.rb'
20
+ class String
21
+ def snake_case
22
+ return self.to_s.gsub(/::/, '/').gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').gsub(/([a-z\d])([A-Z])/,'\1_\2').tr("-", "_").downcase
23
+ end
24
+
25
+ def camel_case
26
+ return self.to_s.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase }.to_s.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase }
27
+ end
28
+
29
+ def to_class
30
+ parts = self.split(/::/)
31
+ klass = Kernel
32
+ parts.each do |part|
33
+ klass = klass.const_get(part)
34
+ end
35
+ return klass
36
+ end
37
+ end
38
+
39
+ require File.dirname(__FILE__) + '/feature.rb'
16
40
  require File.dirname(__FILE__) + '/bio/graphics/panel.rb'
41
+ require File.dirname(__FILE__) + '/bio/graphics/image_map.rb'
17
42
  require File.dirname(__FILE__) + '/bio/graphics/track.rb'
18
43
  require File.dirname(__FILE__) + '/bio/graphics/feature.rb'
44
+ require File.dirname(__FILE__) + '/bio/graphics/subfeature.rb'
19
45
  require File.dirname(__FILE__) + '/bio/graphics/ruler.rb'
46
+
47
+ # Load all the glyphs
48
+ require File.dirname(__FILE__) + '/bio/graphics/glyphs/common.rb'
49
+ Dir.new(File.dirname(__FILE__) + '/bio/graphics/glyphs').reject{|f| f == 'common.rb'}.select{|f| f =~ /\.rb$/}.each do |glyph_file_name|
50
+ require File.dirname(__FILE__) + '/bio/graphics/glyphs/' + glyph_file_name
51
+ end