bio-ucsc-api 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (547) hide show
  1. data/Gemfile +4 -3
  2. data/Gemfile.lock +31 -20
  3. data/README.md +224 -0
  4. data/Rakefile +5 -8
  5. data/VERSION +1 -1
  6. data/bio-ucsc-api.gemspec +39 -122
  7. data/lib/bio-ucsc.rb +10 -5
  8. data/lib/bio-ucsc/ailmel1.rb +5 -3
  9. data/lib/bio-ucsc/anocar2.rb +7 -6
  10. data/lib/bio-ucsc/anogam1.rb +7 -5
  11. data/lib/bio-ucsc/anogam1/chaindm3.rb +11 -8
  12. data/lib/bio-ucsc/anogam1/chaindm3link.rb +11 -8
  13. data/lib/bio-ucsc/anogam1/est.rb +11 -8
  14. data/lib/bio-ucsc/anogam1/gap.rb +11 -8
  15. data/lib/bio-ucsc/anogam1/gold.rb +11 -8
  16. data/lib/bio-ucsc/anogam1/intronest.rb +11 -8
  17. data/lib/bio-ucsc/anogam1/mrna.rb +11 -8
  18. data/lib/bio-ucsc/anogam1/rmsk.rb +10 -7
  19. data/lib/bio-ucsc/apimel2.rb +5 -3
  20. data/lib/bio-ucsc/apimel2/chaindm2.rb +11 -8
  21. data/lib/bio-ucsc/apimel2/chaindm2link.rb +11 -8
  22. data/lib/bio-ucsc/aplcal1.rb +5 -3
  23. data/lib/bio-ucsc/aplcal1/chaincaepb1.rb +11 -8
  24. data/lib/bio-ucsc/aplcal1/chaincaepb1link.rb +11 -8
  25. data/lib/bio-ucsc/aplcal1/chaincaerem2.rb +11 -8
  26. data/lib/bio-ucsc/aplcal1/chaincaerem2link.rb +11 -8
  27. data/lib/bio-ucsc/aplcal1/chaincb3.rb +11 -8
  28. data/lib/bio-ucsc/aplcal1/chaincb3link.rb +11 -8
  29. data/lib/bio-ucsc/aplcal1/chaince6.rb +11 -8
  30. data/lib/bio-ucsc/aplcal1/chaince6link.rb +11 -8
  31. data/lib/bio-ucsc/aplcal1/gap.rb +11 -8
  32. data/lib/bio-ucsc/aplcal1/gold.rb +11 -8
  33. data/lib/bio-ucsc/aplcal1/rmsk.rb +10 -7
  34. data/lib/bio-ucsc/bostau4.rb +5 -3
  35. data/lib/bio-ucsc/braflo1.rb +5 -3
  36. data/lib/bio-ucsc/braflo1/chaingalgal3.rb +11 -8
  37. data/lib/bio-ucsc/braflo1/chaingalgal3link.rb +11 -8
  38. data/lib/bio-ucsc/braflo1/chainhg18.rb +11 -8
  39. data/lib/bio-ucsc/braflo1/chainhg18link.rb +11 -8
  40. data/lib/bio-ucsc/braflo1/chainmm9.rb +11 -8
  41. data/lib/bio-ucsc/braflo1/chainmm9link.rb +11 -8
  42. data/lib/bio-ucsc/braflo1/chainpetmar1.rb +11 -8
  43. data/lib/bio-ucsc/braflo1/chainpetmar1link.rb +11 -8
  44. data/lib/bio-ucsc/braflo1/gap.rb +11 -8
  45. data/lib/bio-ucsc/braflo1/gold.rb +11 -8
  46. data/lib/bio-ucsc/caejap1.rb +5 -3
  47. data/lib/bio-ucsc/caejap1/chaince6.rb +11 -8
  48. data/lib/bio-ucsc/caejap1/chaince6link.rb +11 -8
  49. data/lib/bio-ucsc/caejap1/gap.rb +11 -8
  50. data/lib/bio-ucsc/caejap1/gold.rb +11 -8
  51. data/lib/bio-ucsc/caepb2.rb +6 -4
  52. data/lib/bio-ucsc/caepb2/chaince6.rb +11 -8
  53. data/lib/bio-ucsc/caepb2/chaince6link.rb +11 -8
  54. data/lib/bio-ucsc/caepb2/gap.rb +11 -8
  55. data/lib/bio-ucsc/caepb2/gold.rb +11 -8
  56. data/lib/bio-ucsc/caerem3.rb +5 -3
  57. data/lib/bio-ucsc/caerem3/chaince6.rb +11 -8
  58. data/lib/bio-ucsc/caerem3/chaince6link.rb +11 -8
  59. data/lib/bio-ucsc/caerem3/gap.rb +11 -8
  60. data/lib/bio-ucsc/caerem3/gold.rb +11 -8
  61. data/lib/bio-ucsc/caljac3.rb +7 -4
  62. data/lib/bio-ucsc/canfam2.rb +5 -3
  63. data/lib/bio-ucsc/canfam2/chainbostau4.rb +11 -8
  64. data/lib/bio-ucsc/canfam2/chainbostau4link.rb +11 -8
  65. data/lib/bio-ucsc/canfam2/chainmm9.rb +11 -8
  66. data/lib/bio-ucsc/canfam2/chainmm9link.rb +11 -8
  67. data/lib/bio-ucsc/canfam2/chainrn4.rb +11 -8
  68. data/lib/bio-ucsc/canfam2/chainrn4link.rb +11 -8
  69. data/lib/bio-ucsc/canfam2/chainself.rb +11 -8
  70. data/lib/bio-ucsc/canfam2/chainselflink.rb +11 -8
  71. data/lib/bio-ucsc/canfam2/est.rb +11 -8
  72. data/lib/bio-ucsc/canfam2/gap.rb +11 -8
  73. data/lib/bio-ucsc/canfam2/gold.rb +11 -8
  74. data/lib/bio-ucsc/canfam2/intronest.rb +11 -8
  75. data/lib/bio-ucsc/canfam2/mrna.rb +11 -8
  76. data/lib/bio-ucsc/canfam2/rmsk.rb +10 -7
  77. data/lib/bio-ucsc/cavpor3.rb +6 -4
  78. data/lib/bio-ucsc/cb3.rb +5 -3
  79. data/lib/bio-ucsc/cb3/chaincaepb1.rb +11 -8
  80. data/lib/bio-ucsc/cb3/chaincaepb1link.rb +11 -8
  81. data/lib/bio-ucsc/cb3/chaincaerem2.rb +11 -8
  82. data/lib/bio-ucsc/cb3/chaincaerem2link.rb +11 -8
  83. data/lib/bio-ucsc/cb3/chaince6.rb +11 -8
  84. data/lib/bio-ucsc/cb3/chaince6link.rb +11 -8
  85. data/lib/bio-ucsc/cb3/chainpripac1.rb +11 -8
  86. data/lib/bio-ucsc/cb3/chainpripac1link.rb +11 -8
  87. data/lib/bio-ucsc/cb3/est.rb +11 -8
  88. data/lib/bio-ucsc/cb3/gap.rb +11 -8
  89. data/lib/bio-ucsc/cb3/gold.rb +11 -8
  90. data/lib/bio-ucsc/cb3/intronest.rb +11 -8
  91. data/lib/bio-ucsc/cb3/mrna.rb +11 -8
  92. data/lib/bio-ucsc/cb3/rmsk.rb +10 -7
  93. data/lib/bio-ucsc/ce6.rb +8 -4
  94. data/lib/bio-ucsc/ce6/chaincaejap1.rb +11 -8
  95. data/lib/bio-ucsc/ce6/chaincaejap1link.rb +11 -8
  96. data/lib/bio-ucsc/ce6/chaincaepb2.rb +11 -8
  97. data/lib/bio-ucsc/ce6/chaincaepb2link.rb +11 -8
  98. data/lib/bio-ucsc/ce6/chaincaerem3.rb +11 -8
  99. data/lib/bio-ucsc/ce6/chaincaerem3link.rb +11 -8
  100. data/lib/bio-ucsc/ce6/chaincb3.rb +11 -8
  101. data/lib/bio-ucsc/ce6/chaincb3link.rb +11 -8
  102. data/lib/bio-ucsc/ce6/chainpripac1.rb +11 -8
  103. data/lib/bio-ucsc/ce6/chainpripac1link.rb +11 -8
  104. data/lib/bio-ucsc/ce6/chainself.rb +11 -8
  105. data/lib/bio-ucsc/ce6/chainselflink.rb +11 -8
  106. data/lib/bio-ucsc/ce6/est.rb +11 -8
  107. data/lib/bio-ucsc/ce6/gap.rb +11 -8
  108. data/lib/bio-ucsc/ce6/gold.rb +11 -8
  109. data/lib/bio-ucsc/ce6/intronest.rb +11 -8
  110. data/lib/bio-ucsc/ce6/mrna.rb +11 -8
  111. data/lib/bio-ucsc/ce6/rmsk.rb +11 -8
  112. data/lib/bio-ucsc/ce6/t25mersrepeats.rb +7 -4
  113. data/lib/bio-ucsc/ci2.rb +6 -3
  114. data/lib/bio-ucsc/danrer7.rb +6 -3
  115. data/lib/bio-ucsc/{apimel2/db_connection.rb → db_connector.rb} +33 -23
  116. data/lib/bio-ucsc/dm3.rb +6 -4
  117. data/lib/bio-ucsc/dm3/chainanogam1.rb +11 -8
  118. data/lib/bio-ucsc/dm3/chainanogam1link.rb +11 -8
  119. data/lib/bio-ucsc/dm3/chainapimel3.rb +11 -8
  120. data/lib/bio-ucsc/dm3/chainapimel3link.rb +11 -8
  121. data/lib/bio-ucsc/dm3/chaindp3.rb +11 -8
  122. data/lib/bio-ucsc/dm3/chaindp3link.rb +11 -8
  123. data/lib/bio-ucsc/dm3/chaindroana2.rb +11 -8
  124. data/lib/bio-ucsc/dm3/chaindroana2link.rb +11 -8
  125. data/lib/bio-ucsc/dm3/chaindroere1.rb +11 -8
  126. data/lib/bio-ucsc/dm3/chaindroere1link.rb +11 -8
  127. data/lib/bio-ucsc/dm3/chaindroper1.rb +11 -8
  128. data/lib/bio-ucsc/dm3/chaindroper1link.rb +11 -8
  129. data/lib/bio-ucsc/dm3/chaindrosec1.rb +11 -8
  130. data/lib/bio-ucsc/dm3/chaindrosec1link.rb +11 -8
  131. data/lib/bio-ucsc/dm3/chaindrosim1.rb +11 -8
  132. data/lib/bio-ucsc/dm3/chaindrosim1link.rb +11 -8
  133. data/lib/bio-ucsc/dm3/chaindroyak2.rb +11 -8
  134. data/lib/bio-ucsc/dm3/chaindroyak2link.rb +11 -8
  135. data/lib/bio-ucsc/dm3/est.rb +11 -8
  136. data/lib/bio-ucsc/dm3/gap.rb +11 -8
  137. data/lib/bio-ucsc/dm3/gold.rb +11 -8
  138. data/lib/bio-ucsc/dm3/intronest.rb +11 -8
  139. data/lib/bio-ucsc/dm3/mrna.rb +11 -8
  140. data/lib/bio-ucsc/dm3/rmsk.rb +11 -8
  141. data/lib/bio-ucsc/dp3.rb +6 -4
  142. data/lib/bio-ucsc/dp3/chaindm3.rb +11 -8
  143. data/lib/bio-ucsc/dp3/chaindm3link.rb +11 -8
  144. data/lib/bio-ucsc/dp3/est.rb +11 -8
  145. data/lib/bio-ucsc/dp3/gap.rb +11 -8
  146. data/lib/bio-ucsc/dp3/gold.rb +11 -8
  147. data/lib/bio-ucsc/dp3/intronest.rb +11 -8
  148. data/lib/bio-ucsc/dp3/mrna.rb +11 -8
  149. data/lib/bio-ucsc/dp3/rmsk.rb +10 -7
  150. data/lib/bio-ucsc/droana2.rb +6 -4
  151. data/lib/bio-ucsc/droere1.rb +6 -4
  152. data/lib/bio-ucsc/drogri1.rb +6 -4
  153. data/lib/bio-ucsc/dromoj2.rb +7 -5
  154. data/lib/bio-ucsc/droper1.rb +7 -5
  155. data/lib/bio-ucsc/drosec1.rb +6 -4
  156. data/lib/bio-ucsc/drosim1.rb +6 -4
  157. data/lib/bio-ucsc/drosim1/chaindm3.rb +11 -8
  158. data/lib/bio-ucsc/drosim1/chaindm3link.rb +11 -8
  159. data/lib/bio-ucsc/drosim1/est.rb +11 -8
  160. data/lib/bio-ucsc/drosim1/gap.rb +11 -8
  161. data/lib/bio-ucsc/drosim1/gold.rb +11 -8
  162. data/lib/bio-ucsc/drosim1/intronest.rb +11 -8
  163. data/lib/bio-ucsc/drosim1/mrna.rb +11 -8
  164. data/lib/bio-ucsc/drosim1/rmsk.rb +10 -7
  165. data/lib/bio-ucsc/drovir2.rb +6 -4
  166. data/lib/bio-ucsc/droyak2.rb +6 -4
  167. data/lib/bio-ucsc/droyak2/chaindm3.rb +11 -8
  168. data/lib/bio-ucsc/droyak2/chaindm3link.rb +11 -8
  169. data/lib/bio-ucsc/droyak2/est.rb +11 -8
  170. data/lib/bio-ucsc/droyak2/gap.rb +11 -8
  171. data/lib/bio-ucsc/droyak2/gold.rb +11 -8
  172. data/lib/bio-ucsc/droyak2/intronest.rb +11 -8
  173. data/lib/bio-ucsc/droyak2/mrna.rb +11 -8
  174. data/lib/bio-ucsc/droyak2/rmsk.rb +10 -7
  175. data/lib/bio-ucsc/equcab2.rb +7 -4
  176. data/lib/bio-ucsc/equcab2/est.rb +11 -8
  177. data/lib/bio-ucsc/equcab2/gap.rb +11 -8
  178. data/lib/bio-ucsc/equcab2/gold.rb +11 -8
  179. data/lib/bio-ucsc/equcab2/intronest.rb +11 -8
  180. data/lib/bio-ucsc/equcab2/mrna.rb +11 -8
  181. data/lib/bio-ucsc/equcab2/rmsk.rb +10 -7
  182. data/lib/bio-ucsc/felcat4.rb +7 -4
  183. data/lib/bio-ucsc/file.rb +10 -0
  184. data/lib/bio-ucsc/file/bytequeue.rb +28 -0
  185. data/lib/bio-ucsc/file/twobit.rb +174 -0
  186. data/lib/bio-ucsc/fr2.rb +5 -3
  187. data/lib/bio-ucsc/fr2/chaingalgal3.rb +11 -8
  188. data/lib/bio-ucsc/fr2/chaingalgal3link.rb +11 -8
  189. data/lib/bio-ucsc/fr2/chaingasacu1.rb +11 -8
  190. data/lib/bio-ucsc/fr2/chaingasacu1link.rb +11 -8
  191. data/lib/bio-ucsc/fr2/chainmm9.rb +11 -8
  192. data/lib/bio-ucsc/fr2/chainmm9link.rb +11 -8
  193. data/lib/bio-ucsc/fr2/chainorylat2.rb +11 -8
  194. data/lib/bio-ucsc/fr2/chainorylat2link.rb +11 -8
  195. data/lib/bio-ucsc/fr2/est.rb +11 -8
  196. data/lib/bio-ucsc/fr2/gap.rb +11 -8
  197. data/lib/bio-ucsc/fr2/gold.rb +11 -8
  198. data/lib/bio-ucsc/fr2/intronest.rb +11 -8
  199. data/lib/bio-ucsc/fr2/mrna.rb +11 -8
  200. data/lib/bio-ucsc/fr2/rmsk.rb +10 -7
  201. data/lib/bio-ucsc/galgal3.rb +8 -5
  202. data/lib/bio-ucsc/galgal3/chainanocar1.rb +11 -8
  203. data/lib/bio-ucsc/galgal3/chainanocar1link.rb +11 -8
  204. data/lib/bio-ucsc/galgal3/chainbraflo1.rb +11 -8
  205. data/lib/bio-ucsc/galgal3/chainbraflo1link.rb +11 -8
  206. data/lib/bio-ucsc/galgal3/chaincavpor3.rb +11 -8
  207. data/lib/bio-ucsc/galgal3/chaincavpor3link.rb +11 -8
  208. data/lib/bio-ucsc/galgal3/chaindanrer4.rb +11 -8
  209. data/lib/bio-ucsc/galgal3/chaindanrer4link.rb +11 -8
  210. data/lib/bio-ucsc/galgal3/chainfr2.rb +11 -8
  211. data/lib/bio-ucsc/galgal3/chainfr2link.rb +11 -8
  212. data/lib/bio-ucsc/galgal3/chaingasacu1.rb +11 -8
  213. data/lib/bio-ucsc/galgal3/chaingasacu1link.rb +11 -8
  214. data/lib/bio-ucsc/galgal3/chainmm9.rb +11 -8
  215. data/lib/bio-ucsc/galgal3/chainmm9link.rb +11 -8
  216. data/lib/bio-ucsc/galgal3/chainornana1.rb +11 -8
  217. data/lib/bio-ucsc/galgal3/chainornana1link.rb +11 -8
  218. data/lib/bio-ucsc/galgal3/chainpetmar1.rb +11 -8
  219. data/lib/bio-ucsc/galgal3/chainpetmar1link.rb +11 -8
  220. data/lib/bio-ucsc/galgal3/chainrn4.rb +11 -8
  221. data/lib/bio-ucsc/galgal3/chainrn4link.rb +11 -8
  222. data/lib/bio-ucsc/galgal3/chaintaegut1.rb +11 -8
  223. data/lib/bio-ucsc/galgal3/chaintaegut1link.rb +11 -8
  224. data/lib/bio-ucsc/galgal3/chainxentro2.rb +11 -8
  225. data/lib/bio-ucsc/galgal3/chainxentro2link.rb +11 -8
  226. data/lib/bio-ucsc/galgal3/est.rb +11 -8
  227. data/lib/bio-ucsc/galgal3/gap.rb +11 -8
  228. data/lib/bio-ucsc/galgal3/gold.rb +11 -8
  229. data/lib/bio-ucsc/galgal3/intronest.rb +11 -8
  230. data/lib/bio-ucsc/galgal3/mrna.rb +11 -8
  231. data/lib/bio-ucsc/galgal3/rmsk.rb +10 -7
  232. data/lib/bio-ucsc/gasacu1.rb +6 -4
  233. data/lib/bio-ucsc/gasacu1/chainanocar1.rb +11 -8
  234. data/lib/bio-ucsc/gasacu1/chainanocar1link.rb +11 -8
  235. data/lib/bio-ucsc/gasacu1/chainfr2.rb +11 -8
  236. data/lib/bio-ucsc/gasacu1/chainfr2link.rb +11 -8
  237. data/lib/bio-ucsc/gasacu1/chaingalgal3.rb +11 -8
  238. data/lib/bio-ucsc/gasacu1/chaingalgal3link.rb +11 -8
  239. data/lib/bio-ucsc/gasacu1/chainmm9.rb +11 -8
  240. data/lib/bio-ucsc/gasacu1/chainmm9link.rb +11 -8
  241. data/lib/bio-ucsc/gasacu1/chainorylat2.rb +11 -8
  242. data/lib/bio-ucsc/gasacu1/chainorylat2link.rb +11 -8
  243. data/lib/bio-ucsc/gasacu1/est.rb +11 -8
  244. data/lib/bio-ucsc/gasacu1/intronest.rb +11 -8
  245. data/lib/bio-ucsc/gasacu1/mrna.rb +11 -8
  246. data/lib/bio-ucsc/gasacu1/rmsk.rb +10 -7
  247. data/lib/bio-ucsc/gi.rb +27 -0
  248. data/lib/bio-ucsc/go.rb +7 -4
  249. data/lib/bio-ucsc/hg18.rb +7 -4
  250. data/lib/bio-ucsc/hg18/chainanocar1.rb +11 -8
  251. data/lib/bio-ucsc/hg18/chainbostau4.rb +11 -8
  252. data/lib/bio-ucsc/hg18/chainbraflo1.rb +11 -8
  253. data/lib/bio-ucsc/hg18/chaincaljac1.rb +11 -8
  254. data/lib/bio-ucsc/hg18/chaincanfam2.rb +11 -8
  255. data/lib/bio-ucsc/hg18/chaincavpor3.rb +11 -8
  256. data/lib/bio-ucsc/hg18/chaindanrer5.rb +11 -8
  257. data/lib/bio-ucsc/hg18/chainequcab1.rb +11 -8
  258. data/lib/bio-ucsc/hg18/chainfelcat3.rb +11 -8
  259. data/lib/bio-ucsc/hg18/chainfr2.rb +12 -9
  260. data/lib/bio-ucsc/hg18/chaingalgal3.rb +11 -8
  261. data/lib/bio-ucsc/hg18/chaingasacu1.rb +11 -8
  262. data/lib/bio-ucsc/hg18/chainmm9.rb +11 -8
  263. data/lib/bio-ucsc/hg18/chainmondom4.rb +11 -8
  264. data/lib/bio-ucsc/hg18/chainornana1.rb +11 -8
  265. data/lib/bio-ucsc/hg18/chainorylat2.rb +11 -8
  266. data/lib/bio-ucsc/hg18/chainpantro2.rb +11 -8
  267. data/lib/bio-ucsc/hg18/chainpetmar1.rb +11 -8
  268. data/lib/bio-ucsc/hg18/chainponabe2.rb +11 -8
  269. data/lib/bio-ucsc/hg18/chainrhemac2.rb +11 -8
  270. data/lib/bio-ucsc/hg18/chainrn4.rb +11 -8
  271. data/lib/bio-ucsc/hg18/chainself.rb +11 -8
  272. data/lib/bio-ucsc/hg18/chainstrpur2.rb +11 -8
  273. data/lib/bio-ucsc/hg18/chaintaegut1.rb +11 -8
  274. data/lib/bio-ucsc/hg18/chaintetnig2.rb +11 -8
  275. data/lib/bio-ucsc/hg18/chainxentro2.rb +11 -8
  276. data/lib/bio-ucsc/hg18/gap.rb +11 -8
  277. data/lib/bio-ucsc/hg18/gold.rb +11 -8
  278. data/lib/bio-ucsc/hg18/intronest.rb +11 -8
  279. data/lib/bio-ucsc/hg18/rmsk.rb +10 -7
  280. data/lib/bio-ucsc/hg18/rmskrm327.rb +10 -7
  281. data/lib/bio-ucsc/hg19.rb +7 -6
  282. data/lib/bio-ucsc/hg19/description.rb +1 -1
  283. data/lib/bio-ucsc/hg19/gbcdnainfo.rb +2 -2
  284. data/lib/bio-ucsc/hgfixed.rb +7 -4
  285. data/lib/bio-ucsc/loxafr3.rb +7 -4
  286. data/lib/bio-ucsc/mm9.rb +7 -12
  287. data/lib/bio-ucsc/mm9/chainbraflo1.rb +11 -8
  288. data/lib/bio-ucsc/mm9/chainbraflo1link.rb +11 -8
  289. data/lib/bio-ucsc/mm9/chaincanfam2.rb +11 -8
  290. data/lib/bio-ucsc/mm9/chaincanfam2link.rb +11 -8
  291. data/lib/bio-ucsc/mm9/chaincavpor3.rb +11 -8
  292. data/lib/bio-ucsc/mm9/chaincavpor3link.rb +11 -8
  293. data/lib/bio-ucsc/mm9/chainfr2.rb +11 -8
  294. data/lib/bio-ucsc/mm9/chainfr2link.rb +11 -8
  295. data/lib/bio-ucsc/mm9/chaingalgal3.rb +11 -8
  296. data/lib/bio-ucsc/mm9/chaingalgal3link.rb +11 -8
  297. data/lib/bio-ucsc/mm9/chaingasacu1.rb +11 -8
  298. data/lib/bio-ucsc/mm9/chaingasacu1link.rb +11 -8
  299. data/lib/bio-ucsc/mm9/chainornana1.rb +11 -8
  300. data/lib/bio-ucsc/mm9/chainornana1link.rb +11 -8
  301. data/lib/bio-ucsc/mm9/chainorylat2.rb +11 -8
  302. data/lib/bio-ucsc/mm9/chainorylat2link.rb +11 -8
  303. data/lib/bio-ucsc/mm9/chainpetmar1.rb +11 -8
  304. data/lib/bio-ucsc/mm9/chainpetmar1link.rb +11 -8
  305. data/lib/bio-ucsc/mm9/chainponabe2.rb +11 -8
  306. data/lib/bio-ucsc/mm9/chainponabe2link.rb +11 -8
  307. data/lib/bio-ucsc/mm9/chainrhemac2.rb +11 -8
  308. data/lib/bio-ucsc/mm9/chainrhemac2link.rb +11 -8
  309. data/lib/bio-ucsc/mm9/chainrn4.rb +11 -8
  310. data/lib/bio-ucsc/mm9/chainrn4link.rb +11 -8
  311. data/lib/bio-ucsc/mm9/est.rb +11 -8
  312. data/lib/bio-ucsc/mm9/gap.rb +11 -8
  313. data/lib/bio-ucsc/mm9/gold.rb +11 -8
  314. data/lib/bio-ucsc/mm9/intronest.rb +11 -8
  315. data/lib/bio-ucsc/mm9/mrna.rb +11 -8
  316. data/lib/bio-ucsc/mm9/rmsk.rb +10 -7
  317. data/lib/bio-ucsc/mondom5.rb +7 -4
  318. data/lib/bio-ucsc/ornana1.rb +6 -3
  319. data/lib/bio-ucsc/orycun2.rb +5 -3
  320. data/lib/bio-ucsc/orylat2.rb +7 -5
  321. data/lib/bio-ucsc/oviari1.rb +6 -4
  322. data/lib/bio-ucsc/pantro3.rb +7 -5
  323. data/lib/bio-ucsc/petmar1.rb +6 -5
  324. data/lib/bio-ucsc/ponabe2.rb +6 -4
  325. data/lib/bio-ucsc/ponabe2/chainmm9.rb +11 -8
  326. data/lib/bio-ucsc/ponabe2/chainmm9link.rb +11 -8
  327. data/lib/bio-ucsc/ponabe2/chainornana1.rb +11 -8
  328. data/lib/bio-ucsc/ponabe2/chainornana1link.rb +11 -8
  329. data/lib/bio-ucsc/ponabe2/chainrhemac2.rb +11 -8
  330. data/lib/bio-ucsc/ponabe2/chainrhemac2link.rb +11 -8
  331. data/lib/bio-ucsc/ponabe2/est.rb +11 -8
  332. data/lib/bio-ucsc/ponabe2/gap.rb +11 -8
  333. data/lib/bio-ucsc/ponabe2/gold.rb +11 -8
  334. data/lib/bio-ucsc/ponabe2/intronest.rb +11 -8
  335. data/lib/bio-ucsc/ponabe2/mrna.rb +11 -8
  336. data/lib/bio-ucsc/ponabe2/rmsk.rb +10 -7
  337. data/lib/bio-ucsc/pripac1.rb +7 -5
  338. data/lib/bio-ucsc/pripac1/chaincaepb1.rb +11 -8
  339. data/lib/bio-ucsc/pripac1/chaincaepb1link.rb +11 -8
  340. data/lib/bio-ucsc/pripac1/chaincaerem2.rb +11 -8
  341. data/lib/bio-ucsc/pripac1/chaincaerem2link.rb +11 -8
  342. data/lib/bio-ucsc/pripac1/chaincb3.rb +11 -8
  343. data/lib/bio-ucsc/pripac1/chaincb3link.rb +11 -8
  344. data/lib/bio-ucsc/pripac1/chaince6.rb +11 -8
  345. data/lib/bio-ucsc/pripac1/chaince6link.rb +11 -8
  346. data/lib/bio-ucsc/pripac1/gap.rb +11 -8
  347. data/lib/bio-ucsc/pripac1/gold.rb +11 -8
  348. data/lib/bio-ucsc/pripac1/rmsk.rb +10 -7
  349. data/lib/bio-ucsc/proteome.rb +7 -4
  350. data/lib/bio-ucsc/reference.rb +5 -160
  351. data/lib/bio-ucsc/rhemac2.rb +5 -5
  352. data/lib/bio-ucsc/rhemac2/chainmm9.rb +11 -8
  353. data/lib/bio-ucsc/rhemac2/chainmm9link.rb +11 -8
  354. data/lib/bio-ucsc/rhemac2/chainponabe2.rb +11 -8
  355. data/lib/bio-ucsc/rhemac2/chainponabe2link.rb +11 -8
  356. data/lib/bio-ucsc/rhemac2/chainrn4.rb +11 -8
  357. data/lib/bio-ucsc/rhemac2/chainrn4link.rb +11 -8
  358. data/lib/bio-ucsc/rn4.rb +6 -8
  359. data/lib/bio-ucsc/rn4/chaincanfam2.rb +11 -8
  360. data/lib/bio-ucsc/rn4/chaincanfam2link.rb +11 -8
  361. data/lib/bio-ucsc/rn4/chaincavpor3.rb +11 -8
  362. data/lib/bio-ucsc/rn4/chaincavpor3link.rb +11 -8
  363. data/lib/bio-ucsc/rn4/chaindanrer4.rb +11 -8
  364. data/lib/bio-ucsc/rn4/chaindanrer4link.rb +11 -8
  365. data/lib/bio-ucsc/rn4/chainequcab1.rb +11 -8
  366. data/lib/bio-ucsc/rn4/chainequcab1link.rb +11 -8
  367. data/lib/bio-ucsc/rn4/chaingalgal3.rb +11 -8
  368. data/lib/bio-ucsc/rn4/chaingalgal3link.rb +11 -8
  369. data/lib/bio-ucsc/rn4/chainmm9.rb +11 -8
  370. data/lib/bio-ucsc/rn4/chainmm9link.rb +11 -8
  371. data/lib/bio-ucsc/rn4/chainmondom4.rb +11 -8
  372. data/lib/bio-ucsc/rn4/chainmondom4link.rb +11 -8
  373. data/lib/bio-ucsc/rn4/chainpantro2.rb +11 -8
  374. data/lib/bio-ucsc/rn4/chainpantro2link.rb +11 -8
  375. data/lib/bio-ucsc/rn4/chainrhemac2.rb +11 -8
  376. data/lib/bio-ucsc/rn4/chainrhemac2link.rb +11 -8
  377. data/lib/bio-ucsc/rn4/est.rb +11 -8
  378. data/lib/bio-ucsc/rn4/gap.rb +11 -8
  379. data/lib/bio-ucsc/rn4/gold.rb +11 -8
  380. data/lib/bio-ucsc/rn4/intronest.rb +11 -8
  381. data/lib/bio-ucsc/rn4/mrna.rb +11 -8
  382. data/lib/bio-ucsc/rn4/rmsk.rb +10 -7
  383. data/lib/bio-ucsc/saccer2.rb +6 -4
  384. data/lib/bio-ucsc/saccer2/est.rb +11 -8
  385. data/lib/bio-ucsc/saccer2/gap.rb +11 -8
  386. data/lib/bio-ucsc/saccer2/gold.rb +11 -8
  387. data/lib/bio-ucsc/saccer2/intronest.rb +11 -8
  388. data/lib/bio-ucsc/saccer2/mrna.rb +11 -8
  389. data/lib/bio-ucsc/saccer2/t2micron_est.rb +4 -4
  390. data/lib/bio-ucsc/saccer2/t2micron_gap.rb +4 -4
  391. data/lib/bio-ucsc/saccer2/t2micron_gold.rb +4 -4
  392. data/lib/bio-ucsc/saccer2/t2micron_intronEst.rb +4 -4
  393. data/lib/bio-ucsc/saccer2/t2micron_mrna.rb +4 -4
  394. data/lib/bio-ucsc/strpur2.rb +7 -15
  395. data/lib/bio-ucsc/susscr2.rb +6 -4
  396. data/lib/bio-ucsc/susscr2/est.rb +11 -8
  397. data/lib/bio-ucsc/susscr2/intronest.rb +11 -8
  398. data/lib/bio-ucsc/susscr2/mrna.rb +11 -8
  399. data/lib/bio-ucsc/table_class_detector.rb +250 -475
  400. data/lib/bio-ucsc/taegut1.rb +6 -4
  401. data/lib/bio-ucsc/taegut1/chaingalgal3.rb +14 -13
  402. data/lib/bio-ucsc/taegut1/chaingalgal3link.rb +13 -10
  403. data/lib/bio-ucsc/taegut1/est.rb +13 -10
  404. data/lib/bio-ucsc/taegut1/gap.rb +13 -10
  405. data/lib/bio-ucsc/taegut1/gold.rb +13 -10
  406. data/lib/bio-ucsc/taegut1/intronest.rb +13 -10
  407. data/lib/bio-ucsc/taegut1/mrna.rb +13 -10
  408. data/lib/bio-ucsc/taegut1/rmsk.rb +12 -9
  409. data/lib/bio-ucsc/tetnig2.rb +6 -4
  410. data/lib/bio-ucsc/tetnig2/mrna.rb +11 -8
  411. data/lib/bio-ucsc/uniprot.rb +7 -4
  412. data/lib/bio-ucsc/visigene.rb +6 -3
  413. data/lib/bio-ucsc/xentro2.rb +6 -12
  414. data/samples/num-gene-exon.rb +1 -2
  415. data/samples/snp2genes.rb +1 -7
  416. data/samples/symbol2summary.rb +7 -1
  417. data/spec/ailmel1_spec.rb +245 -245
  418. data/spec/aplcal1_spec.rb +0 -30
  419. data/spec/braflo1_spec.rb +1 -1
  420. data/spec/canfam2_spec.rb +6 -6
  421. data/spec/danrer7_spec.rb +6 -6
  422. data/spec/file/twobit.rb +167 -0
  423. data/spec/galgal3_spec.rb +12 -12
  424. data/spec/gasacu1_spec.rb +6 -6
  425. data/spec/hg18/find_by_spec.rb +14 -20
  426. data/spec/hg19/all_mrna_spec.rb +0 -8
  427. data/spec/hg19/altseqliftoverpsl_spec.rb +0 -8
  428. data/spec/hg19/altseqpatches_spec.rb +0 -8
  429. data/spec/hg19/{chainanocar1_spec.rb → chainanocar2_spec.rb} +2 -2
  430. data/spec/hg19/{chainbostau4_spec.rb → chainbostau6_spec.rb} +2 -2
  431. data/spec/hg19/{chainxentro2_spec.rb → chainxentro3_spec.rb} +2 -2
  432. data/spec/hg19/connect_spec.rb +20 -0
  433. data/spec/hg19/find_by_spec.rb +14 -14
  434. data/spec/hg19/gwascatalog_spec.rb +0 -7
  435. data/spec/hg19/hgikmcextra_spec.rb +2 -1
  436. data/spec/hg19/mrnaorinetinfo_spec.rb +0 -8
  437. data/spec/hg19/{netanocar1_spec.rb → netanocar2_spec.rb} +2 -2
  438. data/spec/hg19/{netbostau4_spec.rb → netbostau6_spec.rb} +2 -2
  439. data/spec/hg19/{netxentro2_spec.rb → netxentro3_spec.rb} +2 -2
  440. data/spec/hg19/sibtxgraph_spec.rb +0 -8
  441. data/spec/hg19/snp132_spec.rb +9 -0
  442. data/spec/hg19/xenorefflat_spec.rb +0 -8
  443. data/spec/hg19/xenorefgene_spec.rb +0 -8
  444. data/spec/hg19/xenorefseqali_spec.rb +0 -8
  445. data/spec/mm9_spec.rb +32 -32
  446. data/spec/ornana1_spec.rb +12 -12
  447. data/spec/{named_scope_spec.rb → relation_objects_spec.rb} +14 -0
  448. data/spec/rhemac2_spec.rb +16 -6
  449. data/spec/rn4_spec.rb +12 -12
  450. data/spec/spec_helper.rb +3 -1
  451. data/spec/susscr2_spec.rb +6 -6
  452. data/spec/taegut1_spec.rb +8 -8
  453. data/spec/xentro2_spec.rb +6 -6
  454. metadata +63 -138
  455. data/README.rdoc +0 -202
  456. data/lib/bio-ucsc/ailmel1/db_connection.rb +0 -57
  457. data/lib/bio-ucsc/anocar2/db_connection.rb +0 -57
  458. data/lib/bio-ucsc/anogam1/db_connection.rb +0 -57
  459. data/lib/bio-ucsc/aplcal1/db_connection.rb +0 -57
  460. data/lib/bio-ucsc/bostau4/db_connection.rb +0 -57
  461. data/lib/bio-ucsc/braflo1/db_connection.rb +0 -57
  462. data/lib/bio-ucsc/caejap1/db_connection.rb +0 -57
  463. data/lib/bio-ucsc/caepb2/db_connection.rb +0 -57
  464. data/lib/bio-ucsc/caerem3/db_connection.rb +0 -57
  465. data/lib/bio-ucsc/caljac3/db_connection.rb +0 -55
  466. data/lib/bio-ucsc/canfam2/db_connection.rb +0 -57
  467. data/lib/bio-ucsc/cavpor3/db_connection.rb +0 -57
  468. data/lib/bio-ucsc/cb3/db_connection.rb +0 -57
  469. data/lib/bio-ucsc/ce6/db_connection.rb +0 -55
  470. data/lib/bio-ucsc/ci2/db_connection.rb +0 -55
  471. data/lib/bio-ucsc/danrer7/db_connection.rb +0 -57
  472. data/lib/bio-ucsc/dm3/db_connection.rb +0 -55
  473. data/lib/bio-ucsc/dp3/db_connection.rb +0 -57
  474. data/lib/bio-ucsc/droana2/db_connection.rb +0 -57
  475. data/lib/bio-ucsc/droere1/db_connection.rb +0 -57
  476. data/lib/bio-ucsc/drogri1/db_connection.rb +0 -57
  477. data/lib/bio-ucsc/dromoj2/db_connection.rb +0 -57
  478. data/lib/bio-ucsc/droper1/db_connection.rb +0 -57
  479. data/lib/bio-ucsc/drosec1/db_connection.rb +0 -57
  480. data/lib/bio-ucsc/drosim1/db_connection.rb +0 -57
  481. data/lib/bio-ucsc/drovir2/db_connection.rb +0 -57
  482. data/lib/bio-ucsc/droyak2/db_connection.rb +0 -57
  483. data/lib/bio-ucsc/equcab2/db_connection.rb +0 -57
  484. data/lib/bio-ucsc/felcat4/db_connection.rb +0 -57
  485. data/lib/bio-ucsc/fr2/db_connection.rb +0 -57
  486. data/lib/bio-ucsc/galgal3/db_connection.rb +0 -57
  487. data/lib/bio-ucsc/gasacu1/db_connection.rb +0 -57
  488. data/lib/bio-ucsc/go/db_connection.rb +0 -55
  489. data/lib/bio-ucsc/hg18/db_connection.rb +0 -59
  490. data/lib/bio-ucsc/hg19/db_connection.rb +0 -61
  491. data/lib/bio-ucsc/hgfixed/db_connection.rb +0 -55
  492. data/lib/bio-ucsc/loxafr3/db_connection.rb +0 -57
  493. data/lib/bio-ucsc/mm9/chainanocar1.rb +0 -79
  494. data/lib/bio-ucsc/mm9/chainanocar1link.rb +0 -79
  495. data/lib/bio-ucsc/mm9/chainbostau4.rb +0 -79
  496. data/lib/bio-ucsc/mm9/chainbostau4link.rb +0 -79
  497. data/lib/bio-ucsc/mm9/chainpantro2.rb +0 -81
  498. data/lib/bio-ucsc/mm9/chainpantro2link.rb +0 -82
  499. data/lib/bio-ucsc/mm9/chainxentro2.rb +0 -81
  500. data/lib/bio-ucsc/mm9/chainxentro2link.rb +0 -81
  501. data/lib/bio-ucsc/mm9/db_connection.rb +0 -55
  502. data/lib/bio-ucsc/mondom5/db_connection.rb +0 -57
  503. data/lib/bio-ucsc/ornana1/db_connection.rb +0 -57
  504. data/lib/bio-ucsc/orycun2/db_connection.rb +0 -57
  505. data/lib/bio-ucsc/orylat2/db_connection.rb +0 -55
  506. data/lib/bio-ucsc/oviari1/db_connection.rb +0 -57
  507. data/lib/bio-ucsc/pantro3/db_connection.rb +0 -55
  508. data/lib/bio-ucsc/petmar1/db_connection.rb +0 -57
  509. data/lib/bio-ucsc/ponabe2/db_connection.rb +0 -55
  510. data/lib/bio-ucsc/pripac1/db_connection.rb +0 -57
  511. data/lib/bio-ucsc/proteome/db_connection.rb +0 -59
  512. data/lib/bio-ucsc/rhemac2/chainpantro2.rb +0 -81
  513. data/lib/bio-ucsc/rhemac2/chainpantro2link.rb +0 -81
  514. data/lib/bio-ucsc/rhemac2/db_connection.rb +0 -55
  515. data/lib/bio-ucsc/rn4/chainbostau3.rb +0 -79
  516. data/lib/bio-ucsc/rn4/chainbostau3link.rb +0 -79
  517. data/lib/bio-ucsc/rn4/chainxentro2.rb +0 -81
  518. data/lib/bio-ucsc/rn4/chainxentro2link.rb +0 -81
  519. data/lib/bio-ucsc/rn4/db_connection.rb +0 -55
  520. data/lib/bio-ucsc/saccer2/db_connection.rb +0 -55
  521. data/lib/bio-ucsc/strpur2/chaingalgal3.rb +0 -81
  522. data/lib/bio-ucsc/strpur2/chaingalgal3link.rb +0 -81
  523. data/lib/bio-ucsc/strpur2/chainhg18.rb +0 -81
  524. data/lib/bio-ucsc/strpur2/chainhg18link.rb +0 -81
  525. data/lib/bio-ucsc/strpur2/chainmm9.rb +0 -81
  526. data/lib/bio-ucsc/strpur2/chainmm9link.rb +0 -81
  527. data/lib/bio-ucsc/strpur2/chainpetmar1.rb +0 -81
  528. data/lib/bio-ucsc/strpur2/chainpetmar1link.rb +0 -81
  529. data/lib/bio-ucsc/strpur2/db_connection.rb +0 -57
  530. data/lib/bio-ucsc/strpur2/gap.rb +0 -81
  531. data/lib/bio-ucsc/strpur2/gold.rb +0 -81
  532. data/lib/bio-ucsc/susscr2/db_connection.rb +0 -57
  533. data/lib/bio-ucsc/taegut1/db_connection.rb +0 -57
  534. data/lib/bio-ucsc/tetnig2/db_connection.rb +0 -57
  535. data/lib/bio-ucsc/uniprot/db_connection.rb +0 -59
  536. data/lib/bio-ucsc/visigene/db_connection.rb +0 -55
  537. data/lib/bio-ucsc/xentro2/chaingalgal3.rb +0 -81
  538. data/lib/bio-ucsc/xentro2/chaingalgal3link.rb +0 -81
  539. data/lib/bio-ucsc/xentro2/db_connection.rb +0 -57
  540. data/lib/bio-ucsc/xentro2/est.rb +0 -81
  541. data/lib/bio-ucsc/xentro2/gap.rb +0 -81
  542. data/lib/bio-ucsc/xentro2/gold.rb +0 -81
  543. data/lib/bio-ucsc/xentro2/intronest.rb +0 -81
  544. data/lib/bio-ucsc/xentro2/mrna.rb +0 -81
  545. data/lib/bio-ucsc/xentro2/rmsk.rb +0 -78
  546. data/spec/hg19/chainaplcal1_spec.rb +0 -16
  547. data/spec/hg19/netaplcal1_spec.rb +0 -16
