bio-ucsc-api 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog.md CHANGED
@@ -1,4 +1,6 @@
1
1
  #Change Log
2
+ * **NEW** (v0.6.0): Support ActiveRecord v4.0 (a part of Ruby on Ralils v4.0). Other related library dependencies are also updated. To Supress deprecation warnings for using dynamic finders such as 'find_by_name_and_chrom', use `ActiveSupport::Deprecation.silenced = true`. Because ActiveRecord v4.0 does not support Ruby v1.8.7 and earlier, Ruby UCSC API no longer supports these older Rubies.
3
+ * **UPDATE** (v0.6.0): Ruby UCSC API is now licensed under the MIT License. See also the LICENSE.txt file.
2
4
  * **BUG-FIX** (v 0.5.3): Support ActiveRecord/ActiveSupport version 3 only.
3
5
  * **UPDATE** (v 0.5.3): The Rat Rn5 database is supported.
4
6
  * **UPDATE** (v 0.5.3): Bug-fix and update to pass all specs on Ruby 2.0.0-p0.
data/Gemfile CHANGED
@@ -1,21 +1,22 @@
1
1
  source "http://rubygems.org"
2
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.7"
7
- gem "mysql", "~> 2.8.1"
8
- gem "bio-genomic-interval", ">= 0.1.2"
9
- gem "safe_attributes", ">= 1.0.8"
3
+
4
+ gem "activerecord", "~> 4.0.2"
5
+ gem "activesupport", "~> 4.0.2"
6
+ gem "mysql", "~> 2.9.1"
7
+ gem "safe_attributes", "~> 1.0.10"
8
+ gem "activerecord-deprecated_finders", "~> 1.0.3"
9
+ gem "bio-genomic-interval", ">= 0.1.2"
10
+
10
11
 
11
12
  # Add dependencies to develop your gem here.
12
13
  # Include everything needed to run rake, tests, features, etc.
13
14
  group :development do
14
- gem "rake", "~> 10.1.0" # was "~> 0.9.2.2"
15
- gem "rspec", "~> 2.9.0" # was ~> 2.5.0
16
- gem "bundler", "~> 1.3.5" # was ~>1.1.0 was ~> 1.0.0
17
- gem "jeweler", "~> 1.8.3" # was ~> 1.5.2
18
- gem "bio", ">= 1.4.1"
19
- gem "rdoc", ">= 3.9.1"
15
+ gem "rake", "~> 10.1.0"
16
+ gem "rspec", "~> 2.14.1"
17
+ gem "bundler", "~> 1.3.5"
18
+ gem "jeweler", "~> 1.8.8"
19
+ gem "bio", ">= 1.4.3"
20
+ gem "rdoc", ">= 4.0.1"
20
21
  # gem "simplecov", :require => false, :group => :test
21
22
  end
data/Gemfile.lock CHANGED
@@ -1,22 +1,29 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (3.0.20)
5
- activesupport (= 3.0.20)
6
- builder (~> 2.1.2)
7
- i18n (~> 0.5.0)
8
- activerecord (3.0.20)
9
- activemodel (= 3.0.20)
10
- activesupport (= 3.0.20)
11
- arel (~> 2.0.10)
12
- tzinfo (~> 0.3.23)
13
- activesupport (3.0.20)
4
+ activemodel (4.0.2)
5
+ activesupport (= 4.0.2)
6
+ builder (~> 3.1.0)
7
+ activerecord (4.0.2)
8
+ activemodel (= 4.0.2)
9
+ activerecord-deprecated_finders (~> 1.0.2)
10
+ activesupport (= 4.0.2)
11
+ arel (~> 4.0.0)
12
+ activerecord-deprecated_finders (1.0.3)
13
+ activesupport (4.0.2)
14
+ i18n (~> 0.6, >= 0.6.4)
15
+ minitest (~> 4.2)
16
+ multi_json (~> 1.3)
17
+ thread_safe (~> 0.1)
18
+ tzinfo (~> 0.3.37)
14
19
  addressable (2.3.5)
15
- arel (2.0.10)
20
+ arel (4.0.1)
21
+ atomic (1.1.14)
22
+ atomic (1.1.14-java)
16
23
  bio (1.4.3.0001)
17
24
  bio-genomic-interval (0.1.2)
18
- builder (2.1.2)
19
- diff-lcs (1.1.3)
25
+ builder (3.1.4)
26
+ diff-lcs (1.2.5)
20
27
  faraday (0.8.8)
21
28
  multipart-post (~> 1.2.0)
22
29
  git (1.2.6)
@@ -28,10 +35,10 @@ GEM
28
35
  nokogiri (~> 1.5.2)
29
36
  oauth2
30
37
  hashie (2.0.5)
31
- highline (1.6.19)
38
+ highline (1.6.20)
32
39
  httpauth (0.2.0)
33
- i18n (0.5.0)
34
- jeweler (1.8.7)
40
+ i18n (0.6.9)
41
+ jeweler (1.8.8)
35
42
  builder
36
43
  bundler (~> 1.0)
37
44
  git (>= 1.2.5)
@@ -40,14 +47,15 @@ GEM
40
47
  nokogiri (= 1.5.10)
41
48
  rake
42
49
  rdoc
43
- json (1.8.0)
44
- json (1.8.0-java)
50
+ json (1.8.1)
51
+ json (1.8.1-java)
45
52
  jwt (0.1.8)
46
53
  multi_json (>= 1.5)
47
- multi_json (1.7.9)
54
+ minitest (4.7.5)
55
+ multi_json (1.8.2)
48
56
  multi_xml (0.5.5)
49
57
  multipart-post (1.2.0)
50
- mysql (2.8.1)
58
+ mysql (2.9.1)
51
59
  nokogiri (1.5.10)
52
60
  nokogiri (1.5.10-java)
53
61
  oauth2 (0.9.2)
@@ -61,31 +69,36 @@ GEM
61
69
  rake (10.1.0)
62
70
  rdoc (4.0.1)
63
71
  json (~> 1.4)
64
- rspec (2.9.0)
65
- rspec-core (~> 2.9.0)
66
- rspec-expectations (~> 2.9.0)
67
- rspec-mocks (~> 2.9.0)
68
- rspec-core (2.9.0)
69
- rspec-expectations (2.9.1)
70
- diff-lcs (~> 1.1.3)
71
- rspec-mocks (2.9.0)
72
+ rspec (2.14.1)
73
+ rspec-core (~> 2.14.0)
74
+ rspec-expectations (~> 2.14.0)
75
+ rspec-mocks (~> 2.14.0)
76
+ rspec-core (2.14.7)
77
+ rspec-expectations (2.14.4)
78
+ diff-lcs (>= 1.1.3, < 2.0)
79
+ rspec-mocks (2.14.4)
72
80
  safe_attributes (1.0.10)
