bio-ucsc-api 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. data/.document +5 -0
  2. data/.rspec +2 -0
  3. data/COPYING +58 -0
  4. data/COPYING.ja +51 -0
  5. data/Gemfile +19 -0
  6. data/Gemfile.lock +49 -0
  7. data/README.rdoc +57 -0
  8. data/Rakefile +72 -0
  9. data/VERSION +1 -0
  10. data/bio-ucsc-api.gemspec +212 -0
  11. data/lib/bio-ucsc.rb +20 -0
  12. data/lib/bio-ucsc/hg18.rb +27 -0
  13. data/lib/bio-ucsc/hg18/activerecord.rb +166 -0
  14. data/lib/bio-ucsc/hg18/cnpiafrate2.rb +31 -0
  15. data/lib/bio-ucsc/hg18/cnplocke.rb +31 -0
  16. data/lib/bio-ucsc/hg18/cnpredon.rb +32 -0
  17. data/lib/bio-ucsc/hg18/cnpsebat2.rb +35 -0
  18. data/lib/bio-ucsc/hg18/cnpsharp2.rb +32 -0
  19. data/lib/bio-ucsc/hg18/db_connection.rb +61 -0
  20. data/lib/bio-ucsc/hg18/dgv.rb +27 -0
  21. data/lib/bio-ucsc/hg18/refgene.rb +27 -0
  22. data/lib/bio-ucsc/hg18/rmsk.rb +51 -0
  23. data/lib/bio-ucsc/hg18/tables.rb +142 -0
  24. data/lib/bio-ucsc/hg19.rb +54 -0
  25. data/lib/bio-ucsc/hg19/activerecord.rb +217 -0
  26. data/lib/bio-ucsc/hg19/ccdsgene.rb +33 -0
  27. data/lib/bio-ucsc/hg19/cytoband.rb +33 -0
  28. data/lib/bio-ucsc/hg19/db_connection.rb +61 -0
  29. data/lib/bio-ucsc/hg19/dgv.rb +27 -0
  30. data/lib/bio-ucsc/hg19/ensgene.rb +21 -0
  31. data/lib/bio-ucsc/hg19/gwascatalog.rb +26 -0
  32. data/lib/bio-ucsc/hg19/hapmapalleleschimp.rb +35 -0
  33. data/lib/bio-ucsc/hg19/hapmapallelesmacaque.rb +35 -0
  34. data/lib/bio-ucsc/hg19/hapmapsnpsasw.rb +33 -0
  35. data/lib/bio-ucsc/hg19/hapmapsnpsceu.rb +33 -0
  36. data/lib/bio-ucsc/hg19/hapmapsnpschb.rb +33 -0
  37. data/lib/bio-ucsc/hg19/hapmapsnpschd.rb +33 -0
  38. data/lib/bio-ucsc/hg19/hapmapsnpsgih.rb +34 -0
  39. data/lib/bio-ucsc/hg19/hapmapsnpsjpt.rb +34 -0
  40. data/lib/bio-ucsc/hg19/hapmapsnpslwk.rb +35 -0
  41. data/lib/bio-ucsc/hg19/hapmapsnpsmex.rb +35 -0
  42. data/lib/bio-ucsc/hg19/hapmapsnpsmkk.rb +35 -0
  43. data/lib/bio-ucsc/hg19/hapmapsnpstsi.rb +35 -0
  44. data/lib/bio-ucsc/hg19/hapmapsnpsyri.rb +35 -0
  45. data/lib/bio-ucsc/hg19/knowngene.rb +34 -0
  46. data/lib/bio-ucsc/hg19/omimgene.rb +25 -0
  47. data/lib/bio-ucsc/hg19/phastconselements46wayprimates.rb +27 -0
  48. data/lib/bio-ucsc/hg19/phylop46wayprimates.rb +27 -0
  49. data/lib/bio-ucsc/hg19/refgene.rb +27 -0
  50. data/lib/bio-ucsc/hg19/rmsk.rb +32 -0
  51. data/lib/bio-ucsc/hg19/snp131.rb +30 -0
  52. data/lib/bio-ucsc/hg19/snp132.rb +31 -0
  53. data/lib/bio-ucsc/hg19/snp132codingdbsnp.rb +29 -0
  54. data/lib/bio-ucsc/hg19/snp132common.rb +32 -0
  55. data/lib/bio-ucsc/hg19/snp132flagged.rb +31 -0
  56. data/lib/bio-ucsc/hg19/snp132mult.rb +32 -0
  57. data/lib/bio-ucsc/hg19/wgrna.rb +29 -0
  58. data/lib/bio-ucsc/ucsc_bin.rb +148 -0
  59. data/samples/hg19-sample.rb +66 -0
  60. data/spec/hg18/cnpiafrate2_spec.rb +23 -0
  61. data/spec/hg18/cnplocke_spec.rb +23 -0
  62. data/spec/hg18/cnpredon_spec.rb +23 -0
  63. data/spec/hg18/cnpsebat2_spec.rb +23 -0
  64. data/spec/hg18/cnpsharp2_spec.rb +23 -0
  65. data/spec/hg18/db_connection_spec.rb +36 -0
  66. data/spec/hg18/dgv_spec.rb +23 -0
  67. data/spec/hg18/refgene_spec.rb +23 -0
  68. data/spec/hg18/rmsk_spec.rb +33 -0
  69. data/spec/hg19/ccdsgene_spec.rb +23 -0
  70. data/spec/hg19/cytoband_spec.rb +23 -0
  71. data/spec/hg19/db_connection_spec.rb +37 -0
  72. data/spec/hg19/dgv_spec.rb +23 -0
  73. data/spec/hg19/ensgene_spec.rb +23 -0
  74. data/spec/hg19/gwascatalog_spec.rb +23 -0
  75. data/spec/hg19/hapmapalleleschimp_spec.rb +23 -0
  76. data/spec/hg19/hapmapallelesmacaque_spec.rb +23 -0
  77. data/spec/hg19/hapmapsnpsasw_spec.rb +23 -0
  78. data/spec/hg19/hapmapsnpsceu_spec.rb +23 -0
  79. data/spec/hg19/hapmapsnpschb_spec.rb +23 -0
  80. data/spec/hg19/hapmapsnpschd_spec.rb +23 -0
  81. data/spec/hg19/hapmapsnpsgih_spec.rb +23 -0
  82. data/spec/hg19/hapmapsnpsjpt_spec.rb +23 -0
  83. data/spec/hg19/hapmapsnpslwk_spec.rb +23 -0
  84. data/spec/hg19/hapmapsnpsmex_spec.rb +23 -0
  85. data/spec/hg19/hapmapsnpsmkk_spec.rb +23 -0
  86. data/spec/hg19/hapmapsnpstsi_spec.rb +23 -0
  87. data/spec/hg19/hapmapsnpsyri_spec.rb +23 -0
  88. data/spec/hg19/knowngene_spec.rb +23 -0
  89. data/spec/hg19/omimGene_spec.rb +23 -0
  90. data/spec/hg19/phastconselements46wayprimates_spec.rb +23 -0
  91. data/spec/hg19/phyloP46wayPrimates_spec.rb +23 -0
  92. data/spec/hg19/refgene_spec.rb +23 -0
  93. data/spec/hg19/rmsk_spec.rb +23 -0
  94. data/spec/hg19/snp132Flagged_spec.rb +24 -0
  95. data/spec/hg19/snp132_spec.rb +23 -0
  96. data/spec/hg19/snp132codingdbsnp_spec.rb +23 -0
  97. data/spec/hg19/snp132common_spec.rb +24 -0
  98. data/spec/hg19/snp132mult_spec.rb +23 -0
  99. data/spec/hg19/wgrna_spec.rb +23 -0
  100. data/spec/spec_helper.rb +12 -0
  101. metadata +368 -0
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
data/COPYING ADDED
@@ -0,0 +1,58 @@
1
+ BioRuby is copyrighted free software by
2
+ Hiroyuki Mishima <missy at be.to> / <hmishima at nagasaki-u.ac.jp>, and
3
+ Jan Aerts <jan.aerts@gmail.com>.
4
+ You can redistribute it and/or modify it under either the terms of the GPL
5
+ version 2 (see the file GPL), or the conditions below:
6
+
7
+ 1. You may make and give away verbatim copies of the source form of the
8
+ software without restriction, provided that you duplicate all of the
9
+ original copyright notices and associated disclaimers.
10
+
11
+ 2. You may modify your copy of the software in any way, provided that
12
+ you do at least ONE of the following:
13
+
14
+ a) place your modifications in the Public Domain or otherwise
15
+ make them Freely Available, such as by posting said
16
+ modifications to Usenet or an equivalent medium, or by allowing
17
+ the author to include your modifications in the software.
18
+
19
+ b) use the modified software only within your corporation or
20
+ organization.
21
+
22
+ c) give non-standard binaries non-standard names, with
23
+ instructions on where to get the original software distribution.
24
+
25
+ d) make other distribution arrangements with the author.
26
+
27
+ 3. You may distribute the software in object code or binary form,
28
+ provided that you do at least ONE of the following:
29
+
30
+ a) distribute the binaries and library files of the software,
31
+ together with instructions (in the manual page or equivalent)
32
+ on where to get the original distribution.
33
+
34
+ b) accompany the distribution with the machine-readable source of
35
+ the software.
36
+
37
+ c) give non-standard binaries non-standard names, with
38
+ instructions on where to get the original software distribution.
39
+
40
+ d) make other distribution arrangements with the author.
41
+
42
+ 4. You may modify and include the part of the software into any other
43
+ software (possibly commercial). But some files in the distribution
44
+ are not written by the author, so that they are not under these terms.
45
+
46
+ For the list of those files and their copying conditions, see the
47
+ file LEGAL.
48
+
49
+ 5. The scripts and library files supplied as input to or produced as
50
+ output from the software do not automatically fall under the
51
+ copyright of the software, but belong to whomever generated them,
52
+ and may be sold commercially, and may be aggregated with this
53
+ software.
54
+
55
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
56
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
57
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
58
+ PURPOSE.
data/COPYING.ja ADDED
@@ -0,0 +1,51 @@
1
+ $BK\%W%m%0%i%`$O%U%j!<%=%U%H%&%'%"$G$9!%(BGPL (the GNU General
2
+ Public License)$B%P!<%8%g%s(B2$B$^$?$O0J2<$K<($9>r7o$GK\%W%m%0%i%`(B
3
+ $B$r:FG[I[$G$-$^$9!%(BGPL$B$K$D$$$F$O(BGPL$B%U%!%$%k$r;2>H$7$F2<$5$$!%(B
4
+
5
+ 1. $BJ#@=$O@)8B$J$/<+M3$G$9!%(B
6
+
7
+ 2. $B0J2<$N>r7o$N$$$:$l$+$rK~$?$9;~$KK\%W%m%0%i%`$N%=!<%9$r(B
8
+ $B<+M3$KJQ99$G$-$^$9!%(B
9
+
10
+ (a) $B%M%C%H%K%e!<%:$K%]%9%H$7$?$j!$:n<T$KJQ99$rAwIU$9$k(B
11
+ $B$J$I$NJ}K!$G!$JQ99$r8x3+$9$k!%(B
12
+
13
+ (b) $BJQ99$7$?K\%W%m%0%i%`$r<+J,$N=jB0$9$kAH?%FbIt$@$1$G(B
14
+ $B;H$&!%(B
15
+
16
+ (c) $BJQ99E@$rL@<($7$?$&$(!$%=%U%H%&%'%"$NL>A0$rJQ99$9$k!%(B
17
+ $B$=$N%=%U%H%&%'%"$rG[I[$9$k;~$K$OJQ99A0$NK\%W%m%0%i(B
18
+ $B%`$bF1;~$KG[I[$9$k!%$^$?$OJQ99A0$NK\%W%m%0%i%`$N%=!<(B
19
+ $B%9$NF~<jK!$rL@<($9$k!%(B
20
+
21
+ (d) $B$=$NB>$NJQ99>r7o$r:n<T$H9g0U$9$k!%(B
22
+
23
+ 3. $B0J2<$N>r7o$N$$$:$l$+$rK~$?$9;~$KK\%W%m%0%i%`$r%3%s%Q%$(B
24
+ $B%k$7$?%*%V%8%'%/%H%3!<%I$d<B9T7A<0$G$bG[I[$G$-$^$9!%(B
25
+
26
+ (a) $B%P%$%J%j$r<u$1<h$C$??M$,%=!<%9$rF~<j$G$-$k$h$&$K!$(B
27
+ $B%=!<%9$NF~<jK!$rL@<($9$k!%(B
28
+
29
+ (b) $B5!3#2DFI$J%=!<%9%3!<%I$rE:IU$9$k!%(B
30
+
31
+ (c) $BJQ99$r9T$C$?%P%$%J%j$OL>A0$rJQ99$7$?$&$(!$%*%j%8%J(B
32
+ $B%k$N%=!<%9%3!<%I$NF~<jK!$rL@<($9$k!%(B
33
+
34
+ (d) $B$=$NB>$NG[I[>r7o$r:n<T$H9g0U$9$k!%(B
35
+
36
+ 4. $BB>$N%W%m%0%i%`$X$N0zMQ$O$$$+$J$kL\E*$G$"$l<+M3$G$9!%$?(B
37
+ $B$@$7!$K\%W%m%0%i%`$K4^$^$l$kB>$N:n<T$K$h$k%3!<%I$O!$$=(B
38
+ $B$l$>$l$N:n<T$N0U8~$K$h$k@)8B$,2C$($i$l$k>l9g$,$"$j$^$9!%(B
39
+
40
+ $B$=$l$i%U%!%$%k$N0lMw$H$=$l$>$l$NG[I[>r7o$J$I$KIU$$$F$O(B
41
+ LEGAL$B%U%!%$%k$r;2>H$7$F$/$@$5$$!%(B
42
+
43
+ 5. $BK\%W%m%0%i%`$X$NF~NO$H$J$k%9%/%j%W%H$*$h$S!$K\%W%m%0%i(B
44
+ $B%`$+$i$N=PNO$N8"Mx$OK\%W%m%0%i%`$N:n<T$G$O$J$/!$$=$l$>(B
45
+ $B$l$NF~=PNO$r@8@.$7$??M$KB0$7$^$9!%$^$?!$K\%W%m%0%i%`$K(B
46
+ $BAH$_9~$^$l$k$?$a$N3HD%%i%$%V%i%j$K$D$$$F$bF1MM$G$9!%(B
47
+
48
+ 6. $BK\%W%m%0%i%`$OL5J]>Z$G$9!%:n<T$OK\%W%m%0%i%`$r%5%]!<%H(B
49
+ $B$9$k0U;V$O$"$j$^$9$,!$%W%m%0%i%`<+?H$N%P%0$"$k$$$OK\%W(B
50
+ $B%m%0%i%`$N<B9T$J$I$+$iH/@8$9$k$$$+$J$kB;32$KBP$7$F$b@U(B
51
+ $BG$$r;}$A$^$;$s!%(B
data/Gemfile ADDED
@@ -0,0 +1,19 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+ gem "activerecord", ">= 3.0.7"
6
+ #gem "activesupport", ">= 3.0.0"
7
+ gem "mysql", ">= 2.8.1"
8
+ gem "bio-genomic-interval", ">= 0.1.2"
9
+
10
+ # Add dependencies to develop your gem here.
11
+ # Include everything needed to run rake, tests, features, etc.
12
+ group :development do
13
+ gem "rspec", "~> 2.5.0"
14
+ gem "bundler", "~> 1.0.0"
15
+ gem "jeweler", "~> 1.5.2"
16
+ gem "rcov", ">= 0"
17
+ gem "bio", ">= 1.4.1"
18
+ # gem "cover_me", ">= 1.0.0.rc6"
19
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,49 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activemodel (3.0.7)
5
+ activesupport (= 3.0.7)
6
+ builder (~> 2.1.2)
7
+ i18n (~> 0.5.0)
8
+ activerecord (3.0.7)
9
+ activemodel (= 3.0.7)
10
+ activesupport (= 3.0.7)
11
+ arel (~> 2.0.2)
12
+ tzinfo (~> 0.3.23)
13
+ activesupport (3.0.7)
14
+ arel (2.0.9)
15
+ bio (1.4.1)
16
+ bio-genomic-interval (0.1.2)
17
+ builder (2.1.2)
18
+ diff-lcs (1.1.2)
19
+ git (1.2.5)
20
+ i18n (0.5.0)
21
+ jeweler (1.5.2)
22
+ bundler (~> 1.0.0)
23
+ git (>= 1.2.5)
24
+ rake
25
+ mysql (2.8.1)
26
+ rake (0.8.7)
27
+ rcov (0.9.9)
28
+ rspec (2.5.0)
29
+ rspec-core (~> 2.5.0)
30
+ rspec-expectations (~> 2.5.0)
31
+ rspec-mocks (~> 2.5.0)
32
+ rspec-core (2.5.1)
33
+ rspec-expectations (2.5.0)
34
+ diff-lcs (~> 1.1.2)
35
+ rspec-mocks (2.5.0)
36
+ tzinfo (0.3.26)
37
+
38
+ PLATFORMS
39
+ ruby
40
+
41
+ DEPENDENCIES
42
+ activerecord (>= 3.0.7)
43
+ bio (>= 1.4.1)
44
+ bio-genomic-interval (>= 0.1.2)
45
+ bundler (~> 1.0.0)
46
+ jeweler (~> 1.5.2)
47
+ mysql (>= 2.8.1)
48
+ rcov
49
+ rspec (~> 2.5.0)
data/README.rdoc ADDED
@@ -0,0 +1,57 @@
1
+ = bio-ucsc-api
2
+
3
+ A BioRuby plugin: Ruby API for the UCSC database.
4
+
5
+ This package is based on the followings:
6
+ * ruby-ucsc-api: https://github.com/jandot/ruby-ucsc-api
7
+ * ruby-ensembl-api: https://github.com/jandot/ruby-ensembl-api
8
+
9
+ Major dependent gems:
10
+ * active_record http://api.rubyonrails.org/classes/ActiveRecord/Base.html
11
+ * bioruby-genomic-interval https://github.com/misshie/bioruby-genomic-interval
12
+
13
+ See also a paper:
14
+
15
+ Strozzi F, Aerts J: A Ruby API to query the Ensembl database for genomic features.
16
+ Bioinformatics 2011, 27:1013-1014.
17
+
18
+ NOTE: THIS PACKAGE IS STILL VERY PRELIMINARY VERSION.
19
+ Your comments, suggestions and requests are welcome.
20
+ Email to the author (missy at be.to) or create an "Issue" at
21
+ http://github.com/misshie/bioruby-ucsc-api/issues
22
+
23
+ == Features
24
+
25
+ * Designed as a BioRuby plugin
26
+ * Using the Bin index system to improve query performance (see https://github.com/misshie/UCSCBin )
27
+ * Automatic conversion of "1-based full-closed intervals" to internal "0-based half-closed intervals" (see also bioruby-genomic-interval)
28
+ * Supporting non-official MySql hosts (e.g. local servers)
29
+ * Using Rspec for the testing framework
30
+ * Trying to support whole hg19 and hg18 databases.
31
+
32
+
33
+ == Install
34
+
35
+ (to be uploaded into rubygems.org)
36
+
37
+ == How to Use
38
+
39
+ requre 'bio-ucsc'
40
+
41
+ Bio::Ucsc::Hg19::DBConnection.connect
42
+
43
+ itv = Bio::GenomicInterval.parse("chr1:1-11,000")
44
+ Bio::Ucsc::Hg19::Snp131.find_by_interval(itv).each do |e|
45
+ i = Bio::GenomicInterval.zero_based(e.chrom, e.chromStart, e.chromEnd)
46
+ puts "#{i.chrom}\t#{i.chromStart}\t#{e.name}\t#{e[:class]}"
47
+ end
48
+
49
+ p Bio::Ucsc::Hg19::Snp131.find_by_name("rs56289060")
50
+
51
+ == Copyright
52
+ Copyright:: (c) 2011 MISHIMA, Hiroyuki (missy at be.to / hmishima at nagasaki-u.ac.jp)
53
+
54
+ Copyright:: (c) 2008-2011 Francesco Strozzi, Jan Aerts
55
+
56
+ License:: Ruby licence (Ruby's / GPLv2 dual). See COPYING and COPYING.ja for further details.
57
+
data/Rakefile ADDED
@@ -0,0 +1,72 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'rake'
11
+
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification...
15
+ # see http://docs.rubygems.org/read/chapter/20 for more options
16
+ gem.name = "bio-ucsc-api"
17
+ gem.homepage = "http://github.com/misshie/bioruby-ucsc-api"
18
+ gem.license = "Ruby (Ruby's/GPLv2 dual)"
19
+ gem.summary = %Q{A Bioruby plugin: an API for UCSC Genome Browser (experimental)}
20
+ gem.description = %Q{A Bioruby plugin: an API for UCSC Genome Browser (experimental)}
21
+ gem.email = "missy@be.to"
22
+ gem.authors = ["MISHIMA, Hiroyuki", "Francesco Strozzi", "Jan Aerts"]
23
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
24
+ # and development dependencies are only needed for development
25
+ # (ie running rake tasks, tests, etc)
26
+ # gem.add_runtime_dependency 'jabber4r', '> 0.1'
27
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
28
+
29
+ gem.add_runtime_dependency 'activerecord', '>= 3.0.0'
30
+ gem.add_runtime_dependency 'activesupport', '>= 3.0.0'
31
+ gem.add_runtime_dependency 'bio-genomic-interval', '>= 0.1.1'
32
+ end
33
+
34
+ Jeweler::RubygemsDotOrgTasks.new
35
+
36
+ require 'rspec/core'
37
+ require 'rspec/core/rake_task'
38
+ RSpec::Core::RakeTask.new(:spec) do |spec|
39
+ spec.pattern = FileList['spec/**/*_spec.rb']
40
+ end
41
+
42
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
43
+ spec.pattern = 'spec/**/*_spec.rb'
44
+ spec.rcov = true
45
+ end
46
+
47
+ task :default => :spec
48
+
49
+ require 'rake/rdoctask'
50
+ Rake::RDocTask.new do |rdoc|
51
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
52
+
53
+ rdoc.rdoc_dir = 'rdoc'
54
+ rdoc.title = "bio-ucsc-api #{version}"
55
+ rdoc.rdoc_files.include('README*')
56
+ rdoc.rdoc_files.include('lib/**/*.rb')
57
+ end
58
+
59
+ # namespace :cover_me do
60
+ # task :report do
61
+ # require 'cover_me'
62
+ # CoverMe.complete!
63
+ # end
64
+ # end
65
+
66
+ # task :test do
67
+ # Rake::Task['cover_me:report'].invoke
68
+ # end
69
+
70
+ # task :spec do
71
+ # Rake::Task['cover_me:report'].invoke
72
+ # end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
@@ -0,0 +1,212 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{bio-ucsc-api}
8
+ s.version = "0.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["MISHIMA, Hiroyuki", "Francesco Strozzi", "Jan Aerts"]
12
+ s.date = %q{2011-04-22}
13
+ s.description = %q{A Bioruby plugin: an API for UCSC Genome Browser (experimental)}
14
+ s.email = %q{missy@be.to}
15
+ s.extra_rdoc_files = [
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ ".rspec",
21
+ "COPYING",
22
+ "COPYING.ja",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "bio-ucsc-api.gemspec",
29
+ "lib/bio-ucsc.rb",
30
+ "lib/bio-ucsc/hg18.rb",
31
+ "lib/bio-ucsc/hg18/activerecord.rb",
32
+ "lib/bio-ucsc/hg18/cnpiafrate2.rb",
33
+ "lib/bio-ucsc/hg18/cnplocke.rb",
34
+ "lib/bio-ucsc/hg18/cnpredon.rb",
35
+ "lib/bio-ucsc/hg18/cnpsebat2.rb",
36
+ "lib/bio-ucsc/hg18/cnpsharp2.rb",
37
+ "lib/bio-ucsc/hg18/db_connection.rb",
38
+ "lib/bio-ucsc/hg18/dgv.rb",
39
+ "lib/bio-ucsc/hg18/refgene.rb",
40
+ "lib/bio-ucsc/hg18/rmsk.rb",
41
+ "lib/bio-ucsc/hg18/tables.rb",
42
+ "lib/bio-ucsc/hg19.rb",
43
+ "lib/bio-ucsc/hg19/activerecord.rb",
44
+ "lib/bio-ucsc/hg19/ccdsgene.rb",
45
+ "lib/bio-ucsc/hg19/cytoband.rb",
46
+ "lib/bio-ucsc/hg19/db_connection.rb",
47
+ "lib/bio-ucsc/hg19/dgv.rb",
48
+ "lib/bio-ucsc/hg19/ensgene.rb",
49
+ "lib/bio-ucsc/hg19/gwascatalog.rb",
50
+ "lib/bio-ucsc/hg19/hapmapalleleschimp.rb",
51
+ "lib/bio-ucsc/hg19/hapmapallelesmacaque.rb",
52
+ "lib/bio-ucsc/hg19/hapmapsnpsasw.rb",
53
+ "lib/bio-ucsc/hg19/hapmapsnpsceu.rb",
54
+ "lib/bio-ucsc/hg19/hapmapsnpschb.rb",
55
+ "lib/bio-ucsc/hg19/hapmapsnpschd.rb",
56
+ "lib/bio-ucsc/hg19/hapmapsnpsgih.rb",
57
+ "lib/bio-ucsc/hg19/hapmapsnpsjpt.rb",
58
+ "lib/bio-ucsc/hg19/hapmapsnpslwk.rb",
59
+ "lib/bio-ucsc/hg19/hapmapsnpsmex.rb",
60
+ "lib/bio-ucsc/hg19/hapmapsnpsmkk.rb",
61
+ "lib/bio-ucsc/hg19/hapmapsnpstsi.rb",
62
+ "lib/bio-ucsc/hg19/hapmapsnpsyri.rb",
63
+ "lib/bio-ucsc/hg19/knowngene.rb",
64
+ "lib/bio-ucsc/hg19/omimgene.rb",
65
+ "lib/bio-ucsc/hg19/phastconselements46wayprimates.rb",
66
+ "lib/bio-ucsc/hg19/phylop46wayprimates.rb",
67
+ "lib/bio-ucsc/hg19/refgene.rb",
68
+ "lib/bio-ucsc/hg19/rmsk.rb",
69
+ "lib/bio-ucsc/hg19/snp131.rb",
70
+ "lib/bio-ucsc/hg19/snp132.rb",
71
+ "lib/bio-ucsc/hg19/snp132codingdbsnp.rb",
72
+ "lib/bio-ucsc/hg19/snp132common.rb",
73
+ "lib/bio-ucsc/hg19/snp132flagged.rb",
74
+ "lib/bio-ucsc/hg19/snp132mult.rb",
75
+ "lib/bio-ucsc/hg19/wgrna.rb",
76
+ "lib/bio-ucsc/ucsc_bin.rb",
77
+ "samples/hg19-sample.rb",
78
+ "spec/hg18/cnpiafrate2_spec.rb",
79
+ "spec/hg18/cnplocke_spec.rb",
80
+ "spec/hg18/cnpredon_spec.rb",
81
+ "spec/hg18/cnpsebat2_spec.rb",
82
+ "spec/hg18/cnpsharp2_spec.rb",
83
+ "spec/hg18/db_connection_spec.rb",
84
+ "spec/hg18/dgv_spec.rb",
85
+ "spec/hg18/refgene_spec.rb",
86
+ "spec/hg18/rmsk_spec.rb",
87
+ "spec/hg19/ccdsgene_spec.rb",
88
+ "spec/hg19/cytoband_spec.rb",
89
+ "spec/hg19/db_connection_spec.rb",
90
+ "spec/hg19/dgv_spec.rb",
91
+ "spec/hg19/ensgene_spec.rb",
92
+ "spec/hg19/gwascatalog_spec.rb",
93
+ "spec/hg19/hapmapalleleschimp_spec.rb",
94
+ "spec/hg19/hapmapallelesmacaque_spec.rb",
95
+ "spec/hg19/hapmapsnpsasw_spec.rb",
96
+ "spec/hg19/hapmapsnpsceu_spec.rb",
97
+ "spec/hg19/hapmapsnpschb_spec.rb",
98
+ "spec/hg19/hapmapsnpschd_spec.rb",
99
+ "spec/hg19/hapmapsnpsgih_spec.rb",
100
+ "spec/hg19/hapmapsnpsjpt_spec.rb",
101
+ "spec/hg19/hapmapsnpslwk_spec.rb",
102
+ "spec/hg19/hapmapsnpsmex_spec.rb",
103
+ "spec/hg19/hapmapsnpsmkk_spec.rb",
104
+ "spec/hg19/hapmapsnpstsi_spec.rb",
105
+ "spec/hg19/hapmapsnpsyri_spec.rb",
106
+ "spec/hg19/knowngene_spec.rb",
107
+ "spec/hg19/omimGene_spec.rb",
108
+ "spec/hg19/phastconselements46wayprimates_spec.rb",
109
+ "spec/hg19/phyloP46wayPrimates_spec.rb",
110
+ "spec/hg19/refgene_spec.rb",
111
+ "spec/hg19/rmsk_spec.rb",
112
+ "spec/hg19/snp132Flagged_spec.rb",
113
+ "spec/hg19/snp132_spec.rb",
114
+ "spec/hg19/snp132codingdbsnp_spec.rb",
115
+ "spec/hg19/snp132common_spec.rb",
116
+ "spec/hg19/snp132mult_spec.rb",
117
+ "spec/hg19/wgrna_spec.rb",
118
+ "spec/spec_helper.rb"
119
+ ]
120
+ s.homepage = %q{http://github.com/misshie/bioruby-ucsc-api}
121
+ s.licenses = ["Ruby (Ruby's/GPLv2 dual)"]
122
+ s.require_paths = ["lib"]
123
+ s.rubygems_version = %q{1.3.7}
124
+ s.summary = %q{A Bioruby plugin: an API for UCSC Genome Browser (experimental)}
125
+ s.test_files = [
126
+ "spec/hg18/cnpiafrate2_spec.rb",
127
+ "spec/hg18/cnplocke_spec.rb",
128
+ "spec/hg18/cnpredon_spec.rb",
129
+ "spec/hg18/cnpsebat2_spec.rb",
130
+ "spec/hg18/cnpsharp2_spec.rb",
131
+ "spec/hg18/db_connection_spec.rb",
132
+ "spec/hg18/dgv_spec.rb",
133
+ "spec/hg18/refgene_spec.rb",
134
+ "spec/hg18/rmsk_spec.rb",
135
+ "spec/hg19/ccdsgene_spec.rb",
136
+ "spec/hg19/cytoband_spec.rb",
137
+ "spec/hg19/db_connection_spec.rb",
138
+ "spec/hg19/dgv_spec.rb",
139
+ "spec/hg19/ensgene_spec.rb",
140
+ "spec/hg19/gwascatalog_spec.rb",
141
+ "spec/hg19/hapmapalleleschimp_spec.rb",
142
+ "spec/hg19/hapmapallelesmacaque_spec.rb",
143
+ "spec/hg19/hapmapsnpsasw_spec.rb",
144
+ "spec/hg19/hapmapsnpsceu_spec.rb",
145
+ "spec/hg19/hapmapsnpschb_spec.rb",
146
+ "spec/hg19/hapmapsnpschd_spec.rb",
147
+ "spec/hg19/hapmapsnpsgih_spec.rb",
148
+ "spec/hg19/hapmapsnpsjpt_spec.rb",
149
+ "spec/hg19/hapmapsnpslwk_spec.rb",
150
+ "spec/hg19/hapmapsnpsmex_spec.rb",
151
+ "spec/hg19/hapmapsnpsmkk_spec.rb",
152
+ "spec/hg19/hapmapsnpstsi_spec.rb",
153
+ "spec/hg19/hapmapsnpsyri_spec.rb",
154
+ "spec/hg19/knowngene_spec.rb",
155
+ "spec/hg19/omimGene_spec.rb",
156
+ "spec/hg19/phastconselements46wayprimates_spec.rb",
157
+ "spec/hg19/phyloP46wayPrimates_spec.rb",
158
+ "spec/hg19/refgene_spec.rb",
159
+ "spec/hg19/rmsk_spec.rb",
160
+ "spec/hg19/snp132Flagged_spec.rb",
161
+ "spec/hg19/snp132_spec.rb",
162
+ "spec/hg19/snp132codingdbsnp_spec.rb",
163
+ "spec/hg19/snp132common_spec.rb",
164
+ "spec/hg19/snp132mult_spec.rb",
165
+ "spec/hg19/wgrna_spec.rb",
166
+ "spec/spec_helper.rb"
167
+ ]
168
+
169
+ if s.respond_to? :specification_version then
170
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
171
+ s.specification_version = 3
172
+
173
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
174
+ s.add_runtime_dependency(%q<activerecord>, [">= 3.0.7"])
175
+ s.add_runtime_dependency(%q<mysql>, [">= 2.8.1"])
176
+ s.add_runtime_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
177
+ s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
178
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
179
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
180
+ s.add_development_dependency(%q<rcov>, [">= 0"])
181
+ s.add_development_dependency(%q<bio>, [">= 1.4.1"])
182
+ s.add_runtime_dependency(%q<activerecord>, [">= 3.0.0"])
183
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0"])
184
+ s.add_runtime_dependency(%q<bio-genomic-interval>, [">= 0.1.1"])
185
+ else
186
+ s.add_dependency(%q<activerecord>, [">= 3.0.7"])
187
+ s.add_dependency(%q<mysql>, [">= 2.8.1"])
188
+ s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
189
+ s.add_dependency(%q<rspec>, ["~> 2.5.0"])
190
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
191
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
192
+ s.add_dependency(%q<rcov>, [">= 0"])
193
+ s.add_dependency(%q<bio>, [">= 1.4.1"])
194
+ s.add_dependency(%q<activerecord>, [">= 3.0.0"])
195
+ s.add_dependency(%q<activesupport>, [">= 3.0.0"])
196
+ s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.1"])
197
+ end
198
+ else
199
+ s.add_dependency(%q<activerecord>, [">= 3.0.7"])
200
+ s.add_dependency(%q<mysql>, [">= 2.8.1"])
201
+ s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
202
+ s.add_dependency(%q<rspec>, ["~> 2.5.0"])
203
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
204
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
205
+ s.add_dependency(%q<rcov>, [">= 0"])
206
+ s.add_dependency(%q<bio>, [">= 1.4.1"])
207
+ s.add_dependency(%q<activerecord>, [">= 3.0.0"])
208
+ s.add_dependency(%q<activesupport>, [">= 3.0.0"])
209
+ s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.1"])
210
+ end
211
+ end
212
+