data/Gemfile CHANGED
@@ -2,10 +2,11 @@ source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
- gem "activerecord", "~> 3.0.7"
6
- gem "activesupport", "~> 3.0.7"
5
+ gem "activerecord", ">= 3.0.7"
6
+ gem "activesupport", ">= 3.0.7"
7
7
  gem "mysql", "~> 2.8.1"
8
8
  gem "bio-genomic-interval", ">= 0.1.2"
9
+ gem "safe_attributes", ">= 1.0.8"
9
10
 
10
11
  # Add dependencies to develop your gem here.
11
12
  # Include everything needed to run rake, tests, features, etc.
@@ -13,7 +14,7 @@ group :development do
13
14
  gem "rspec", "~> 2.5.0"
14
15
  gem "bundler", "~> 1.0.0"
15
16
  gem "jeweler", "~> 1.5.2"
16
- gem "rcov", ">= 0"
17
+ gem "simplecov", :require => false, :group => :test
17
18
  gem "bio", ">= 1.4.1"
18
19
  gem "rdoc", ">= 3.9.1"
19
20
  end
@@ -1,31 +1,34 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (3.0.10)
5
- activesupport (= 3.0.10)
6
- builder (~> 2.1.2)
7
- i18n (~> 0.5.0)
8
- activerecord (3.0.10)
9
- activemodel (= 3.0.10)
10
- activesupport (= 3.0.10)
11
- arel (~> 2.0.10)
12
- tzinfo (~> 0.3.23)
13
- activesupport (3.0.10)
14
- arel (2.0.10)
4
+ activemodel (3.2.1)
5
+ activesupport (= 3.2.1)
6
+ builder (~> 3.0.0)
7
+ activerecord (3.2.1)
8
+ activemodel (= 3.2.1)
9
+ activesupport (= 3.2.1)
10
+ arel (~> 3.0.0)
11
+ tzinfo (~> 0.3.29)
12
+ activesupport (3.2.1)
13
+ i18n (~> 0.6)
14
+ multi_json (~> 1.0)
15
+ arel (3.0.0)
15
16
  bio (1.4.2)