73
81
  activerecord (>= 3.0.0)
74
- tzinfo (0.3.37)
82
+ thread_safe (0.1.3)
83
+ atomic
84
+ thread_safe (0.1.3-java)
85
+ atomic
86
+ tzinfo (0.3.38)
75
87
 
76
88
  PLATFORMS
77
89
  java
78
90
  ruby
79
91
 
80
92
  DEPENDENCIES
81
- activerecord (~> 3.0.7)
82
- activesupport (~> 3.0.7)
83
- bio (>= 1.4.1)
93
+ activerecord (~> 4.0.2)
94
+ activerecord-deprecated_finders (~> 1.0.3)
95
+ activesupport (~> 4.0.2)
96
+ bio (>= 1.4.3)
84
97
  bio-genomic-interval (>= 0.1.2)
85
98
  bundler (~> 1.3.5)
86
- jeweler (~> 1.8.3)
87
- mysql (~> 2.8.1)
99
+ jeweler (~> 1.8.8)
100
+ mysql (~> 2.9.1)
88
101
  rake (~> 10.1.0)
89
- rdoc (>= 3.9.1)
90
- rspec (~> 2.9.0)
91
- safe_attributes (>= 1.0.8)
102
+ rdoc (>= 4.0.1)
103
+ rspec (~> 2.14.1)
104
+ safe_attributes (~> 1.0.10)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011-2013 MISHIMA, Hiroyuki
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # bio-ucsc-api version 0.5.3
1
+ # bio-ucsc-api version 0.6.0
2
2
 
3
3
  **The Ruby UCSC API**: accessing the UCSC Genome Database using Ruby.
4
4
 
@@ -27,7 +27,7 @@ $ gem install bio-ucsc-api
27
27
  * Automatic conversion of "1-based full-closed intervals" to internal "0-based left-closed right-open intervals" (see also bioruby-genomic-interval)
28
28
  * Supporting non-official full/partial mirror MySql hosts (e.g. local servers)
29
29
  * Using Rspec for the testing framework
30
- * Written in pure Ruby and supporting multiple Ruby interpreter implementations including Ruby1.8, Ruby1.9, and JRuby1.6
30
+ * Written in pure Ruby and supporting multiple Ruby interpreter implementations including Ruby1.9, Ruby2.0and JRuby1.6
31
31
  * Designed as a BioRuby plugin
32
32
  * Current version does not support table-linked bigWIG/bigBED/BAM files.
33
33
 
@@ -54,13 +54,15 @@ Supported Ruby interpreter implementations:
54
54
 
55
55
  * Ruby Version 2.0.0 or later
56
56
  * Ruby version 1.9.2 or later
57
- * Ruby version 1.8.7 or later
58
57
  * 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.
59
58
 
60
- Major dependent gems:
59
+ * Ruby version 1.8.7 or earlier are no longer supported by UCSC API v0.6.0 and later because Ruby on Rails and ActiveRecord version 4.0 do not support these old Rubies.
61
60
 
62
- * active_record version 3 - http://api.rubyonrails.org/classes/ActiveRecord/Base.html
61
+ Major rubygem dependencies:
62
+
63
+ * active_record version **4.0** - http://api.rubyonrails.org/classes/ActiveRecord/Base.html
63
64
  * safe_attributes - https://github.com/bjones/safe_attributes
65
+ * activerecord-deprecated_finders - http://github.com/rails/activerecord-deprecated_finders -- supporting AR4.0 deprecated dynamic finders shch as 'find_all_by_name'. To suppress deprecation warnings, you have to add `ActiveSupport::Deprecation.silenced = true`.
64
66
  * bioruby-genomic-interval - https://github.com/misshie/bioruby-genomic-interval
65
67
  * mysql (MySQL/Ruby MySQL API module) - http://www.tmtm.org/mysql/ruby/README.html
66
68
 
@@ -70,14 +72,17 @@ See also:
70
72
  * UCSCBin library - https://github.com/misshie/UCSCBin
71
73
 
72
74
  # Change Log
73
- See 'ChangeLog.md'.
75
+ * **NEW** (v0.6.0): Support ActiveRecord v4.0 (a part of Ruby on Ralils v4.0). Other related library dependencies are also updated. To Supress deprecation warnings for using dynamic finders such as 'find_by_name_and_chrom', use `ActiveSupport::Deprecation.silenced = true`. Because ActiveRecord v4.0 does not support Ruby v1.8.7 and earlier, Ruby UCSC API no longer supports these older Rubies.
76
+ * **UPDATE** (v0.6.0): Ruby UCSC API is now licensed under the MIT License. See also the LICENSE.txt file.
77
+
78
+ See 'ChangeLog.md' for older changes.
74
79
 
75
80
  # How to Use
76
81
  ## Basics
77
- * 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`.
78
- * Before using a database, establish a connection to the database. For example, `Bio::Ucsc::Hg19::DBConnection.connect`.
79
- * 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`.
80
- * 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`.
82
+ * A database of a genome assembly is represented as a module in the `Bio::Ucsc` module. For example, the human hg19 database is referred by `Bio::Ucsc::Hg19`.
83
+ * Before using a database, establish a connection to the database. For example, `Bio::Ucsc::Hg19.connect`.
84
+ * A table in a database is represented as a class in the database module. For example, the snp138 table in the hg19 database is referred by `Bio::Ucsc::Hg19::Snp138`.
85
+ * 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 snp138 table in the hg19 database is `Bio::Ucsc::Hg19::Snp138.first`.
81
86
  * 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.
82
87
  * 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`.
83
88
 
@@ -87,49 +92,66 @@ At first, you have to declare the API and establish the connection to a database
87
92
  ```ruby
88
93
  require 'bio-ucsc'
89
94
 
90
- include Bio # shorthand for ommitting the "Bio::" prefix
91
- Ucsc::Hg19.connect
95
+ DB = Bio::Ucsc::Hg19
96
+ DB.connect
97
+
98
+ # Suppressing deprecation warnings for using dynamic finders such as 'find_by_name_and_chrom'.
99
+ # These syles are deprecated in ActiveRecord 4.0.
100
+ ActiveSupport::Deprecation.silenced = true
92
101
  ```
93
102
 
94
103
  Table search using genomic intervals:
95
104
 
96
105
  ```ruby
97
- Ucsc::Hg19::Snp131.with_interval("chr1:1-11,000").find(:all).each do |e|
106
+ DB = Bio::Ucsc::Hg19
107
+ DB.connect
108
+
109
+ DB::Snp138.with_interval("chr1:1-11,000").find(:all).each do |e|
98
110
  i = GenomicInterval.zero_based(e.chrom, e.chromStart, e.chromEnd)
99
111
  puts "#{i.chrom}\t#{i.chr_start}\t#{e.name}\t#{e[:class]}" # "e.class" does not work
100
112
  end
101
113
 
102
114
  gi = "chr17:7,579,614-7,579,700"
103
- puts Ucsc::Hg19::Snp131.with_interval(gi).find(:all)
115
+ puts DB::Snp138.with_interval(gi).find(:all)
104
116
 
105
- puts Ucsc::Hg19::Snp131.with_interval_excl(gi).find(:all)
117
+ puts DB::Snp138.with_interval_excl(gi).find(:all)
106
118
 
107
- relation = Ucsc::Hg19::Snp131.with_interval(gi).select(:name)
119
+ relation = DB::Snp138.with_interval(gi).select(:name)
108
120
  puts relation.to_sql
109
- # => SELECT name FROM `snp131`
110
- WHERE (chrom = 'chr17' AND bin in (642,80,9,1,0)
111
- AND ((chromStart BETWEEN 7579613 AND 7579700) AND
112
- (chromEnd BETWEEN 7579613 AND 7579700)))"
121
+ # => SELECT name FROM `snp138`
122
+ # WHERE (chrom = 'chr17' AND bin in (642,80,9,1,0)
123
+ # AND ((chromStart BETWEEN 7579613 AND 7579700) AND
124
+ # (chromEnd BETWEEN 7579613 AND 7579700)))
113
125
  puts relation.find_all_by_class_and_strand("in-del", "+").size # => 1
114
126
 
115
- puts Ucsc::Hg19::Snp131.find_by_name("rs56289060")
127
+ # Rails4 style
128
+ puts DB::Snp138.where(name: "rs56289060").first
129
+
130
+ # Old style
131
+ ActiveSupport::Deprecation.silenced = true # Suppress warnings
132
+ puts DB::Snp138.find_all_by_name("rs56289060").first
116
133
  ```
117
134
 
118
135
  Sometimes, queries using raw SQLs provide elegant solutions.
119
136
 
120
137
  ```ruby
138
+ DB = Bio::Ucsc::Hg19
139
+ DB.connect
140
+
121
141
  sql << 'SQL'
122
142
  SELECT name,chrom,chromStart,chromEnd,observed
123
- FROM snp131
143
+ FROM snp138
124
144
  WHERE name="rs56289060"
125
145
  SQL
126
- puts Ucsc::Hg19::Snp131.find_by_sql(sql)
146
+ puts DB::Snp138.find_by_sql(sql)
127
147
  ```
128
148
  For gene prediction (genePred) tables, such as RefSeq, EndGene, and WgEncodeGencodeBasicV12, Ruby UCSC API automatically implements `#exon`, `#introns`, `#cdss` (or an alias `#cdses`) methods. Exons, introns, and CDSes are accessible as Array objects of `Bio::GenomicInterval`.
129
149
 
130
150
  ```ruby
131
- Bio::Ucsc::Hg19.connect
132
- r = Bio::Ucsc::Hg19::RefGene.with_interval("chr1:1,000,000-1,100,000").first
151
+ DB = Bio::Ucsc::Hg19
152
+ DB.connect
153
+
154
+ r = DB::RefGene.with_interval("chr1:1,000,000-1,100,000").first
133
155
  puts "gene strand = #{r.strand}"
134
156
  r.exons.each{|x|puts "[#{x.chr_start}, #{x.chr_end}]"}
135
157
  r.cdss.each{|x|puts "[#{x.chr_start}, #{x.chr_end}]"}
@@ -139,22 +161,22 @@ For gene prediction (genePred) tables, such as RefSeq, EndGene, and WgEncodeGenc
139
161
  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
140
162
 
141
163
  ```ruby
142
- hg19ref = Ucsc::File::Twobit.load("hg19.2bit")
164
+ hg19ref = Bio::Ucsc::File::Twobit.load("hg19.2bit")
143
165
  puts hg19ref.find_by_interval("chr1:9,500-10,999")
144
166
 
145
167
  # another way to access a twobit file
146
- puts Ucsc::File::Twobit.open("hg19.2bit"){|tb|tb.find_by_interval("chr1:9,500-10,999")}
168
+ puts Bio::Ucsc::File::Twobit.open("hg19.2bit"){|tb|tb.find_by_interval("chr1:9,500-10,999")}
147
169
  ```
148
170
 
149
171
  Connetcting to non-official or local full/partial mirror MySQL servers
150
172
 
151
173
  ```ruby
152
- Ucsc::Hg18.connect( :db_host => 'localhost',
153
- :db_username => 'genome',
154
- :db_password => '' )
174
+ Bio::Ucsc::Hg18.connect( :db_host => 'localhost',
175
+ :db_username => 'genome',
176
+ :db_password => '' )
155
177
 
156
- Ucsc::Hg18.default # reset to connect UCSC's public MySQL sever
157
- Ucsc::Hg18.connect
178
+ Bio::Ucsc::Hg18.default # reset to connect UCSC's public MySQL sever
179
+ Bio::Ucsc::Hg18.connect
158
180
  ```
159
181
 
160
182
  And see also sample scripts in the samples directory.
@@ -226,13 +248,12 @@ Bio::Ucsc::Hg19.connect
226
248
  Bio::Ucsc::Hg18.connect
227
249
  joiner = Bio::Ucsc::Schema::Joiner.load
228
250
  joiner.variables["gbd"] = ["hg19", "hg18"]
229
- joiner.define_association(Bio::Ucsc::Hg19::Snp131)
230
- # "first" is required because the snp131Seq method always returns an array.
231
- puts Bio::Ucsc::Hg19::Snp131.find_by_name("rs242").snp131Seq.first.file_offset
251
+ joiner.define_association(Bio::Ucsc::Hg19::Snp138)
252
+ # "first" is required because the snp138Seq method always returns an array.
253
+ puts Bio::Ucsc::Hg19::Snp138.find_by_name("rs242").snp138Seq.first.file_offset
232
254
  ```