16
17
  bio-genomic-interval (0.1.2)
17
- builder (2.1.2)
18
+ builder (3.0.0)
18
19
  diff-lcs (1.1.3)
19
20
  git (1.2.5)
20
- i18n (0.5.0)
21
+ i18n (0.6.0)
21
22
  jeweler (1.5.2)
22
23
  bundler (~> 1.0.0)
23
24
  git (>= 1.2.5)
24
25
  rake
26
+ json (1.6.5)
27
+ multi_json (1.0.4)
25
28
  mysql (2.8.1)
26
- rake (0.9.2)
27
- rcov (0.9.10)
28
- rdoc (3.9.4)
29
+ rake (0.9.2.2)
30
+ rdoc (3.12)
31
+ json (~> 1.4)
29
32
  rspec (2.5.0)
30
33
  rspec-core (~> 2.5.0)
31
34
  rspec-expectations (~> 2.5.0)
@@ -34,19 +37,27 @@ GEM
34
37
  rspec-expectations (2.5.0)
35
38
  diff-lcs (~> 1.1.2)
36
39
  rspec-mocks (2.5.0)
37
- tzinfo (0.3.29)
40
+ safe_attributes (1.0.8)
41
+ activerecord (>= 3.0.0)
42
+ activesupport (>= 3.0.0)
43
+ simplecov (0.5.4)
44
+ multi_json (~> 1.0.3)
45
+ simplecov-html (~> 0.5.3)
46
+ simplecov-html (0.5.3)
47
+ tzinfo (0.3.31)
38
48
 
39
49
  PLATFORMS
40
50
  ruby
41
51
 
42
52
  DEPENDENCIES
43
- activerecord (~> 3.0.7)
44
- activesupport (~> 3.0.7)
53
+ activerecord (>= 3.0.7)
54
+ activesupport (>= 3.0.7)
45
55
  bio (>= 1.4.1)
46
56
  bio-genomic-interval (>= 0.1.2)
47
57
  bundler (~> 1.0.0)
48
58
  jeweler (~> 1.5.2)
49
59
  mysql (~> 2.8.1)
50
- rcov
51
60
  rdoc (>= 3.9.1)
52
61
  rspec (~> 2.5.0)
62
+ safe_attributes (>= 1.0.8)
63
+ simplecov
@@ -0,0 +1,224 @@
1
+ # bio-ucsc-api version 0.4.0
2
+
3
+ **The Ruby UCSC API**: accessing the UCSC Genome Database using Ruby.
4
+
5
+ Your comments, suggestions and requests are welcome. Documentation and
6
+ feedback are available at the UserEcho site at
7
+ http://rubyucscapi.userecho.com/.
8
+
9
+ # Install
10
+
11
+ ```bash
12
+ $ gem install bio-ucsc-api
13
+ ```
14
+
15
+ # Features
16
+
17
+ * Supporting all organisms in the UCSC genome database.
18
+ * Using ActiveRecord as an O/R mapping framework. Basically, each tables can access using ActiveRecord method convention.
19
+ * Using the Bin index system to improve query performance. This is one of the reason why you use Ruby UCSC API instead of submitting SQL queries directly.
20
+ * Supporting genomic sequence query using locally downloaded "2bit" files. Genomic sequences are not stored in UCSC's official MySQL database.
21
+ * Automatic conversion of "1-based full-closed intervals" to internal "0-based left-closed right-open intervals" (see also bioruby-genomic-interval)
22
+ * Supporting non-official full/partial mirror MySql hosts (e.g. local servers)
23
+ * Using Rspec for the testing framework
24
+ * Written in pure Ruby and supporting multiple Ruby interpreter implementations including Ruby1.8, Ruby1.9, and JRuby1.6
25
+ * Designed as a BioRuby plugin
26
+ * Current version does not support table-linked bigWIG/bigBED/BAM files.
27
+
28
+ # Supported databases (genome assemblies)
29
+
30
+ * **human** Hg19, Hg18
31
+ * **mammals** chimp (PanTro3), orangutan (PonAbe2), rhesus (RheMac2), marmoset (CalJac3), mouse (Mm9), rat (Rn4), guinea pig (CavPor3), rabbit (OryCun2), cat (FelCat4), panda (AilMel1), dog (CanFam2), horse (EquCab2), pig (SusScr2), sheep (OviAri1), cow (BosTau4), elephant (LoxAfr3), opossum (MonDom5), platypus (OrnAna1)
32
+ * **vertebrates** chicken (GalGal3), zebra finch (TaeGut1), lizard (AnoCar2), X. tropicalis (XenTro2), zebrafish (DanRer7), tetraodon (TetNig2), fugu (Fr2), stickleback (GasAcu1), medaka (OryLat2), lamprey (PetMar1)
33
+ * **deuterostomes** lancelet (BraFlo1), sea squirt (Ci2), sea urchin (StrPur2)
34
+ [insects] D.melanogaster (Dm3), D.simulans (DroSim1), D.sechellia (DroSec1), D.yakuba (DroYak2), D.erecta (DroEre1), D.ananassae (DroAna2), D.pseudoobscura (Dp3), D.persimilis (DroPer1), D.virilis (DroVir2), D.mojavensis (DroMoj2), D.grimshawi (DroGri1), Anopheles mosquito (AnoGam1), honey bee (ApiMel2)
35
+ * **nematodes** C.elegans (Ce6), C.brenneri (CaePb3), C.briggsae (Cb3), C.remanei (CaeRem3), C.japonica (CaeJap1), P.pacificus (PriPac1)
36
+ * **others** sea hare (AplCal1), yeast (SacCer2)
37
+ * **genome assembly independent** Go, HgFixed, Proteome, UniProt, VisiGene
38
+
39
+ # Implementation
40
+ This package is based on the followings:
41
+
42
+ * original ruby-ucsc-api: https://github.com/jandot/ruby-ucsc-api
43
+ * ruby-ensembl-api: https://github.com/jandot/ruby-ensembl-api
44
+
45
+ Supported Ruby interpreter implementations:
46
+
47
+ * Ruby version 1.9.2 or later
48
+ * Ruby version 1.8.7 or later
49
+ * JRuby version 1.6.3 or later - Appropiate Java heap size may have to be specified to invoke JRuby, especially when you use Bio::Ucsc::File::Twobit. Try "jruby -J-Xmx3g your_script.rb" to keep 3G byte heap.
50
+
51
+ Major dependent gems:
52
+
53
+ * active_record - http://api.rubyonrails.org/classes/ActiveRecord/Base.html
54
+ * safe_attributes - https://github.com/bjones/safe_attributes
55
+ * bioruby-genomic-interval - https://github.com/misshie/bioruby-genomic-interval
56
+ * mysql (MySQL/Ruby MySQL API module) - http://www.tmtm.org/mysql/ruby/README.html
57
+
58
+ See also:
59
+
60
+ * **Strozzi F and Aerts J**: A Ruby API to query the Ensembl database for genomic features. *Bioinformatics* 2011, **27**:1013-1014.
61
+ * UCSCBin library - https://github.com/misshie/UCSCBin
62
+
63
+ # Change Log
64
+ * **UPDATE** (v0.4.0): now `<TABLE>#find_by_interval` accepts both "chr1:123-456" and Bio::GenomicInterval objects
65
+ * **BUG-FIX** (v0.4.0): By using the safe_attribute gem, newest version of ActiveRecord is supported.
66
+ * **UPDATE** (v0.4.0): `Bio::Ucsc::Reference` is moved to `Bio::Ucsc::File::Twobit` (backward compatibility is kept). `Bio::Ucsc::File::Twobit.open` and `Bio::Ucsc::File::Twobit#subseq` is are introduced.
67
+ * **UPDATE** (v0.4.0): `<DB_NAME>::DBConnection.connect` is simplified by the new `<DB_NAME>.connect` class method (backward compatibility is kept). Server parameters can be defined by using a hash being an argument of the method.
68
+ * **UPDATE** (v0.3.2): Genomic interval queries are implemented using ARel's relation objects instead of (named) scopes. Usage of the API is not changed.
69
+ * **BUG** (v0.3.1): Does not work with ActiveRecord version 3.1.0. Data retrieval methods occur the error, "(Object doesn't support #inspect)". The author is working on this bug. So far, please use version 3.0 seriese. Gemfile for gem dependencies is updated. Thanks for bug reports from Diego F. Pereira.
70
+ * **BUG-FIX** (v0.3.1): "func" fields in tables did not work. The bug was fixed.
71
+ * **BUG-FIX** (v0.3.1): PredGene-type tables without the bin index did not work. The bug was fixed.
72
+ * **NEW** (v0.3.0): Now genomic interval queries are expressed using the named scope "with_interval". 'Table#find_(all_)by_interval' is now deprecated. Sorry for an inconstant API. However, this change enable combination queries using genomic intervals and any fields.
73
+ * **NEW** (v0.3.0): `Bio::GenomicInterval#bin_all` and `Bio::GenomicInterval#bin` return the bin index for the given interval.
74
+ * **NEW** (v0.3.0): Supporting JRuby 1.6.3 or later. Appropiate Java heap size may have to be specified to invoke JRuby, especially when you use `Bio::Ucsc::Reference`. Try `jruby -J-Xmx3g your_script.rb` to keep 3G byte heap.
75
+ * **NEW** (v0.2.1): New genome assemblies are supported: [chimp] PanTro3, [orangutan] PonAbe2, [rhesus] RheMac2, [marmoset] CalJac3, [rat] Rn4, [guinea pig] CavPor3, [rabbit] OryCun2, [cat] FelCat4, [panda] AilMel1, [Dog] CanFam2, [horse] EquCab2, [pig] SusScr2, [sheep] OviAri1, [cow] BosTau4, [elephant] LoxAfr3, [opossum] MonDom5, [platypus] OrnAna1, [chicken] GalGal3, [zebra finch] TaeGut1, [lizard] AnoCar2, [X. tropicalis] XenTro2, [zebrafish] DanRer7, [tetraodon] TetNig2, [fugu] Fr2, [stickleback] GasAcu1, [medaka] OryLat2, [lamprey] PerMar1, [lancelet] BraFlo1, [sea squirt] Ci2, [sea urchin] StrPur2, [D.simulans] DroSim1, [D.sechellia] DroSec1, [D.yakuba] DroYak2, [D.electa] DroEre1, [D.ananassae] DroAna2, [D.pseudoobscura] Dp3, [D.persimilis] DroPer1, [D. virilis] DroVir2, [D.mojavensis] DroMoj2, [D.grimshawi] DroGri1, [Anopheles mosquito] AnoGam1, [honey bee] ApiMel2, [C.brenneri] CaePb3, [C.briggsae] Cb3, [C.remanei] CaeRem3, [P.pacificus] PriPac1, [sea hare] AplCal1, [yeast] SacCer2
76
+ * **NEW** (v0.2.1): Supporting Ruby 1.8.7 or later
77
+ * **NEW** Adding to human Hg19 and Hg18, the following genome assemblies are supported: [mouse] Mm9, [fruitfly] Dm3, [C. elegans] Ce6, [genome assembly independent] Go, HgFixed, Proteome, UniProt, VisiGene
78
+ * **UPDATE** (v0.2.0): Internal table class mapping algorithm are changed. Now table types are automatically detected and dynamically defined as classes. Previous versions used static class definition for all tables.
79
+ * **MODIFIED** (v0.2.0): Bio::Ucsc::[Hg18|Hg19]::ReferenceSequence are removed. Use Bio::Ucsc::Reference instead. This class is more object-oriented.
80
+ * **MODIFIED** (v0.1.0): The name of this library is now "Ruby UCSC API". The RubyGem name and the GitHub account and the library name are not changed.
81
+ * **MODIFIED** (v0.1.0): `Bio::Ucsc::[Hg18|Hg19]::Reference` is replaced by `Bio::Ucsc::[Hg18|Hg19]::ReferenceSequence`.
82
+ * **UPDATE** (v0.0.5): Almost all hg18 tables are supported.
83
+ * **UPDATE** (v0.0.5): find_by_interval and find_all_by_interval class methods accept the "partial" option. Default is true. When "partial: false" is opted, return value will be only fully-included (non-partially-included) records.
84
+ * **UPDATE** (v0.0.4): Almost all hg19 tables are supported. "filename" tables in ENCODE dataset are omitted. Each of them contains only single record of a path to the raw data file. Definitions of table relations are incomplete.
85
+ * **NEW** (v0.0.3): Supporting locally-stored '2bit' files, which can be downloaded from the UCSC site, to retrieve referential sequence. Now supporting unknown "N" nucleotide blocks, however, "mask-blocks", which are shown in lower-case in UCSC's DNA function, are not supported yet.
86
+ * **MODIFIED** (v0.0.3): For the "TABLE" class and the "column" column, `<TABLE>.find_by_column` retrieves a first record, and `<TABLE>.find_all_by_column` retrieves all the records as an Array.
87
+ * **NEW** (v0.0.3-0.0.4): Supporting tables divided into each chromosome, such as "*_RmsK" and "*_gold". Actual names of them are like "chr1_Rmsk", "chr2_Rmsk"... They can be accessed without chromosome names; but with just like "Rmsk" and "Gold".
88
+
89
+ # How to Use
90
+ ## Basics
91
+ * A database of a genome assembly is represented as a module in the `Bio::Ucsc module`. For example, human hg19 database is referred by `Bio::Ucsc::Hg19`.
92
+ * Before using a database, establish a connection to the database. For example, `Bio::Ucsc::Hg19::DBConnection.connect`.
93
+ * A table in a database is represented as a class in the database module. For example, the snp132 table in the hg19 database is referred by `Bio::Ucsc::Hg19::Snp132`.
94
+ * Queries to a field (column) in a table are represented by class methods of the table class. For example, finding the first record (row) of the snp132 table in the hg19 database is `Bio::Ucsc::Hg19::Snp132.first`.
95
+ * Queries using genomic intervals are supported by the named scope ".with_intervals" and ".with_intervals_excl (omitting pertially included annotations)" method of the table class. These methods accept a genomic interval string like "chr1:1233-5678". If a table to query has the "bin" column, the bin index system is automatically used to speed-up the query.
96
+ * Fields in a retrieved record can be acccessed by using instance methods of a record object. For example, the name field of a table record stored in the "result" variable is "result.name".
97
+
98
+ ## Sample Codes
99
+ At first, you have to declare the API and establish the connection to a database.
100
+
101
+ ```ruby
102
+ require 'bio-ucsc'
103
+
104
+ include Bio # shorthand for ommitting the "Bio::" prefix
105
+ Ucsc::Hg19.connect
106
+ ```
107
+
108
+ Table search using genomic intervals:
109
+
110
+ ```ruby
111
+ Ucsc::Hg19::Snp131.with_interval("chr1:1-11,000").find(:all).each do |e|
112
+ i = GenomicInterval.zero_based(e.chrom, e.chromStart, e.chromEnd)
113
+ puts "#{i.chrom}\t#{i.chr_start}\t#{e.name}\t#{e[:class]}" # "e.class" does not work
114
+ end
115
+
116
+ gi = "chr17:7,579,614-7,579,700"
117
+ puts Ucsc::Hg19::Snp131.with_interval(gi).find(:all)
118
+
119
+ puts Ucsc::Hg19::Snp131.with_interval_excl(gi).find(:all)
120
+
121
+ relation = Ucsc::Hg19::Snp131.with_interval(gi).select(:name)
122
+ puts relation.to_sql
123
+ # => SELECT name FROM `snp131`
124
+ WHERE (chrom = 'chr17' AND bin in (642,80,9,1,0)
125
+ AND ((chromStart BETWEEN 7579613 AND 7579700) AND
126
+ (chromEnd BETWEEN 7579613 AND 7579700)))"
127
+ puts relation.find_all_by_class_and_strand("in-del", "+").size # => 1
128
+
129
+ puts Ucsc::Hg19::Snp131.find_by_name("rs56289060")
130
+ ```
131
+
132
+ Sometimes, queries using raw SQLs provide elegant solutions.
133
+
134
+ ```ruby
135
+ sql << 'SQL'
136
+ SELECT name,chrom,chromStart,chromEnd,observed
137
+ FROM snp131
138
+ WHERE name="rs56289060"
139
+ SQL
140
+ puts Ucsc::Hg19::Snp131.find_by_sql(sql)
141
+ ```
142
+
143
+ retrieve reference sequence from a locally-stored 2bit file. The "hg19.2bit" file can be downloaded from http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/hg19.2bit
144
+
145
+ ```ruby
146
+ hg19ref = Ucsc::File::Twobit.load("hg19.2bit")
147
+ puts hg19ref.find_by_interval("chr1:9,500-10,999")
148
+
149
+ # another way to access a twobit file
150
+ puts Ucsc::File::Twobit.open("hg19.2bit"){|tb|tb.find_by_interval("chr1:9,500-10,999")}
151
+ ```
152
+
153
+ Connetcting to non-official or local full/partial mirror MySQL servers
154
+
155
+ ```ruby
156
+ Ucsc::Hg18.connect { :db_host = 'localhost',
157
+ :db_username = 'genome',
158
+ :db_password = '' }
159
+
160
+ Ucsc::Hg18.default # reset to connect UCSC's public MySQL sever
161
+ Ucsc::Hg18.connect
162
+ ```
163
+
164
+ And see also sample scripts in the samples directory.
165
+
166
+ * **num-gene-exon.rb** - calculation of total number of genes and exons using genomic interval
167
+ * **symbol2summary.rb** - getting summary descriptions using gene symbol
168
+ * **hg19-2bit-retrieve.rb** - outputting reference sequence in FASTA format
169
+ * **bed2refseq.rb** - getting unique gene symbols in the genomic intervals in a BED file.
170
+ * **snp2gene.rb** - sample for retrieving fields from associated tables
171
+
172
+ ## Notes of Exceptions in Table Support
173
+ * Table names starting with a number: Because Ruby class names cannot start with number, use the table class name starting with "T" (T for Table). Thus, the "2micron_est" table is supported by the "T2micron_est" class.
174
+ * Table names starting with uppercase character: Classes for "HInv" and "NIAGene" tables are "HInv" and "NIAGene", respectively
175
+ * Accessing chromosome-specific tables: For example, the 'rmsk' table in hg18 is actually separated into 'chr1_rmsk', 'chr2_rmsk'... There is two way to access to them. (1) Accessing separated tables directly. There is no difference from other regular tables. However, you have to manage each separated tables. (2) Use abstract table classes (e.g., 'Rmsk') and their class methods ".find_by_interval' or '.find_all_by_interval'. These methods look for correspondent separated tables automatically. However, you cannot combine with other 'find_by_[field]' methods. Moreover, if you have to perform single- or multi-chromosomal search, you have to access separated tables individually and integrate results by yourself. Fortunately, recent databases, including hg19, seem not to use chromosome-specific tables.
176
+ * For honey bee ApiMel2 database, Group*_chainDm2 and Group*_chainDm2Link tables are accessible using find(_all)_by_interval class methods of the ChainDm2 and ChainDm2Link classes.
177
+ * Special field (column) names: Field names such as 'attribute', 'valid', 'validate', 'class', 'method', 'methods', and 'type' cannot be accessed using instance methods. This restriction is because of the collision of method names that are internally used by ActiveRecord. Instead, use hash to access the field like "result[:type]".
178
+
179
+ ## Details in "with_interval"
180
+ * When a table class is referred first time, the API prefetches the table to get a list of fields and dynamically defines a class using following algorithm.
181
+ * If chrom/chromStart/chromEnd fields exist (BED table), the API uses them for interval queries.
182
+ * When tName/tStart/tEnd fields exist (PSL table), the API uses them for interval queries.
183
+ * When chrom/txStart/txEnd fields exist (genePred table), the API uses them for interval queries.
184
+ * When genoName/genoStart/genoEnd fields exist (RMSK table), the API uses them for interval queries.
185
+ * If the table has the "bin" column, the API calculate bin index to build a query.
186
+ * Otherwise, the API does not support interval queries but support only ActiveRecord's standard methods such as "find_(all_)by_[field name]".
187
+
188
+ ## Table Associations
189
+ See samples/snp2gene.rb. Association definitions using `has_one`/`has_many` methods are shown below. `class_eval` is used not to replace but to add definition.
190
+
191
+ ```ruby
192
+ Bio::Ucsc::Hg19::KnownGene.class_eval do
193
+ has_one :knownToEnsembl, {:primary_key => :name, :foreign_key => :name}
194
+ end
195
+ Bio::Ucsc::Hg19::KnownToEnsembl.class_eval do
196
+ has_one :ensGtp, {:primary_key => :value, :foreign_key => :transcript}
197
+ has_one :kgXref, {:primary_key => :name, :foreign_key => :kgID}
198
+ end
199
+ Bio::Ucsc::Hg19::KgXref.class_eval do
200
+ has_one :refLink, {:primary_key => :mRNA, :foreign_key => :mrnaAcc}
201
+ end
202
+ ```
203
+ And fields can be referred like the followings:
204
+
205
+ ```ruby
206
+ kg.knownToEnsembl.ensGtp.gene
207
+ kg.knownToEnsembl.kgXref.geneSymbol
208
+ kg.knownToEnsembl.kgXref.refLink.mrnaAcc
209
+ ```
210
+ `ActiveRecord::Base#find` can be used with the :include option to perform "eager fetching" to reduce number of SQL statement submission.
211
+
212
+ ```ruby
213
+ kg = Bio::Ucsc::Hg19::KnownGene.with_interval(gi).
214
+ find(:first,
215
+ :include => [:knownToEnsembl => :ensGtp,
216
+ :knownToEnsembl => {:kgXref => :refLink}])
217
+ ```
218
+
219
+ # Copyright
220
+ **Copyright**: (c) 2011-2012 MISHIMA, Hiroyuki (missy at be.to / hmishima at nagasaki-u.ac.jp / @mishimahryk in Twitter)
221
+
222
+ **Copyright**: (c) 2010 Jan Aerts
223
+
224
+ **License**: Ruby license (Ruby's / GPLv2 dual). See COPYING and COPYING.ja for further details..
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
+
3
4
  begin
4
5
  Bundler.setup(:default, :development)
5
6
  rescue Bundler::BundlerError => e
@@ -7,9 +8,10 @@ rescue Bundler::BundlerError => e
7
8
  $stderr.puts "Run `bundle install` to install missing gems"
8
9
  exit e.status_code
9
10
  end
10
- require 'rake'
11
11
 
12
+ require 'rake'
12
13
  require 'jeweler'
14
+
13
15
  Jeweler::Tasks.new do |gem|
14
16
  # gem is a Gem::Specification...
15
17
  # see http://docs.rubygems.org/read/chapter/20 for more options
@@ -40,13 +42,6 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
40
42
  spec.pattern = FileList['spec/**/*_spec.rb']
41
43
  end
42
44
 
43
- RSpec::Core::RakeTask.new(:rcov) do |spec|
44
- spec.pattern = 'spec/**/*_spec.rb'
45
- spec.rcov = true
46
- end
47
-
48
- task :default => :spec
49
-
50
45
  # require 'rake/rdoctask'
51
46
  require 'rdoc/task'
52
47
  # Rake::RDocTask.new do |rdoc|
@@ -58,3 +53,5 @@ RDoc::Task.new do |rdoc|
58
53
  rdoc.rdoc_files.include('README*')
59
54
  rdoc.rdoc_files.include('lib/**/*.rb')
60
55
  end
56
+
57
+ task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.4.0
@@ -4,36 +4,33 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{bio-ucsc-api}
8
- s.version = "0.3.1"
7
+ s.name = "bio-ucsc-api"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Hiroyuki Mishima}, %q{Jan Aerts}]
12
- s.date = %q{2011-09-06}
13
- s.description = %q{Ruby UCSC API: accessing the UCSC Genome Database using Ruby}
14
- s.email = %q{missy@be.to}
11
+ s.authors = ["Hiroyuki Mishima", "Jan Aerts"]
12
+ s.date = "2012-03-07"
13
+ s.description = "Ruby UCSC API: accessing the UCSC Genome Database using Ruby"
14
+ s.email = "missy@be.to"
15
15
  s.extra_rdoc_files = [
16
- "README.rdoc"
16
+ "README.md"
17
17
  ]