233
255
 
234
256
  # Copyright
235
257
  **Copyright**: (c) 2011-2013 MISHIMA, Hiroyuki (hmishima at nagasaki-u.ac.jp / Twitter: @mishima_eng (in English) and @mishimahryk (in Japanese)
236
258
  **Copyright**: (c) 2010 Jan Aerts
237
- **License**: Ruby license (Ruby's / GPLv2 dual). See COPYING and COPYING.ja for further details..
238
-
259
+ **License**: The MIT license. See LICENSE.txt for further details..
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ Jeweler::Tasks.new do |gem|
17
17
  # see http://docs.rubygems.org/read/chapter/20 for more options
18
18
  gem.name = "bio-ucsc-api"
19
19
  gem.homepage = "http://github.com/misshie/bioruby-ucsc-api"
20
- gem.license = "Ruby (Ruby's/GPLv2 dual)"
20
+ gem.license = "The MIT License"
21
21
  gem.summary = %Q{The Ruby UCSC API: accessing the UCSC Genome Database using Ruby}
22
22
  gem.description = %Q{Ruby UCSC API: accessing the UCSC Genome Database using Ruby}
23
23
  gem.email = "missy@be.to"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.6.0
data/bio-ucsc-api.gemspec CHANGED
@@ -5,27 +5,28 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bio-ucsc-api"
8
- s.version = "0.5.3"
8
+ s.version = "0.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Hiroyuki Mishima", "Jan Aerts"]
12
- s.date = "2013-08-27"
12
+ s.date = "2013-12-11"
13
13
  s.description = "Ruby UCSC API: accessing the UCSC Genome Database using Ruby"
14
14
  s.email = "missy@be.to"
15
15
  s.extra_rdoc_files = [
16
16
  "ChangeLog.md",
17
+ "LICENSE.txt",
17
18
  "README.md"
18
19
  ]
19
20
  s.files = [
20
- "COPYING",
21
- "COPYING.ja",
22
21
  "ChangeLog.md",
23
22
  "Gemfile",
24
23
  "Gemfile.lock",
24
+ "LICENSE.txt",
25
25
  "README.md",
26
26
  "Rakefile",
27
27
  "VERSION",
28
28
  "bio-ucsc-api.gemspec",
29
+ "lib/#bio-ucsc.rb#",
29
30
  "lib/bio-ucsc-api.rb",
30
31
  "lib/bio-ucsc.rb",
31
32
  "lib/bio-ucsc/ailmel1.rb",
@@ -433,7 +434,7 @@ Gem::Specification.new do |s|
433
434
  "samples/symbol2summary.rb"
434
435
  ]
435
436
  s.homepage = "http://github.com/misshie/bioruby-ucsc-api"
436
- s.licenses = ["Ruby (Ruby's/GPLv2 dual)"]
437
+ s.licenses = ["The MIT License"]
437
438
  s.require_paths = ["lib"]
438
439
  s.rubygems_version = "1.8.11"
439
440
  s.summary = "The Ruby UCSC API: accessing the UCSC Genome Database using Ruby"
@@ -442,42 +443,45 @@ Gem::Specification.new do |s|
442
443
  s.specification_version = 3
443
444
 
444
445
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
445
- s.add_runtime_dependency(%q<activerecord>, ["~> 3.0.7"])
446
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.7"])
447
- s.add_runtime_dependency(%q<mysql>, ["~> 2.8.1"])
446
+ s.add_runtime_dependency(%q<activerecord>, ["~> 4.0.2"])
447
+ s.add_runtime_dependency(%q<activesupport>, ["~> 4.0.2"])
448
+ s.add_runtime_dependency(%q<mysql>, ["~> 2.9.1"])
449
+ s.add_runtime_dependency(%q<safe_attributes>, ["~> 1.0.10"])
450
+ s.add_runtime_dependency(%q<activerecord-deprecated_finders>, ["~> 1.0.3"])
448
451
  s.add_runtime_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
449
- s.add_runtime_dependency(%q<safe_attributes>, [">= 1.0.8"])
450
452
  s.add_development_dependency(%q<rake>, ["~> 10.1.0"])
451
- s.add_development_dependency(%q<rspec>, ["~> 2.9.0"])
453
+ s.add_development_dependency(%q<rspec>, ["~> 2.14.1"])
452
454
  s.add_development_dependency(%q<bundler>, ["~> 1.3.5"])
453
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
454
- s.add_development_dependency(%q<bio>, [">= 1.4.1"])
455
- s.add_development_dependency(%q<rdoc>, [">= 3.9.1"])
455
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.8"])
456
+ s.add_development_dependency(%q<bio>, [">= 1.4.3"])
457
+ s.add_development_dependency(%q<rdoc>, [">= 4.0.1"])
456
458
  else
457
- s.add_dependency(%q<activerecord>, ["~> 3.0.7"])
458
- s.add_dependency(%q<activesupport>, ["~> 3.0.7"])
459
- s.add_dependency(%q<mysql>, ["~> 2.8.1"])
459
+ s.add_dependency(%q<activerecord>, ["~> 4.0.2"])
460
+ s.add_dependency(%q<activesupport>, ["~> 4.0.2"])
461
+ s.add_dependency(%q<mysql>, ["~> 2.9.1"])
462
+ s.add_dependency(%q<safe_attributes>, ["~> 1.0.10"])
463
+ s.add_dependency(%q<activerecord-deprecated_finders>, ["~> 1.0.3"])
460
464
  s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
461
- s.add_dependency(%q<safe_attributes>, [">= 1.0.8"])
462
465
  s.add_dependency(%q<rake>, ["~> 10.1.0"])
463
- s.add_dependency(%q<rspec>, ["~> 2.9.0"])
466
+ s.add_dependency(%q<rspec>, ["~> 2.14.1"])
464
467
  s.add_dependency(%q<bundler>, ["~> 1.3.5"])
465
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
466
- s.add_dependency(%q<bio>, [">= 1.4.1"])
467
- s.add_dependency(%q<rdoc>, [">= 3.9.1"])
468
+ s.add_dependency(%q<jeweler>, ["~> 1.8.8"])
469
+ s.add_dependency(%q<bio>, [">= 1.4.3"])
470
+ s.add_dependency(%q<rdoc>, [">= 4.0.1"])
468
471
  end
469
472
  else
470
- s.add_dependency(%q<activerecord>, ["~> 3.0.7"])
471
- s.add_dependency(%q<activesupport>, ["~> 3.0.7"])
472
- s.add_dependency(%q<mysql>, ["~> 2.8.1"])
473
+ s.add_dependency(%q<activerecord>, ["~> 4.0.2"])
474
+ s.add_dependency(%q<activesupport>, ["~> 4.0.2"])
475
+ s.add_dependency(%q<mysql>, ["~> 2.9.1"])
476
+ s.add_dependency(%q<safe_attributes>, ["~> 1.0.10"])
477
+ s.add_dependency(%q<activerecord-deprecated_finders>, ["~> 1.0.3"])
473
478
  s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
474
- s.add_dependency(%q<safe_attributes>, [">= 1.0.8"])
475
479
  s.add_dependency(%q<rake>, ["~> 10.1.0"])
476
- s.add_dependency(%q<rspec>, ["~> 2.9.0"])
480
+ s.add_dependency(%q<rspec>, ["~> 2.14.1"])
477
481
  s.add_dependency(%q<bundler>, ["~> 1.3.5"])
478
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
479
- s.add_dependency(%q<bio>, [">= 1.4.1"])
480
- s.add_dependency(%q<rdoc>, [">= 3.9.1"])
482
+ s.add_dependency(%q<jeweler>, ["~> 1.8.8"])
483
+ s.add_dependency(%q<bio>, [">= 1.4.3"])
484
+ s.add_dependency(%q<rdoc>, [">= 4.0.1"])
481
485
  end
482
486
  end
483
487
 
data/lib/#bio-ucsc.rb# ADDED
@@ -0,0 +1,209 @@
1
+ #
2
+ # = bio-ucsc.rb
3
+ # Copyright:: Copyright (C) 2011-2013
4
+ # MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp>
5
+ # License:: Ruby licence (Ryby's / GPLv2 dual)
6
+
7
+ base = "#{::File.dirname(__FILE__)}/bio-ucsc"
8
+
9
+ require 'rubygems'
10
+ gem 'activerecord', "~> 4.0.2"
11
+ require "active_record"
12
+ gem "safe_attributes"
13
+ require "safe_attributes"
14
+ gem "activerecord-deprecated_finders"
15
+ require "active_record/deprecated_finders"
16
+ #ActiveSupport::Deprecation.silenced = true
17
+
18
+ require "#{base}/ucsc_bin"
19
+ require "#{base}/genomic-interval-bin"
20
+ require "#{base}/gi.rb"
21
+
22
+ module Bio
23
+ module Ucsc
24
+ VERSION = "0.6.0"
25
+ base = "#{::File.dirname(__FILE__)}/bio-ucsc"
26
+
27
+ # mammmals #####################################
28
+ # human genome assemblies
29
+ autoload :Hg19, "#{base}/hg19"
30
+ autoload :Hg18, "#{base}/hg18"
31
+
32
+ # chimp genome assemblies
33
+ autoload :PanTro3, "#{base}/pantro3"
34
+
35
+ # orangutan genome assemblies
36
+ autoload :PonAbe2, "#{base}/ponabe2"
37
+
38
+ # rhesus macaque genome assemblies
39
+ autoload :RheMac2, "#{base}/rhemac2"
40
+
41
+ # marmoset genome assemblies
42
+ autoload :CalJac3, "#{base}/caljac3"
43
+
44
+ # mouse genome assemblies
45
+ autoload :Mm9, "#{base}/mm9"
46
+ autoload :Mm10, "#{base}/mm10"
47
+
48
+ # rat genome assemblies
49
+ autoload :Rn5, "#{base}/rn5"
50
+ autoload :Rn4, "#{base}/rn4"
51
+
52
+ # guinea pig genome assemblies
53
+ autoload :CavPor3, "#{base}/cavpor3"
54
+
55
+ # rabbit genome assemblies
56
+ autoload :OryCun2, "#{base}/orycun2"
57
+
58
+ # cat genome assemblies
59
+ autoload :FelCat4, "#{base}/felcat4"
60
+
61
+ # panda genome assemblies
62
+ autoload :AilMel1, "#{base}/ailmel1"
63
+
64
+ # dog genome assemblies
65
+ autoload :CanFam2, "#{base}/canfam2"
66
+
67
+ # horse genome assemblies
68
+ autoload :EquCab2, "#{base}/equcab2"
69
+
70
+ # pig genome assemblies
71
+ autoload :SusScr2, "#{base}/susscr2"
72
+
73
+ # sheep genome assemblies
74
+ autoload :OviAri1, "#{base}/oviari1"
75
+
76
+ # cow genome assemblies
77
+ autoload :BosTau4, "#{base}/bostau4"
78
+
79
+ # elephant genome assemblies
80
+ autoload :LoxAfr3, "#{base}/loxafr3"
81
+
82
+ # opossum genome assemblies
83
+ autoload :MonDom5, "#{base}/mondom5"
84
+
85
+ # platypus genome assemblies
86
+ autoload :OrnAna1, "#{base}/ornana1"
87
+
88
+ # vertebrates #################################
89
+ # chiken genome assemblies
90
+ autoload :GalGal4, "#{base}/galgal4"
91
+
92
+ # zebra finch genome assemblies
93
+ autoload :TaeGut1, "#{base}/taegut1"
94
+
95
+ # lizard genome assemblies
96
+ autoload :AnoCar2, "#{base}/anocar2"
97
+
98
+ # X. tropicalis genome assemblies
99
+ autoload :XenTro2, "#{base}/xentro2"
100
+
101
+ # zebrafish genome assemblies
102
+ autoload :DanRer7, "#{base}/danrer7"
103
+
104
+ # tetraodon genome assemblies
105
+ autoload :TetNig2, "#{base}/tetnig2"
106
+
107
+ # fugu genome assemblies
108
+ autoload :Fr2, "#{base}/fr2"
109
+
110
+ # stickleback genome assemblies
111
+ autoload :GasAcu1, "#{base}/gasacu1"
112
+
113
+ # medaka genome assemblies
114
+ autoload :OryLat2, "#{base}/orylat2"
115
+
116
+ # lamprey genome assemblies
117
+ autoload :PetMar1, "#{base}/petmar1"
118
+
119
+ # deuterostomes ###############################
120
+ # lancelet genome assemblies
121
+ autoload :BraFlo1, "#{base}/braflo1.rb"
122
+
123
+ # sea squirt genome assemblies
124
+ autoload :Ci2, "#{base}/ci2"
125
+
126
+ # sea urchin genome assemblies
127
+ autoload :StrPur2, "#{base}/strpur2"
128
+
129
+ # insects ####################################
130
+ # D. melanogaster genome assemblies
131
+ autoload :Dm3, "#{base}/dm3"
132
+
133
+ # D. silulans genome assemblies
134
+ autoload :DroSim1, "#{base}/drosim1"
135
+
136
+ # D. sechellia genome assemblies
137
+ autoload :DroSec1, "#{base}/drosec1"
138
+
139
+ # D. yakuba genome assemblies
140
+ autoload :DroYak2, "#{base}/droyak2"
141
+
142
+ # D. erecta genome assemblies
143
+ autoload :DroEre1, "#{base}/droere1"
144
+
145
+ # D. ananassae genome assemblies
146
+ autoload :DroAna2, "#{base}/droana2"
147
+
148
+ # D. pseudoobscura genome assemblies
149
+ autoload :Dp3, "#{base}/dp3"
150
+
151
+ # D. persimilis genome assemblies
152
+ autoload :DroPer1, "#{base}/droper1"
153
+
154
+ # D. virilis genome assemblies
155
+ autoload :DroVir2, "#{base}/drovir2"
156
+
157
+ # D. mojavensis genome assemblies
158
+ autoload :DroMoj2, "#{base}/dromoj2"
159
+
160
+ # D. grimshawi genome assemblies
161
+ autoload :DroGri1, "#{base}/drogri1"
162
+
163
+ # Anopheles mosquito genome assemblies
164
+ autoload :AnoGam1, "#{base}/anogam1"
165
+
166
+ # honey bee genome assemblies
167
+ autoload :ApiMel2, "#{base}/apimel2"
168
+
169
+ # nematodes ###################################
170
+ # C. elegans genome assemblies
171
+ autoload :Ce6, "#{base}/ce6"
172
+
173
+ # C. brenneri genome assemblies
174
+ autoload :CaePb2, "#{base}/caepb2"
175
+
176
+ # C. briggsae genome assemblies
177
+ autoload :Cb3, "#{base}/cb3"
178
+
179
+ # C. remanei genome assemblies
180
+ autoload :CaeRem3, "#{base}/caerem3"
181
+
182
+ # C. japonica genome assemblies
183
+ autoload :CaeJap1, "#{base}/caejap1"
184
+
185
+ # P. pacificus genome assemblies
186
+ autoload :PriPac1, "#{base}/pripac1"
187
+
188
+ # others #####################################
189
+ # sea hare genome assemblies
190
+ autoload :AplCal1, "#{base}/aplcal1"
191
+
192
+ # yeast genome assemblies
193
+ autoload :SacCer2, "#{base}/saccer2"
194
+
195
+ # genome assembly independent dababases #######
196
+ autoload :UniProt, "#{base}/uniprot"
197
+ autoload :Proteome, "#{base}/proteome"
198
+ autoload :Go, "#{base}/go"
199
+ autoload :HgFixed, "#{base}/hgfixed"
200
+ autoload :VisiGene, "#{base}/visigene"
201
+
202
+ # utility classes #############################
203
+ # accessing genome sequences in the 2bit format
204
+ # after version 0.4.0, UCSC::Reference is moved to UCSC::File::Twobit
205
+ autoload :File, "#{base}/file"
206
+ autoload :Reference, "#{base}/reference"
207
+ autoload :Schema, "#{base}/schema"
208
+ end
209
+ end
data/lib/bio-ucsc.rb CHANGED
@@ -7,17 +7,21 @@
7
7
  base = "#{::File.dirname(__FILE__)}/bio-ucsc"
8
8
 
9
9
  require 'rubygems'
10
- gem 'activerecord', ">=3.0.7"
10
+ gem 'activerecord', "~> 4.0.2"
11
11
  require "active_record"
12
12
  gem "safe_attributes"
13
13
  require "safe_attributes"
14
+ gem "activerecord-deprecated_finders"
15
+ require "active_record/deprecated_finders"
16
+ #ActiveSupport::Deprecation.silenced = true
17
+
14
18
  require "#{base}/ucsc_bin"
15
19
  require "#{base}/genomic-interval-bin"
16
20
  require "#{base}/gi.rb"
17
21
 
18
22
  module Bio
19
23
  module Ucsc
20
- VERSION = "0.5.3"
24
+ VERSION = "0.6.0"
21
25
  base = "#{::File.dirname(__FILE__)}/bio-ucsc"
22
26
 
23
27
  # mammmals #####################################
@@ -1,11 +1,10 @@
1
- #!/usr/local/bin/ruby-1.9
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  #require 'bio-ucsc'
4
4
  require '../lib/bio-ucsc'
5
5
 
6
- include Bio
7
-
8
- Ucsc::Hg19::DBConnection.connect
6
+ DB = Bio::Ucsc::Hg19
7
+ DB.connect
9
8
 
10
9
  genes = Array.new
11
10
  ARGF.each_line do |row|
@@ -16,7 +15,7 @@ ARGF.each_line do |row|
16
15
  Integer(chr_start),
17
16
  Integer(chr_end),)