18
18
  s.files = [
19
19
  "COPYING",
20
20
  "COPYING.ja",
21
21
  "Gemfile",
22
22
  "Gemfile.lock",
23
- "README.rdoc",
23
+ "README.md",
24
24
  "Rakefile",
25
25
  "VERSION",
26
26
  "bio-ucsc-api.gemspec",
27
27
  "lib/bio-ucsc-api.rb",
28
28
  "lib/bio-ucsc.rb",
29
29
  "lib/bio-ucsc/ailmel1.rb",
30
- "lib/bio-ucsc/ailmel1/db_connection.rb",
31
30
  "lib/bio-ucsc/anocar2.rb",
32
- "lib/bio-ucsc/anocar2/db_connection.rb",
33
31
  "lib/bio-ucsc/anogam1.rb",
34
32
  "lib/bio-ucsc/anogam1/chaindm3.rb",
35
33
  "lib/bio-ucsc/anogam1/chaindm3link.rb",
36
- "lib/bio-ucsc/anogam1/db_connection.rb",
37
34
  "lib/bio-ucsc/anogam1/est.rb",
38
35
  "lib/bio-ucsc/anogam1/gap.rb",
39
36
  "lib/bio-ucsc/anogam1/gold.rb",
@@ -43,7 +40,6 @@ Gem::Specification.new do |s|
43
40
  "lib/bio-ucsc/apimel2.rb",
44
41
  "lib/bio-ucsc/apimel2/chaindm2.rb",
45
42
  "lib/bio-ucsc/apimel2/chaindm2link.rb",
46
- "lib/bio-ucsc/apimel2/db_connection.rb",
47
43
  "lib/bio-ucsc/aplcal1.rb",
48
44
  "lib/bio-ucsc/aplcal1/chaincaepb1.rb",
49
45
  "lib/bio-ucsc/aplcal1/chaincaepb1link.rb",
@@ -53,12 +49,10 @@ Gem::Specification.new do |s|
53
49
  "lib/bio-ucsc/aplcal1/chaincb3link.rb",
54
50
  "lib/bio-ucsc/aplcal1/chaince6.rb",
55
51
  "lib/bio-ucsc/aplcal1/chaince6link.rb",
56
- "lib/bio-ucsc/aplcal1/db_connection.rb",
57
52
  "lib/bio-ucsc/aplcal1/gap.rb",
58
53
  "lib/bio-ucsc/aplcal1/gold.rb",
59
54
  "lib/bio-ucsc/aplcal1/rmsk.rb",
60
55
  "lib/bio-ucsc/bostau4.rb",
61
- "lib/bio-ucsc/bostau4/db_connection.rb",
62
56
  "lib/bio-ucsc/braflo1.rb",
63
57
  "lib/bio-ucsc/braflo1/chaingalgal3.rb",
64
58
  "lib/bio-ucsc/braflo1/chaingalgal3link.rb",
@@ -68,29 +62,24 @@ Gem::Specification.new do |s|
68
62
  "lib/bio-ucsc/braflo1/chainmm9link.rb",
69
63
  "lib/bio-ucsc/braflo1/chainpetmar1.rb",
70
64
  "lib/bio-ucsc/braflo1/chainpetmar1link.rb",
71
- "lib/bio-ucsc/braflo1/db_connection.rb",
72
65
  "lib/bio-ucsc/braflo1/gap.rb",
73
66
  "lib/bio-ucsc/braflo1/gold.rb",
74
67
  "lib/bio-ucsc/caejap1.rb",
75
68
  "lib/bio-ucsc/caejap1/chaince6.rb",
76
69
  "lib/bio-ucsc/caejap1/chaince6link.rb",
77
- "lib/bio-ucsc/caejap1/db_connection.rb",
78
70
  "lib/bio-ucsc/caejap1/gap.rb",
79
71
  "lib/bio-ucsc/caejap1/gold.rb",
80
72
  "lib/bio-ucsc/caepb2.rb",
81
73
  "lib/bio-ucsc/caepb2/chaince6.rb",
82
74
  "lib/bio-ucsc/caepb2/chaince6link.rb",
83
- "lib/bio-ucsc/caepb2/db_connection.rb",
84
75
  "lib/bio-ucsc/caepb2/gap.rb",
85
76
  "lib/bio-ucsc/caepb2/gold.rb",
86
77
  "lib/bio-ucsc/caerem3.rb",
87
78
  "lib/bio-ucsc/caerem3/chaince6.rb",
88
79
  "lib/bio-ucsc/caerem3/chaince6link.rb",
89
- "lib/bio-ucsc/caerem3/db_connection.rb",
90
80
  "lib/bio-ucsc/caerem3/gap.rb",
91
81
  "lib/bio-ucsc/caerem3/gold.rb",
92
82
  "lib/bio-ucsc/caljac3.rb",
93
- "lib/bio-ucsc/caljac3/db_connection.rb",
94
83
  "lib/bio-ucsc/canfam2.rb",
95
84
  "lib/bio-ucsc/canfam2/chainbostau4.rb",
96
85
  "lib/bio-ucsc/canfam2/chainbostau4link.rb",
@@ -100,7 +89,6 @@ Gem::Specification.new do |s|
100
89
  "lib/bio-ucsc/canfam2/chainrn4link.rb",
101
90
  "lib/bio-ucsc/canfam2/chainself.rb",
102
91
  "lib/bio-ucsc/canfam2/chainselflink.rb",
103
- "lib/bio-ucsc/canfam2/db_connection.rb",
104
92
  "lib/bio-ucsc/canfam2/est.rb",
105
93
  "lib/bio-ucsc/canfam2/gap.rb",
106
94
  "lib/bio-ucsc/canfam2/gold.rb",
@@ -108,7 +96,6 @@ Gem::Specification.new do |s|
108
96
  "lib/bio-ucsc/canfam2/mrna.rb",
109
97
  "lib/bio-ucsc/canfam2/rmsk.rb",
110
98
  "lib/bio-ucsc/cavpor3.rb",
111
- "lib/bio-ucsc/cavpor3/db_connection.rb",
112
99
  "lib/bio-ucsc/cb3.rb",
113
100
  "lib/bio-ucsc/cb3/chaincaepb1.rb",
114
101
  "lib/bio-ucsc/cb3/chaincaepb1link.rb",
@@ -118,7 +105,6 @@ Gem::Specification.new do |s|
118
105
  "lib/bio-ucsc/cb3/chaince6link.rb",
119
106
  "lib/bio-ucsc/cb3/chainpripac1.rb",
120
107
  "lib/bio-ucsc/cb3/chainpripac1link.rb",
121
- "lib/bio-ucsc/cb3/db_connection.rb",
122
108
  "lib/bio-ucsc/cb3/est.rb",
123
109
  "lib/bio-ucsc/cb3/gap.rb",
124
110
  "lib/bio-ucsc/cb3/gold.rb",
@@ -138,7 +124,6 @@ Gem::Specification.new do |s|
138
124
  "lib/bio-ucsc/ce6/chainpripac1link.rb",
139
125
  "lib/bio-ucsc/ce6/chainself.rb",
140
126
  "lib/bio-ucsc/ce6/chainselflink.rb",
141
- "lib/bio-ucsc/ce6/db_connection.rb",
142
127
  "lib/bio-ucsc/ce6/est.rb",
143
128
  "lib/bio-ucsc/ce6/gap.rb",
144
129
  "lib/bio-ucsc/ce6/gold.rb",
@@ -147,9 +132,8 @@ Gem::Specification.new do |s|
147
132
  "lib/bio-ucsc/ce6/rmsk.rb",
148
133
  "lib/bio-ucsc/ce6/t25mersrepeats.rb",
149
134
  "lib/bio-ucsc/ci2.rb",
150
- "lib/bio-ucsc/ci2/db_connection.rb",
151
135
  "lib/bio-ucsc/danrer7.rb",
152
- "lib/bio-ucsc/danrer7/db_connection.rb",
136
+ "lib/bio-ucsc/db_connector.rb",
153
137
  "lib/bio-ucsc/dm3.rb",
154
138
  "lib/bio-ucsc/dm3/chainanogam1.rb",
155
139
  "lib/bio-ucsc/dm3/chainanogam1link.rb",
@@ -169,7 +153,6 @@ Gem::Specification.new do |s|
169
153
  "lib/bio-ucsc/dm3/chaindrosim1link.rb",
170
154
  "lib/bio-ucsc/dm3/chaindroyak2.rb",
171
155
  "lib/bio-ucsc/dm3/chaindroyak2link.rb",
172
- "lib/bio-ucsc/dm3/db_connection.rb",
173
156
  "lib/bio-ucsc/dm3/est.rb",
174
157
  "lib/bio-ucsc/dm3/gap.rb",
175
158
  "lib/bio-ucsc/dm3/gold.rb",
@@ -179,7 +162,6 @@ Gem::Specification.new do |s|
179
162
  "lib/bio-ucsc/dp3.rb",
180
163
  "lib/bio-ucsc/dp3/chaindm3.rb",
181
164
  "lib/bio-ucsc/dp3/chaindm3link.rb",
182
- "lib/bio-ucsc/dp3/db_connection.rb",
183
165
  "lib/bio-ucsc/dp3/est.rb",
184
166
  "lib/bio-ucsc/dp3/gap.rb",
185
167
  "lib/bio-ucsc/dp3/gold.rb",
@@ -187,21 +169,14 @@ Gem::Specification.new do |s|
187
169
  "lib/bio-ucsc/dp3/mrna.rb",
188
170
  "lib/bio-ucsc/dp3/rmsk.rb",
189
171
  "lib/bio-ucsc/droana2.rb",
190
- "lib/bio-ucsc/droana2/db_connection.rb",
191
172
  "lib/bio-ucsc/droere1.rb",
192
- "lib/bio-ucsc/droere1/db_connection.rb",
193
173
  "lib/bio-ucsc/drogri1.rb",
194
- "lib/bio-ucsc/drogri1/db_connection.rb",
195
174
  "lib/bio-ucsc/dromoj2.rb",
196
- "lib/bio-ucsc/dromoj2/db_connection.rb",
197
175
  "lib/bio-ucsc/droper1.rb",
198
- "lib/bio-ucsc/droper1/db_connection.rb",
199
176
  "lib/bio-ucsc/drosec1.rb",
200
- "lib/bio-ucsc/drosec1/db_connection.rb",
201
177
  "lib/bio-ucsc/drosim1.rb",
202
178
  "lib/bio-ucsc/drosim1/chaindm3.rb",
203
179
  "lib/bio-ucsc/drosim1/chaindm3link.rb",
204
- "lib/bio-ucsc/drosim1/db_connection.rb",
205
180
  "lib/bio-ucsc/drosim1/est.rb",
206
181
  "lib/bio-ucsc/drosim1/gap.rb",
207
182
  "lib/bio-ucsc/drosim1/gold.rb",
@@ -209,11 +184,9 @@ Gem::Specification.new do |s|
209
184
  "lib/bio-ucsc/drosim1/mrna.rb",
210
185
  "lib/bio-ucsc/drosim1/rmsk.rb",
211
186
  "lib/bio-ucsc/drovir2.rb",
212
- "lib/bio-ucsc/drovir2/db_connection.rb",
213
187
  "lib/bio-ucsc/droyak2.rb",
214
188
  "lib/bio-ucsc/droyak2/chaindm3.rb",
215
189
  "lib/bio-ucsc/droyak2/chaindm3link.rb",
216
- "lib/bio-ucsc/droyak2/db_connection.rb",
217
190
  "lib/bio-ucsc/droyak2/est.rb",
218
191
  "lib/bio-ucsc/droyak2/gap.rb",
219
192
  "lib/bio-ucsc/droyak2/gold.rb",
@@ -221,7 +194,6 @@ Gem::Specification.new do |s|
221
194
  "lib/bio-ucsc/droyak2/mrna.rb",
222
195
  "lib/bio-ucsc/droyak2/rmsk.rb",
223
196
  "lib/bio-ucsc/equcab2.rb",
224
- "lib/bio-ucsc/equcab2/db_connection.rb",
225
197
  "lib/bio-ucsc/equcab2/est.rb",
226
198
  "lib/bio-ucsc/equcab2/gap.rb",
227
199
  "lib/bio-ucsc/equcab2/gold.rb",
@@ -229,7 +201,9 @@ Gem::Specification.new do |s|
229
201
  "lib/bio-ucsc/equcab2/mrna.rb",
230
202
  "lib/bio-ucsc/equcab2/rmsk.rb",
231
203
  "lib/bio-ucsc/felcat4.rb",
232
- "lib/bio-ucsc/felcat4/db_connection.rb",
204
+ "lib/bio-ucsc/file.rb",
205
+ "lib/bio-ucsc/file/bytequeue.rb",
206
+ "lib/bio-ucsc/file/twobit.rb",
233
207
  "lib/bio-ucsc/fr2.rb",
234
208
  "lib/bio-ucsc/fr2/chaingalgal3.rb",
235
209
  "lib/bio-ucsc/fr2/chaingalgal3link.rb",
@@ -239,7 +213,6 @@ Gem::Specification.new do |s|
239
213
  "lib/bio-ucsc/fr2/chainmm9link.rb",
240
214
  "lib/bio-ucsc/fr2/chainorylat2.rb",
241
215
  "lib/bio-ucsc/fr2/chainorylat2link.rb",
242
- "lib/bio-ucsc/fr2/db_connection.rb",
243
216
  "lib/bio-ucsc/fr2/est.rb",
244
217
  "lib/bio-ucsc/fr2/gap.rb",
245
218
  "lib/bio-ucsc/fr2/gold.rb",
@@ -271,7 +244,6 @@ Gem::Specification.new do |s|
271
244
  "lib/bio-ucsc/galgal3/chaintaegut1link.rb",
272
245
  "lib/bio-ucsc/galgal3/chainxentro2.rb",
273
246
  "lib/bio-ucsc/galgal3/chainxentro2link.rb",
274
- "lib/bio-ucsc/galgal3/db_connection.rb",
275
247
  "lib/bio-ucsc/galgal3/est.rb",
276
248
  "lib/bio-ucsc/galgal3/gap.rb",
277
249
  "lib/bio-ucsc/galgal3/gold.rb",
@@ -289,14 +261,13 @@ Gem::Specification.new do |s|
289
261
  "lib/bio-ucsc/gasacu1/chainmm9link.rb",
290
262
  "lib/bio-ucsc/gasacu1/chainorylat2.rb",
291
263
  "lib/bio-ucsc/gasacu1/chainorylat2link.rb",
292
- "lib/bio-ucsc/gasacu1/db_connection.rb",
293
264
  "lib/bio-ucsc/gasacu1/est.rb",
294
265
  "lib/bio-ucsc/gasacu1/intronest.rb",
295
266
  "lib/bio-ucsc/gasacu1/mrna.rb",
296
267
  "lib/bio-ucsc/gasacu1/rmsk.rb",
297
268
  "lib/bio-ucsc/genomic-interval-bin.rb",
269
+ "lib/bio-ucsc/gi.rb",
298
270
  "lib/bio-ucsc/go.rb",
299
- "lib/bio-ucsc/go/db_connection.rb",
300
271
  "lib/bio-ucsc/hg18.rb",
301
272
  "lib/bio-ucsc/hg18/chainanocar1.rb",
302
273
  "lib/bio-ucsc/hg18/chainbostau4.rb",
@@ -324,25 +295,17 @@ Gem::Specification.new do |s|
324
295
  "lib/bio-ucsc/hg18/chaintaegut1.rb",
325
296
  "lib/bio-ucsc/hg18/chaintetnig2.rb",
326
297
  "lib/bio-ucsc/hg18/chainxentro2.rb",
327
- "lib/bio-ucsc/hg18/db_connection.rb",
328
298
  "lib/bio-ucsc/hg18/gap.rb",
329
299
  "lib/bio-ucsc/hg18/gold.rb",
330
300
  "lib/bio-ucsc/hg18/intronest.rb",
331
301
  "lib/bio-ucsc/hg18/rmsk.rb",
332
302
  "lib/bio-ucsc/hg18/rmskrm327.rb",
333
303
  "lib/bio-ucsc/hg19.rb",
334
- "lib/bio-ucsc/hg19/db_connection.rb",
335
304
  "lib/bio-ucsc/hg19/description.rb",
336
305
  "lib/bio-ucsc/hg19/gbcdnainfo.rb",
337
306
  "lib/bio-ucsc/hgfixed.rb",
338
- "lib/bio-ucsc/hgfixed/db_connection.rb",
339
307
  "lib/bio-ucsc/loxafr3.rb",
340
- "lib/bio-ucsc/loxafr3/db_connection.rb",
341
308
  "lib/bio-ucsc/mm9.rb",
342
- "lib/bio-ucsc/mm9/chainanocar1.rb",
343
- "lib/bio-ucsc/mm9/chainanocar1link.rb",
344
- "lib/bio-ucsc/mm9/chainbostau4.rb",
345
- "lib/bio-ucsc/mm9/chainbostau4link.rb",
346
309
  "lib/bio-ucsc/mm9/chainbraflo1.rb",
347
310
  "lib/bio-ucsc/mm9/chainbraflo1link.rb",
348
311
  "lib/bio-ucsc/mm9/chaincanfam2.rb",
@@ -359,8 +322,6 @@ Gem::Specification.new do |s|
359
322
  "lib/bio-ucsc/mm9/chainornana1link.rb",
360
323
  "lib/bio-ucsc/mm9/chainorylat2.rb",
361
324
  "lib/bio-ucsc/mm9/chainorylat2link.rb",
362
- "lib/bio-ucsc/mm9/chainpantro2.rb",
363
- "lib/bio-ucsc/mm9/chainpantro2link.rb",
364
325
  "lib/bio-ucsc/mm9/chainpetmar1.rb",
365
326
  "lib/bio-ucsc/mm9/chainpetmar1link.rb",
366
327
  "lib/bio-ucsc/mm9/chainponabe2.rb",
@@ -369,9 +330,6 @@ Gem::Specification.new do |s|
369
330
  "lib/bio-ucsc/mm9/chainrhemac2link.rb",
370
331
  "lib/bio-ucsc/mm9/chainrn4.rb",
371
332
  "lib/bio-ucsc/mm9/chainrn4link.rb",
372
- "lib/bio-ucsc/mm9/chainxentro2.rb",
373
- "lib/bio-ucsc/mm9/chainxentro2link.rb",
374
- "lib/bio-ucsc/mm9/db_connection.rb",
375
333
  "lib/bio-ucsc/mm9/est.rb",
376
334
  "lib/bio-ucsc/mm9/gap.rb",
377
335
  "lib/bio-ucsc/mm9/gold.rb",
@@ -379,19 +337,12 @@ Gem::Specification.new do |s|
379
337
  "lib/bio-ucsc/mm9/mrna.rb",
380
338
  "lib/bio-ucsc/mm9/rmsk.rb",
381
339
  "lib/bio-ucsc/mondom5.rb",
382
- "lib/bio-ucsc/mondom5/db_connection.rb",
383
340
  "lib/bio-ucsc/ornana1.rb",
384
- "lib/bio-ucsc/ornana1/db_connection.rb",
385
341
  "lib/bio-ucsc/orycun2.rb",
386
- "lib/bio-ucsc/orycun2/db_connection.rb",
387
342
  "lib/bio-ucsc/orylat2.rb",
388
- "lib/bio-ucsc/orylat2/db_connection.rb",
389
343
  "lib/bio-ucsc/oviari1.rb",
390
- "lib/bio-ucsc/oviari1/db_connection.rb",
391
344
  "lib/bio-ucsc/pantro3.rb",
392
- "lib/bio-ucsc/pantro3/db_connection.rb",
393
345
  "lib/bio-ucsc/petmar1.rb",
394
- "lib/bio-ucsc/petmar1/db_connection.rb",
395
346
  "lib/bio-ucsc/ponabe2.rb",
396
347
  "lib/bio-ucsc/ponabe2/chainmm9.rb",
397
348
  "lib/bio-ucsc/ponabe2/chainmm9link.rb",
@@ -399,7 +350,6 @@ Gem::Specification.new do |s|
399
350
  "lib/bio-ucsc/ponabe2/chainornana1link.rb",
400
351
  "lib/bio-ucsc/ponabe2/chainrhemac2.rb",
401
352
  "lib/bio-ucsc/ponabe2/chainrhemac2link.rb",
402
- "lib/bio-ucsc/ponabe2/db_connection.rb",
403
353
  "lib/bio-ucsc/ponabe2/est.rb",
404
354
  "lib/bio-ucsc/ponabe2/gap.rb",
405
355
  "lib/bio-ucsc/ponabe2/gold.rb",
@@ -415,26 +365,19 @@ Gem::Specification.new do |s|
415
365
  "lib/bio-ucsc/pripac1/chaincb3link.rb",
416
366
  "lib/bio-ucsc/pripac1/chaince6.rb",
417
367
  "lib/bio-ucsc/pripac1/chaince6link.rb",
418
- "lib/bio-ucsc/pripac1/db_connection.rb",
419
368
  "lib/bio-ucsc/pripac1/gap.rb",
420
369
  "lib/bio-ucsc/pripac1/gold.rb",
421
370
  "lib/bio-ucsc/pripac1/rmsk.rb",
422
371
  "lib/bio-ucsc/proteome.rb",
423
- "lib/bio-ucsc/proteome/db_connection.rb",
424
372
  "lib/bio-ucsc/reference.rb",
425
373
  "lib/bio-ucsc/rhemac2.rb",
426
374
  "lib/bio-ucsc/rhemac2/chainmm9.rb",
427
375
  "lib/bio-ucsc/rhemac2/chainmm9link.rb",
428
- "lib/bio-ucsc/rhemac2/chainpantro2.rb",
429
- "lib/bio-ucsc/rhemac2/chainpantro2link.rb",
430
376
  "lib/bio-ucsc/rhemac2/chainponabe2.rb",
431
377
  "lib/bio-ucsc/rhemac2/chainponabe2link.rb",
432
378
  "lib/bio-ucsc/rhemac2/chainrn4.rb",
433
379
  "lib/bio-ucsc/rhemac2/chainrn4link.rb",
434
- "lib/bio-ucsc/rhemac2/db_connection.rb",
435
380
  "lib/bio-ucsc/rn4.rb",
436
- "lib/bio-ucsc/rn4/chainbostau3.rb",
437
- "lib/bio-ucsc/rn4/chainbostau3link.rb",
438
381
  "lib/bio-ucsc/rn4/chaincanfam2.rb",
439
382
  "lib/bio-ucsc/rn4/chaincanfam2link.rb",
440
383
  "lib/bio-ucsc/rn4/chaincavpor3.rb",
@@ -453,9 +396,6 @@ Gem::Specification.new do |s|
453
396
  "lib/bio-ucsc/rn4/chainpantro2link.rb",
454
397
  "lib/bio-ucsc/rn4/chainrhemac2.rb",
455
398
  "lib/bio-ucsc/rn4/chainrhemac2link.rb",
456
- "lib/bio-ucsc/rn4/chainxentro2.rb",
457
- "lib/bio-ucsc/rn4/chainxentro2link.rb",
458
- "lib/bio-ucsc/rn4/db_connection.rb",
459
399
  "lib/bio-ucsc/rn4/est.rb",
460
400
  "lib/bio-ucsc/rn4/gap.rb",
461
401
  "lib/bio-ucsc/rn4/gold.rb",
@@ -463,7 +403,6 @@ Gem::Specification.new do |s|
463
403
  "lib/bio-ucsc/rn4/mrna.rb",
464
404
  "lib/bio-ucsc/rn4/rmsk.rb",
465
405
  "lib/bio-ucsc/saccer2.rb",
466
- "lib/bio-ucsc/saccer2/db_connection.rb",
467
406
  "lib/bio-ucsc/saccer2/est.rb",
468
407
  "lib/bio-ucsc/saccer2/gap.rb",
469
408
  "lib/bio-ucsc/saccer2/gold.rb",
@@ -475,19 +414,7 @@ Gem::Specification.new do |s|
475
414
  "lib/bio-ucsc/saccer2/t2micron_intronEst.rb",
476
415
  "lib/bio-ucsc/saccer2/t2micron_mrna.rb",
477
416
  "lib/bio-ucsc/strpur2.rb",
478
- "lib/bio-ucsc/strpur2/chaingalgal3.rb",
479
- "lib/bio-ucsc/strpur2/chaingalgal3link.rb",
480
- "lib/bio-ucsc/strpur2/chainhg18.rb",
481
- "lib/bio-ucsc/strpur2/chainhg18link.rb",
482
- "lib/bio-ucsc/strpur2/chainmm9.rb",
483
- "lib/bio-ucsc/strpur2/chainmm9link.rb",
484
- "lib/bio-ucsc/strpur2/chainpetmar1.rb",
485
- "lib/bio-ucsc/strpur2/chainpetmar1link.rb",
486
- "lib/bio-ucsc/strpur2/db_connection.rb",
487
- "lib/bio-ucsc/strpur2/gap.rb",
488
- "lib/bio-ucsc/strpur2/gold.rb",
489
417
  "lib/bio-ucsc/susscr2.rb",
490
- "lib/bio-ucsc/susscr2/db_connection.rb",
491
418
  "lib/bio-ucsc/susscr2/est.rb",
492
419
  "lib/bio-ucsc/susscr2/intronest.rb",
493
420
  "lib/bio-ucsc/susscr2/mrna.rb",
@@ -495,7 +422,6 @@ Gem::Specification.new do |s|
495
422
  "lib/bio-ucsc/taegut1.rb",
496
423
  "lib/bio-ucsc/taegut1/chaingalgal3.rb",
497
424
  "lib/bio-ucsc/taegut1/chaingalgal3link.rb",
498
- "lib/bio-ucsc/taegut1/db_connection.rb",
499
425
  "lib/bio-ucsc/taegut1/est.rb",
500
426
  "lib/bio-ucsc/taegut1/gap.rb",
501
427
  "lib/bio-ucsc/taegut1/gold.rb",
@@ -503,23 +429,11 @@ Gem::Specification.new do |s|
503
429
  "lib/bio-ucsc/taegut1/mrna.rb",
504
430
  "lib/bio-ucsc/taegut1/rmsk.rb",
505
431
  "lib/bio-ucsc/tetnig2.rb",
506
- "lib/bio-ucsc/tetnig2/db_connection.rb",
507
432
  "lib/bio-ucsc/tetnig2/mrna.rb",
508
433
  "lib/bio-ucsc/ucsc_bin.rb",
509
434
  "lib/bio-ucsc/uniprot.rb",
510
- "lib/bio-ucsc/uniprot/db_connection.rb",
511
435
  "lib/bio-ucsc/visigene.rb",
512
- "lib/bio-ucsc/visigene/db_connection.rb",
513
436
  "lib/bio-ucsc/xentro2.rb",
514
- "lib/bio-ucsc/xentro2/chaingalgal3.rb",
515
- "lib/bio-ucsc/xentro2/chaingalgal3link.rb",
516
- "lib/bio-ucsc/xentro2/db_connection.rb",
517
- "lib/bio-ucsc/xentro2/est.rb",
518
- "lib/bio-ucsc/xentro2/gap.rb",
519
- "lib/bio-ucsc/xentro2/gold.rb",
520
- "lib/bio-ucsc/xentro2/intronest.rb",
521
- "lib/bio-ucsc/xentro2/mrna.rb",
522
- "lib/bio-ucsc/xentro2/rmsk.rb",
523
437
  "samples/bed2refseq.rb",
524
438
  "samples/hg19-2bit-retrieve.rb",
525
439
  "samples/hg19-sample.rb",
@@ -527,11 +441,11 @@ Gem::Specification.new do |s|
527
441
  "samples/snp2genes.rb",
528
442
  "samples/symbol2summary.rb"
529
443
  ]
530
- s.homepage = %q{http://github.com/misshie/bioruby-ucsc-api}
531
- s.licenses = [%q{Ruby (Ruby's/GPLv2 dual)}]
532
- s.require_paths = [%q{lib}]
533
- s.rubygems_version = %q{1.8.6}
534
- s.summary = %q{The Ruby UCSC API: accessing the UCSC Genome Database using Ruby}
444
+ s.homepage = "http://github.com/misshie/bioruby-ucsc-api"
445
+ s.licenses = ["Ruby (Ruby's/GPLv2 dual)"]
446
+ s.require_paths = ["lib"]
447
+ s.rubygems_version = "1.8.10"
448
+ s.summary = "The Ruby UCSC API: accessing the UCSC Genome Database using Ruby"
535
449
  s.test_files = [
536
450
  "spec/ailmel1_spec.rb",
537
451
  "spec/anocar2_spec.rb",
@@ -564,6 +478,7 @@ Gem::Specification.new do |s|
564
478
  "spec/droyak2_spec.rb",
565
479
  "spec/equcab2_spec.rb",
566
480
  "spec/felcat4_spec.rb",
481
+ "spec/file/twobit.rb",
567
482
  "spec/find_by_and_spec.rb",
568
483
  "spec/fr2_spec.rb",
569
484
  "spec/galgal3_spec.rb",
@@ -3982,9 +3897,8 @@ Gem::Specification.new do |s|
3982
3897
  "spec/hg19/cgapsage_spec.rb",
3983
3898
  "spec/hg19/cgapsagelib_spec.rb",
3984
3899
  "spec/hg19/chainailmel1_spec.rb",
3985
- "spec/hg19/chainanocar1_spec.rb",
3986
- "spec/hg19/chainaplcal1_spec.rb",
3987
- "spec/hg19/chainbostau4_spec.rb",
3900
+ "spec/hg19/chainanocar2_spec.rb",
3901
+ "spec/hg19/chainbostau6_spec.rb",
3988
3902
  "spec/hg19/chaincaljac3_spec.rb",
3989
3903
  "spec/hg19/chaincanfam2_spec.rb",
3990
3904
  "spec/hg19/chaincavpor3_spec.rb",
@@ -4011,7 +3925,8 @@ Gem::Specification.new do |s|
4011
3925
  "spec/hg19/chainsusscr2_spec.rb",
4012
3926
  "spec/hg19/chaintaegut1_spec.rb",
4013
3927
  "spec/hg19/chaintetnig2_spec.rb",
4014
- "spec/hg19/chainxentro2_spec.rb",
3928
+ "spec/hg19/chainxentro3_spec.rb",
3929
+ "spec/hg19/connect_spec.rb",
4015
3930
  "spec/hg19/consindelshgmmcanfam_spec.rb",
4016
3931
  "spec/hg19/consindelshgmmcanfamconf_spec.rb",
4017
3932
  "spec/hg19/cpgislandext_spec.rb",
@@ -4095,9 +4010,8 @@ Gem::Specification.new do |s|
4095
4010
  "spec/hg19/multiz46way_spec.rb",
4096
4011
  "spec/hg19/nestedrepeats_spec.rb",
4097
4012
  "spec/hg19/netailmel1_spec.rb",
4098
- "spec/hg19/netanocar1_spec.rb",
4099
- "spec/hg19/netaplcal1_spec.rb",
4100
- "spec/hg19/netbostau4_spec.rb",
4013
+ "spec/hg19/netanocar2_spec.rb",
4014
+ "spec/hg19/netbostau6_spec.rb",
4101
4015
  "spec/hg19/netcaljac3_spec.rb",
4102
4016
  "spec/hg19/netcanfam2_spec.rb",
4103
4017
  "spec/hg19/netcavpor3_spec.rb",
@@ -4123,7 +4037,7 @@ Gem::Specification.new do |s|
4123
4037
  "spec/hg19/netsusscr2_spec.rb",
4124
4038
  "spec/hg19/nettaegut1_spec.rb",
4125
4039
  "spec/hg19/nettetnig2_spec.rb",
4126
- "spec/hg19/netxentro2_spec.rb",
4040
+ "spec/hg19/netxentro3_spec.rb",
4127
4041
  "spec/hg19/nscangene_spec.rb",
4128
4042
  "spec/hg19/nscanpep_spec.rb",
4129
4043
  "spec/hg19/nthumchimpcodingdiff_spec.rb",
@@ -5454,7 +5368,6 @@ Gem::Specification.new do |s|
5454
5368
  "spec/loxafr3_spec.rb",
5455
5369
  "spec/mm9_spec.rb",
5456
5370
  "spec/mondom5_spec.rb",
5457
- "spec/named_scope_spec.rb",
5458
5371
  "spec/ornana1_spec.rb",
5459
5372
  "spec/orycun2_spec.rb",
5460
5373
  "spec/orylat2_spec.rb",
@@ -5465,6 +5378,7 @@ Gem::Specification.new do |s|
5465
5378
  "spec/pripac1_spec.rb",
5466
5379
  "spec/proteome_spec.rb",
5467
5380
  "spec/reference_spec.rb",
5381
+ "spec/relation_objects_spec.rb",
5468
5382
  "spec/rhemac2_spec.rb",
5469
5383
  "spec/rn4_spec.rb",
5470
5384
  "spec/saccer2_spec.rb",
@@ -5482,37 +5396,40 @@ Gem::Specification.new do |s|
5482
5396
  s.specification_version = 3
5483
5397
 
5484
5398
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
5485
- s.add_runtime_dependency(%q<activerecord>, ["~> 3.0.7"])
5486
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.7"])
5399
+ s.add_runtime_dependency(%q<activerecord>, [">= 3.0.7"])
5400
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.7"])
5487
5401
  s.add_runtime_dependency(%q<mysql>, ["~> 2.8.1"])
5488
5402
  s.add_runtime_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
5403
+ s.add_runtime_dependency(%q<safe_attributes>, [">= 1.0.8"])
5489
5404
  s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
5490
5405
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
5491
5406
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
5492
- s.add_development_dependency(%q<rcov>, [">= 0"])
5407
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
5493
5408
  s.add_development_dependency(%q<bio>, [">= 1.4.1"])
5494
5409
  s.add_development_dependency(%q<rdoc>, [">= 3.9.1"])
5495
5410
  else
5496
- s.add_dependency(%q<activerecord>, ["~> 3.0.7"])
5497
- s.add_dependency(%q<activesupport>, ["~> 3.0.7"])
5411
+ s.add_dependency(%q<activerecord>, [">= 3.0.7"])
5412
+ s.add_dependency(%q<activesupport>, [">= 3.0.7"])
5498
5413
  s.add_dependency(%q<mysql>, ["~> 2.8.1"])
5499
5414
  s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
5415
+ s.add_dependency(%q<safe_attributes>, [">= 1.0.8"])
5500
5416
  s.add_dependency(%q<rspec>, ["~> 2.5.0"])
5501
5417
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
5502
5418
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
5503
- s.add_dependency(%q<rcov>, [">= 0"])
5419
+ s.add_dependency(%q<simplecov>, [">= 0"])
5504
5420
  s.add_dependency(%q<bio>, [">= 1.4.1"])
5505
5421
  s.add_dependency(%q<rdoc>, [">= 3.9.1"])
5506
5422
  end
5507
5423
  else
5508
- s.add_dependency(%q<activerecord>, ["~> 3.0.7"])
5509
- s.add_dependency(%q<activesupport>, ["~> 3.0.7"])
5424
+ s.add_dependency(%q<activerecord>, [">= 3.0.7"])
5425
+ s.add_dependency(%q<activesupport>, [">= 3.0.7"])
5510
5426
  s.add_dependency(%q<mysql>, ["~> 2.8.1"])
5511
5427
  s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
5428
+ s.add_dependency(%q<safe_attributes>, [">= 1.0.8"])
5512
5429
  s.add_dependency(%q<rspec>, ["~> 2.5.0"])
5513
5430
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
5514
5431
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
5515
- s.add_dependency(%q<rcov>, [">= 0"])
5432
+ s.add_dependency(%q<simplecov>, [">= 0"])
5516
5433
  s.add_dependency(%q<bio>, [">= 1.4.1"])
5517
5434
  s.add_dependency(%q<rdoc>, [">= 3.9.1"])
5518
5435
  end