18
17
 
19
- results = Ucsc::Hg19::RefGene.with_interval(gi).select(:name2).find(:all)
18
+ results = DB.with_interval(gi).select(:name2).find(:all)
20
19
  genes.concat(results.map{|e|e.name2})
21
20
  end
22
21
 
@@ -16,12 +16,11 @@ HG19_2BIT_FILE = "hg19.2bit"
16
16
  require File.dirname(__FILE__) + '/../lib/bio-ucsc'
17
17
 
18
18
  class Hg19Ref
19
- include Bio::Ucsc::Hg19
19
+ DB = Bio::Ucsc::Hg19
20
20
 
21
21
  def run(interval)
22
- DBConnection.connect
22
+ DB.connect
23
23
  ref = Bio::Ucsc::Reference.load(HG19_2BIT_FILE) # v0.2 and later
24
-
25
24
  itv = Bio::GenomicInterval.parse(interval)
26
25
 
27
26
  puts itv.to_s
@@ -13,9 +13,10 @@ require 'bio-ucsc'
13
13
 
14
14
  interval = Bio::GenomicInterval.parse(ARGV[0])
15
15
 
16
- Bio::Ucsc::Hg18::DBConnection.connect
16
+ DB = Bio::Ucsc::Hg18
17
+ DB.connect
17
18
 
18
- genes = Bio::Ucsc::Hg18::RefGene.with_interval(interval).find(:all).map{|e|e.name2}.uniq
19
+ genes = DB::RefGene.with_interval(interval).find(:all).map{|e|e.name2}.uniq
19
20
  puts "Included genes:"
20
21
  puts genes
21
22
  puts "Number of genes:"
@@ -24,7 +25,7 @@ puts genes.size
24
25
  total_exons = 0
25
26
  genes.each do |gene|
26
27
  total_exons +=
27
- Bio::Ucsc::Hg18::RefGene.
28
+ DB::RefGene.
28
29
  with_interval(interval).
29
30
  find_all_by_name2(gene).
30
31
  map{|e|e.exonCount}.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-ucsc-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,66 +10,77 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-27 00:00:00.000000000 Z
13
+ date: 2013-12-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
17
- requirement: &258436740 !ruby/object:Gem::Requirement
17
+ requirement: &160170600 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 3.0.7
22
+ version: 4.0.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *258436740
25
+ version_requirements: *160170600
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activesupport
28
- requirement: &258436120 !ruby/object:Gem::Requirement
28
+ requirement: &160169480 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.7
33
+ version: 4.0.2
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *258436120
36
+ version_requirements: *160169480
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: mysql
39
- requirement: &258435560 !ruby/object:Gem::Requirement
39
+ requirement: &160168120 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
43
43
  - !ruby/object:Gem::Version
44
- version: 2.8.1
44
+ version: 2.9.1
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *258435560
47
+ version_requirements: *160168120
48
48
  - !ruby/object:Gem::Dependency
49
- name: bio-genomic-interval
50
- requirement: &258451220 !ruby/object:Gem::Requirement
49
+ name: safe_attributes
50
+ requirement: &160166800 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
- - - ! '>='
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: 0.1.2
55
+ version: 1.0.10
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *258451220
58
+ version_requirements: *160166800
59
59
  - !ruby/object:Gem::Dependency
60
- name: safe_attributes
61
- requirement: &258450100 !ruby/object:Gem::Requirement
60
+ name: activerecord-deprecated_finders
61
+ requirement: &160165900 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ version: 1.0.3
67
+ type: :runtime
68
+ prerelease: false
69
+ version_requirements: *160165900
70
+ - !ruby/object:Gem::Dependency
71
+ name: bio-genomic-interval
72
+ requirement: &160181120 !ruby/object:Gem::Requirement
62
73
  none: false
63
74
  requirements:
64
75
  - - ! '>='
65
76
  - !ruby/object:Gem::Version
66
- version: 1.0.8
77
+ version: 0.1.2
67
78
  type: :runtime
68
79
  prerelease: false
69
- version_requirements: *258450100
80
+ version_requirements: *160181120
70
81
  - !ruby/object:Gem::Dependency
71
82
  name: rake
72
- requirement: &258449180 !ruby/object:Gem::Requirement
83
+ requirement: &160180180 !ruby/object:Gem::Requirement
73
84
  none: false
74
85
  requirements:
75
86
  - - ~>
@@ -77,21 +88,21 @@ dependencies:
77
88
  version: 10.1.0
78
89
  type: :development
79
90
  prerelease: false
80
- version_requirements: *258449180
91
+ version_requirements: *160180180
81
92
  - !ruby/object:Gem::Dependency
82
93
  name: rspec
83
- requirement: &258448320 !ruby/object:Gem::Requirement
94
+ requirement: &160179160 !ruby/object:Gem::Requirement
84
95
  none: false
85
96
  requirements:
86
97
  - - ~>
87
98
  - !ruby/object:Gem::Version
88
- version: 2.9.0
99
+ version: 2.14.1
89
100
  type: :development
90
101
  prerelease: false
91
- version_requirements: *258448320
102
+ version_requirements: *160179160
92
103
  - !ruby/object:Gem::Dependency
93
104
  name: bundler
94
- requirement: &258447480 !ruby/object:Gem::Requirement
105
+ requirement: &160178180 !ruby/object:Gem::Requirement
95
106
  none: false
96
107
  requirements:
97
108
  - - ~>
@@ -99,57 +110,58 @@ dependencies:
99
110
  version: 1.3.5
100
111
  type: :development
101
112
  prerelease: false
102
- version_requirements: *258447480
113
+ version_requirements: *160178180
103
114
  - !ruby/object:Gem::Dependency
104
115
  name: jeweler
105
- requirement: &258446680 !ruby/object:Gem::Requirement
116
+ requirement: &160177160 !ruby/object:Gem::Requirement
106
117
  none: false
107
118
  requirements:
108
119
  - - ~>
109
120
  - !ruby/object:Gem::Version
110
- version: 1.8.3
121
+ version: 1.8.8
111
122
  type: :development
112
123
  prerelease: false
113
- version_requirements: *258446680
124
+ version_requirements: *160177160
114
125
  - !ruby/object:Gem::Dependency
115
126
  name: bio
116
- requirement: &258445800 !ruby/object:Gem::Requirement
127
+ requirement: &160176000 !ruby/object:Gem::Requirement
117
128
  none: false
118
129
  requirements:
119
130
  - - ! '>='
120
131
  - !ruby/object:Gem::Version
121
- version: 1.4.1
132
+ version: 1.4.3
122
133
  type: :development
123
134
  prerelease: false
124
- version_requirements: *258445800
135
+ version_requirements: *160176000
125
136
  - !ruby/object:Gem::Dependency
126
137
  name: rdoc
127
- requirement: &258444980 !ruby/object:Gem::Requirement
138
+ requirement: &160175260 !ruby/object:Gem::Requirement
128
139
  none: false
129
140
  requirements:
130
141
  - - ! '>='
131
142
  - !ruby/object:Gem::Version
132
- version: 3.9.1
143
+ version: 4.0.1
133
144
  type: :development
134
145
  prerelease: false
135
- version_requirements: *258444980
146
+ version_requirements: *160175260
136
147
  description: ! 'Ruby UCSC API: accessing the UCSC Genome Database using Ruby'
137
148
  email: missy@be.to
138
149
  executables: []
139
150
  extensions: []
140
151
  extra_rdoc_files:
141
152
  - ChangeLog.md
153
+ - LICENSE.txt
142
154
  - README.md
143
155
  files:
144
- - COPYING
145
- - COPYING.ja
146
156
  - ChangeLog.md
147
157
  - Gemfile
148
158
  - Gemfile.lock
159
+ - LICENSE.txt
149
160
  - README.md
150
161
  - Rakefile
151
162
  - VERSION
152
163
  - bio-ucsc-api.gemspec
164
+ - lib/#bio-ucsc.rb#
153
165
  - lib/bio-ucsc-api.rb
154
166
  - lib/bio-ucsc.rb
155
167
  - lib/bio-ucsc/ailmel1.rb
@@ -557,7 +569,7 @@ files:
557
569
  - samples/symbol2summary.rb
558
570
  homepage: http://github.com/misshie/bioruby-ucsc-api
559
571
  licenses:
560
- - Ruby (Ruby's/GPLv2 dual)
572
+ - The MIT License
561
573
  post_install_message:
562
574
  rdoc_options: []
563
575
  require_paths:
@@ -570,7 +582,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
570
582
  version: '0'
571
583
  segments:
572
584
  - 0
573
- hash: 4260927560665571568
585
+ hash: -3654614311172701481
574
586
  required_rubygems_version: !ruby/object:Gem::Requirement
575
587
  none: false
576
588
  requirements:
data/COPYING DELETED
@@ -1,58 +0,0 @@
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 DELETED
@@ -1,53 +0,0 @@
1
- # -*- coding: iso-2022-jp -*-
2
-
3
- $BK\%W%m%0%i%`$O%U%j!<%=%U%H%&%'%"$G$9!%(BGPL (the GNU General
4
- Public License)$B%P!<%8%g%s(B2$B$^$?$O0J2<$K<($9>r7o$GK\%W%m%0%i%`(B
5
- $B$r:FG[I[$G$-$^$9!%(BGPL$B$K$D$$$F$O(BGPL$B%U%!%$%k$r;2>H$7$F2<$5$$!%(B
6
-
7
- 1. $BJ#@=$O@)8B$J$/<+M3$G$9!%(B
8
-
9
- 2. $B0J2<$N>r7o$N$$$:$l$+$rK~$?$9;~$KK\%W%m%0%i%`$N%=!<%9$r(B
10
- $B<+M3$KJQ99$G$-$^$9!%(B
11
-
12
- (a) $B%M%C%H%K%e!<%:$K%]%9%H$7$?$j!$:n<T$KJQ99$rAwIU$9$k(B
13
- $B$J$I$NJ}K!$G!$JQ99$r8x3+$9$k!%(B
14
-
15
- (b) $BJQ99$7$?K\%W%m%0%i%`$r<+J,$N=jB0$9$kAH?%FbIt$@$1$G(B
16
- $B;H$&!%(B
17
-
18
- (c) $BJQ99E@$rL@<($7$?$&$(!$%=%U%H%&%'%"$NL>A0$rJQ99$9$k!%(B
19
- $B$=$N%=%U%H%&%'%"$rG[I[$9$k;~$K$OJQ99A0$NK\%W%m%0%i(B
20
- $B%`$bF1;~$KG[I[$9$k!%$^$?$OJQ99A0$NK\%W%m%0%i%`$N%=!<(B
21
- $B%9$NF~<jK!$rL@<($9$k!%(B
22
-
23
- (d) $B$=$NB>$NJQ99>r7o$r:n<T$H9g0U$9$k!%(B
24
-
25
- 3. $B0J2<$N>r7o$N$$$:$l$+$rK~$?$9;~$KK\%W%m%0%i%`$r%3%s%Q%$(B
26
- $B%k$7$?%*%V%8%'%/%H%3!<%I$d<B9T7A<0$G$bG[I[$G$-$^$9!%(B
27
-
28
- (a) $B%P%$%J%j$r<u$1<h$C$??M$,%=!<%9$rF~<j$G$-$k$h$&$K!$(B
29
- $B%=!<%9$NF~<jK!$rL@<($9$k!%(B
30
-
31
- (b) $B5!3#2DFI$J%=!<%9%3!<%I$rE:IU$9$k!%(B
32
-
33
- (c) $BJQ99$r9T$C$?%P%$%J%j$OL>A0$rJQ99$7$?$&$(!$%*%j%8%J(B
34
- $B%k$N%=!<%9%3!<%I$NF~<jK!$rL@<($9$k!%(B
35
-
36
- (d) $B$=$NB>$NG[I[>r7o$r:n<T$H9g0U$9$k!%(B
37
-
38
- 4. $BB>$N%W%m%0%i%`$X$N0zMQ$O$$$+$J$kL\E*$G$"$l<+M3$G$9!%$?(B
39
- $B$@$7!$K\%W%m%0%i%`$K4^$^$l$kB>$N:n<T$K$h$k%3!<%I$O!$$=(B
40
- $B$l$>$l$N:n<T$N0U8~$K$h$k@)8B$,2C$($i$l$k>l9g$,$"$j$^$9!%(B
41
-
42
- $B$=$l$i%U%!%$%k$N0lMw$H$=$l$>$l$NG[I[>r7o$J$I$KIU$$$F$O(B
43
- LEGAL$B%U%!%$%k$r;2>H$7$F$/$@$5$$!%(B
44
-
45
- 5. $BK\%W%m%0%i%`$X$NF~NO$H$J$k%9%/%j%W%H$*$h$S!$K\%W%m%0%i(B
46
- $B%`$+$i$N=PNO$N8"Mx$OK\%W%m%0%i%`$N:n<T$G$O$J$/!$$=$l$>(B
47
- $B$l$NF~=PNO$r@8@.$7$??M$KB0$7$^$9!%$^$?!$K\%W%m%0%i%`$K(B
48
- $BAH$_9~$^$l$k$?$a$N3HD%%i%$%V%i%j$K$D$$$F$bF1MM$G$9!%(B
49
-
50
- 6. $BK\%W%m%0%i%`$OL5J]>Z$G$9!%:n<T$OK\%W%m%0%i%`$r%5%]!<%H(B
51
- $B$9$k0U;V$O$"$j$^$9$,!$%W%m%0%i%`<+?H$N%P%0$"$k$$$OK\%W(B
52
- $B%m%0%i%`$N<B9T$J$I$+$iH/@8$9$k$$$+$J$kB;32$KBP$7$F$b@U(B
53
- $BG$$r;}$A$^$;$s!%(B