bio-ucsc-api 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile.lock +27 -29
- data/README.md +4 -3
- data/VERSION +1 -1
- data/bio-ucsc-api.gemspec +9 -5
- data/lib/bio-ucsc.rb +2 -1
- data/lib/bio-ucsc/hg38.rb +66 -0
- data/lib/bio-ucsc/hg38/description.rb +16 -0
- data/lib/bio-ucsc/hg38/gbcdnainfo.rb +14 -0
- data/samples/get-gene-ontology.rb +51 -0
- metadata +84 -48
- data/lib/#bio-ucsc.rb# +0 -209
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjJkMjc3NGYzYzEzZmQwYjMzY2E1NmY4NjAyNTE3OWM3YjA1NmYwMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NjFmZDljMTNmOWYzYTZlZmIwNzFmYzU0YmY5NzA4ZjMyNTU0NGFiOA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MzI1OTc5N2M0Y2Y2ODM3OGZlOWIzMGU1N2M5MTJjNWNjY2FhZDA2M2E1MzJh
|
10
|
+
YWY3ZDZiNDJhZWNkMGYzYzcxZjRhNWRjOTc3MjkxNDk1YzVjNzJmOTFjMTMx
|
11
|
+
M2JhMmVkMTRkZmU4MzdhZTM3ZTdhYTM0ZGQwNjAyMDI4ZWU3Yjg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzE2MGIxYjVhOTQyYWNlOWFiMzdmYmExMDk5NjgxMTE1M2YzYjc3NzYwMGJl
|
14
|
+
MWZlZTU1NWYzYjBhZDFkZTFhMjU0OTgxMDJiOTI1ODg3ZDNkOWY2NjkxODky
|
15
|
+
NGRjODEwOTBmODIxNzk3ODk5MzUwODYyMzQwYmQ2ZmMwZjQ1NDI=
|
data/Gemfile.lock
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activemodel (4.0.
|
5
|
-
activesupport (= 4.0.
|
4
|
+
activemodel (4.0.3)
|
5
|
+
activesupport (= 4.0.3)
|
6
6
|
builder (~> 3.1.0)
|
7
|
-
activerecord (4.0.
|
8
|
-
activemodel (= 4.0.
|
7
|
+
activerecord (4.0.3)
|
8
|
+
activemodel (= 4.0.3)
|
9
9
|
activerecord-deprecated_finders (~> 1.0.2)
|
10
|
-
activesupport (= 4.0.
|
10
|
+
activesupport (= 4.0.3)
|
11
11
|
arel (~> 4.0.0)
|
12
12
|
activerecord-deprecated_finders (1.0.3)
|
13
|
-
activesupport (4.0.
|
13
|
+
activesupport (4.0.3)
|
14
14
|
i18n (~> 0.6, >= 0.6.4)
|
15
15
|
minitest (~> 4.2)
|
16
16
|
multi_json (~> 1.3)
|
17
17
|
thread_safe (~> 0.1)
|
18
18
|
tzinfo (~> 0.3.37)
|
19
19
|
addressable (2.3.5)
|
20
|
-
arel (4.0.
|
21
|
-
atomic (1.1.
|
22
|
-
atomic (1.1.
|
20
|
+
arel (4.0.2)
|
21
|
+
atomic (1.1.15)
|
22
|
+
atomic (1.1.15-java)
|
23
23
|
bio (1.4.3.0001)
|
24
24
|
bio-genomic-interval (0.1.2)
|
25
25
|
builder (3.1.4)
|
26
26
|
diff-lcs (1.2.5)
|
27
|
-
faraday (0.8.
|
27
|
+
faraday (0.8.9)
|
28
28
|
multipart-post (~> 1.2.0)
|
29
29
|
git (1.2.6)
|
30
30
|
github_api (0.10.1)
|
@@ -35,8 +35,7 @@ GEM
|
|
35
35
|
nokogiri (~> 1.5.2)
|
36
36
|
oauth2
|
37
37
|
hashie (2.0.5)
|
38
|
-
highline (1.6.
|
39
|
-
httpauth (0.2.0)
|
38
|
+
highline (1.6.21)
|
40
39
|
i18n (0.6.9)
|
41
40
|
jeweler (1.8.8)
|
42
41
|
builder
|
@@ -49,41 +48,40 @@ GEM
|
|
49
48
|
rdoc
|
50
49
|
json (1.8.1)
|
51
50
|
json (1.8.1-java)
|
52
|
-
jwt (0.1.
|
51
|
+
jwt (0.1.11)
|
53
52
|
multi_json (>= 1.5)
|
54
53
|
minitest (4.7.5)
|
55
|
-
multi_json (1.
|
54
|
+
multi_json (1.9.0)
|
56
55
|
multi_xml (0.5.5)
|
57
56
|
multipart-post (1.2.0)
|
58
57
|
mysql (2.9.1)
|
59
58
|
nokogiri (1.5.10)
|
60
59
|
nokogiri (1.5.10-java)
|
61
|
-
oauth2 (0.9.
|
62
|
-
faraday (
|
63
|
-
|
64
|
-
|
65
|
-
multi_json (~> 1.0)
|
60
|
+
oauth2 (0.9.3)
|
61
|
+
faraday (>= 0.8, < 0.10)
|
62
|
+
jwt (~> 0.1.8)
|
63
|
+
multi_json (~> 1.3)
|
66
64
|
multi_xml (~> 0.5)
|
67
65
|
rack (~> 1.2)
|
68
66
|
rack (1.5.2)
|
69
|
-
rake (10.1.
|
70
|
-
rdoc (4.
|
67
|
+
rake (10.1.1)
|
68
|
+
rdoc (4.1.1)
|
71
69
|
json (~> 1.4)
|
72
70
|
rspec (2.14.1)
|
73
71
|
rspec-core (~> 2.14.0)
|
74
72
|
rspec-expectations (~> 2.14.0)
|
75
73
|
rspec-mocks (~> 2.14.0)
|
76
|
-
rspec-core (2.14.
|
77
|
-
rspec-expectations (2.14.
|
74
|
+
rspec-core (2.14.8)
|
75
|
+
rspec-expectations (2.14.5)
|
78
76
|
diff-lcs (>= 1.1.3, < 2.0)
|
79
|
-
rspec-mocks (2.14.
|
77
|
+
rspec-mocks (2.14.6)
|
80
78
|
safe_attributes (1.0.10)
|
81
79
|
activerecord (>= 3.0.0)
|
82
|
-
thread_safe (0.
|
83
|
-
atomic
|
84
|
-
thread_safe (0.
|
85
|
-
atomic
|
86
|
-
tzinfo (0.3.
|
80
|
+
thread_safe (0.2.0)
|
81
|
+
atomic (>= 1.1.7, < 2)
|
82
|
+
thread_safe (0.2.0-java)
|
83
|
+
atomic (>= 1.1.7, < 2)
|
84
|
+
tzinfo (0.3.39)
|
87
85
|
|
88
86
|
PLATFORMS
|
89
87
|
java
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# bio-ucsc-api version 0.6.
|
1
|
+
# bio-ucsc-api version 0.6.1
|
2
2
|
|
3
3
|
**The Ruby UCSC API**: accessing the UCSC Genome Database using Ruby.
|
4
4
|
|
@@ -35,7 +35,7 @@ $ gem install bio-ucsc-api
|
|
35
35
|
|
36
36
|
If your favorite databese is not supported, please do not hesitate to contact the author.
|
37
37
|
|
38
|
-
* **human** Hg19, Hg18
|
38
|
+
* **human** Hg38, Hg19, Hg18
|
39
39
|
* **mammals** chimp (PanTro3), orangutan (PonAbe2), rhesus (RheMac2), marmoset (CalJac3), mouse (Mm10, Mm9), rat (Rn5, 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)
|
40
40
|
* **vertebrates** chicken (GalGal3), zebra finch (TaeGut1), lizard (AnoCar2), X. tropicalis (XenTro2), zebrafish (DanRer7), tetraodon (TetNig2), fugu (Fr2), stickleback (GasAcu1), medaka (OryLat2), lamprey (PetMar1)
|
41
41
|
* **deuterostomes** lancelet (BraFlo1), sea squirt (Ci2), sea urchin (StrPur2)
|
@@ -53,7 +53,7 @@ This package is based on the followings:
|
|
53
53
|
Supported Ruby interpreter implementations:
|
54
54
|
|
55
55
|
* Ruby Version 2.0.0 or later
|
56
|
-
* Ruby version 1.9.
|
56
|
+
* Ruby version 1.9.3 or later
|
57
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.
|
58
58
|
|
59
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.
|
@@ -72,6 +72,7 @@ See also:
|
|
72
72
|
* UCSCBin library - https://github.com/misshie/UCSCBin
|
73
73
|
|
74
74
|
# Change Log
|
75
|
+
* **UPDATE** (v.0.6.1) Support new human hg38 reference. Newer tables after this release will be supported in later varsions.
|
75
76
|
* **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
77
|
* **UPDATE** (v0.6.0): Ruby UCSC API is now licensed under the MIT License. See also the LICENSE.txt file.
|
77
78
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
data/bio-ucsc-api.gemspec
CHANGED
@@ -2,14 +2,15 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: bio-ucsc-api 0.6.1 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
8
|
s.name = "bio-ucsc-api"
|
8
|
-
s.version = "0.6.
|
9
|
+
s.version = "0.6.1"
|
9
10
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
12
|
s.authors = ["Hiroyuki Mishima", "Jan Aerts"]
|
12
|
-
s.date = "
|
13
|
+
s.date = "2014-03-13"
|
13
14
|
s.description = "Ruby UCSC API: accessing the UCSC Genome Database using Ruby"
|
14
15
|
s.email = "missy@be.to"
|
15
16
|
s.extra_rdoc_files = [
|
@@ -26,7 +27,6 @@ Gem::Specification.new do |s|
|
|
26
27
|
"Rakefile",
|
27
28
|
"VERSION",
|
28
29
|
"bio-ucsc-api.gemspec",
|
29
|
-
"lib/#bio-ucsc.rb#",
|
30
30
|
"lib/bio-ucsc-api.rb",
|
31
31
|
"lib/bio-ucsc.rb",
|
32
32
|
"lib/bio-ucsc/ailmel1.rb",
|
@@ -264,6 +264,9 @@ Gem::Specification.new do |s|
|
|
264
264
|
"lib/bio-ucsc/hg19.rb",
|
265
265
|
"lib/bio-ucsc/hg19/description.rb",
|
266
266
|
"lib/bio-ucsc/hg19/gbcdnainfo.rb",
|
267
|
+
"lib/bio-ucsc/hg38.rb",
|
268
|
+
"lib/bio-ucsc/hg38/description.rb",
|
269
|
+
"lib/bio-ucsc/hg38/gbcdnainfo.rb",
|
267
270
|
"lib/bio-ucsc/hgfixed.rb",
|
268
271
|
"lib/bio-ucsc/loxafr3.rb",
|
269
272
|
"lib/bio-ucsc/mm10.rb",
|
@@ -427,6 +430,7 @@ Gem::Specification.new do |s|
|
|
427
430
|
"lib/bio-ucsc/visigene.rb",
|
428
431
|
"lib/bio-ucsc/xentro2.rb",
|
429
432
|
"samples/bed2refseq.rb",
|
433
|
+
"samples/get-gene-ontology.rb",
|
430
434
|
"samples/hg19-2bit-retrieve.rb",
|
431
435
|
"samples/hg19-sample.rb",
|
432
436
|
"samples/num-gene-exon.rb",
|
@@ -436,11 +440,11 @@ Gem::Specification.new do |s|
|
|
436
440
|
s.homepage = "http://github.com/misshie/bioruby-ucsc-api"
|
437
441
|
s.licenses = ["The MIT License"]
|
438
442
|
s.require_paths = ["lib"]
|
439
|
-
s.rubygems_version = "1.
|
443
|
+
s.rubygems_version = "2.1.11"
|
440
444
|
s.summary = "The Ruby UCSC API: accessing the UCSC Genome Database using Ruby"
|
441
445
|
|
442
446
|
if s.respond_to? :specification_version then
|
443
|
-
s.specification_version =
|
447
|
+
s.specification_version = 4
|
444
448
|
|
445
449
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
446
450
|
s.add_runtime_dependency(%q<activerecord>, ["~> 4.0.2"])
|
data/lib/bio-ucsc.rb
CHANGED
@@ -21,11 +21,12 @@ require "#{base}/gi.rb"
|
|
21
21
|
|
22
22
|
module Bio
|
23
23
|
module Ucsc
|
24
|
-
VERSION = "0.6.
|
24
|
+
VERSION = "0.6.1"
|
25
25
|
base = "#{::File.dirname(__FILE__)}/bio-ucsc"
|
26
26
|
|
27
27
|
# mammmals #####################################
|
28
28
|
# human genome assemblies
|
29
|
+
autoload :Hg38, "#{base}/hg38"
|
29
30
|
autoload :Hg19, "#{base}/hg19"
|
30
31
|
autoload :Hg18, "#{base}/hg18"
|
31
32
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
#
|
2
|
+
# = AUTOMATIC Table Definition of Hg38
|
3
|
+
# Copyright:: Copyright (C) 2011, 2012, 2014
|
4
|
+
# MISHIMA, Hiroyuki
|
5
|
+
# <missy at be.to / hmishima at nagasaki-u.ac.jp>
|
6
|
+
# License:: The MIT license
|
7
|
+
#
|
8
|
+
|
9
|
+
require "#{::File.dirname(__FILE__)}/table_class_detector"
|
10
|
+
|
11
|
+
module Bio
|
12
|
+
module Ucsc
|
13
|
+
module Hg38
|
14
|
+
extend TableClassDetector
|
15
|
+
|
16
|
+
def self.default
|
17
|
+
DBConnection.default
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.connect(param = Hash.new)
|
21
|
+
DBConnection.db_adapter = param[:db_adapter] if param[:db_adapter]
|
22
|
+
DBConnection.db_host = param[:db_host] if param[:db_host]
|
23
|
+
DBConnection.db_username = param[:db_username] if param[:db_username]
|
24
|
+
DBConnection.password = param[:password] if param[:password]
|
25
|
+
DBConnection.connect
|
26
|
+
end
|
27
|
+
|
28
|
+
class DBConnection < ActiveRecord::Base
|
29
|
+
include SafeAttributes
|
30
|
+
self.inheritance_column = 'dummy_not_to_use'
|
31
|
+
|
32
|
+
@@db_adapter ||= 'mysql'
|
33
|
+
@@db_host ||= 'genome-mysql.cse.ucsc.edu'
|
34
|
+
@@db_username ||= 'genome'
|
35
|
+
@@db_password ||= ''
|
36
|
+
@@db_name ||= 'hg38'
|
37
|
+
|
38
|
+
cattr_accessor :db_adapter, :db_host, :db_username, :db_password
|
39
|
+
|
40
|
+
self.abstract_class = true
|
41
|
+
|
42
|
+
def self.default
|
43
|
+
@@db_adapter = 'mysql'
|
44
|
+
@@db_host = 'genome-mysql.cse.ucsc.edu'
|
45
|
+
@@db_username = 'genome'
|
46
|
+
@@db_password = ''
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.connect
|
50
|
+
establish_connection({ :adapter => @@db_adapter,
|
51
|
+
:host => @@db_host,
|
52
|
+
:database => @@db_name,
|
53
|
+
:username => @@db_username,
|
54
|
+
:password => @@db_password, })
|
55
|
+
end
|
56
|
+
end # class DBConnection
|
57
|
+
|
58
|
+
base = "#{::File.dirname(__FILE__)}/hg38"
|
59
|
+
# Hg19::Description has "id" colomn that is primary key
|
60
|
+
autoload :Description, "#{base}/description"
|
61
|
+
# Hg19::GbCdbaInfo has "id" colomn that is primary key
|
62
|
+
autoload :GbCdnaInfo, "#{base}/gbcdnainfo"
|
63
|
+
|
64
|
+
end # module Hg38
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'bio-ucsc'
|
2
|
+
|
3
|
+
class GetGeneOntology
|
4
|
+
|
5
|
+
GO = Bio::Ucsc::Go
|
6
|
+
HG19 = Bio::Ucsc::Hg19
|
7
|
+
|
8
|
+
IdAspName = Struct.new(:goId, :aspect, :name)
|
9
|
+
ASPECTS = {
|
10
|
+
"F" => "Molecular Function",
|
11
|
+
"P" => "Biological Process",
|
12
|
+
"C" => "Cellular Component",
|
13
|
+
}
|
14
|
+
|
15
|
+
def sp_display_ids(genesym)
|
16
|
+
spdid =
|
17
|
+
HG19::KgXref.select(:spDisplayID).where(:geneSymbol => genesym).map{|x| x ? x.spDisplayID : []}
|
18
|
+
spdid.uniq.sort
|
19
|
+
end
|
20
|
+
|
21
|
+
def go_id_aspects(dids)
|
22
|
+
GO::GoaPart.select(:goId,:aspect).where(:dbObjectSymbol => dids).
|
23
|
+
map{|x| x ? IdAspName.new(x.goId, x.aspect, "") : []}
|
24
|
+
end
|
25
|
+
|
26
|
+
def term_names(idaspnames)
|
27
|
+
idaspnames.map do |ian|
|
28
|
+
ian.name = GO::Term.select(:name,).where(:acc => ian[:goId]).first.name
|
29
|
+
ian
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def run(gene_symbol)
|
34
|
+
GO.connect
|
35
|
+
#GO.connect( :db_host => 'localhost',
|
36
|
+
# :db_username => 'genome',
|
37
|
+
# :db_password => '' )
|
38
|
+
HG19.connect
|
39
|
+
puts "# gene symbol: #{gene_symbol}"
|
40
|
+
dids = sp_display_ids(gene_symbol)
|
41
|
+
idaspnames = go_id_aspects(dids)
|
42
|
+
term_names(idaspnames).
|
43
|
+
sort_by{|x| [x.aspect, x.goId]}.
|
44
|
+
each{|x| puts "#{ASPECTS[x.aspect]}\t#{x.goId}\t#{x.name}"}
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
if $0 == __FILE__
|
50
|
+
ARGV.each{|x| GetGeneOntology.new.run(x)}
|
51
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-ucsc-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Hiroyuki Mishima
|
@@ -10,140 +9,178 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: activerecord
|
17
|
-
requirement:
|
18
|
-
none: false
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: 4.0.2
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
|
-
version_requirements:
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 4.0.2
|
26
28
|
- !ruby/object:Gem::Dependency
|
27
29
|
name: activesupport
|
28
|
-
requirement:
|
29
|
-
none: false
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
32
|
- - ~>
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: 4.0.2
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 4.0.2
|
37
42
|
- !ruby/object:Gem::Dependency
|
38
43
|
name: mysql
|
39
|
-
requirement:
|
40
|
-
none: false
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
41
45
|
requirements:
|
42
46
|
- - ~>
|
43
47
|
- !ruby/object:Gem::Version
|
44
48
|
version: 2.9.1
|
45
49
|
type: :runtime
|
46
50
|
prerelease: false
|
47
|
-
version_requirements:
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 2.9.1
|
48
56
|
- !ruby/object:Gem::Dependency
|
49
57
|
name: safe_attributes
|
50
|
-
requirement:
|
51
|
-
none: false
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
52
59
|
requirements:
|
53
60
|
- - ~>
|
54
61
|
- !ruby/object:Gem::Version
|
55
62
|
version: 1.0.10
|
56
63
|
type: :runtime
|
57
64
|
prerelease: false
|
58
|
-
version_requirements:
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.0.10
|
59
70
|
- !ruby/object:Gem::Dependency
|
60
71
|
name: activerecord-deprecated_finders
|
61
|
-
requirement:
|
62
|
-
none: false
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
63
73
|
requirements:
|
64
74
|
- - ~>
|
65
75
|
- !ruby/object:Gem::Version
|
66
76
|
version: 1.0.3
|
67
77
|
type: :runtime
|
68
78
|
prerelease: false
|
69
|
-
version_requirements:
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 1.0.3
|
70
84
|
- !ruby/object:Gem::Dependency
|
71
85
|
name: bio-genomic-interval
|
72
|
-
requirement:
|
73
|
-
none: false
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
74
87
|
requirements:
|
75
88
|
- - ! '>='
|
76
89
|
- !ruby/object:Gem::Version
|
77
90
|
version: 0.1.2
|
78
91
|
type: :runtime
|
79
92
|
prerelease: false
|
80
|
-
version_requirements:
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ! '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 0.1.2
|
81
98
|
- !ruby/object:Gem::Dependency
|
82
99
|
name: rake
|
83
|
-
requirement:
|
84
|
-
none: false
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
85
101
|
requirements:
|
86
102
|
- - ~>
|
87
103
|
- !ruby/object:Gem::Version
|
88
104
|
version: 10.1.0
|
89
105
|
type: :development
|
90
106
|
prerelease: false
|
91
|
-
version_requirements:
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 10.1.0
|
92
112
|
- !ruby/object:Gem::Dependency
|
93
113
|
name: rspec
|
94
|
-
requirement:
|
95
|
-
none: false
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
96
115
|
requirements:
|
97
116
|
- - ~>
|
98
117
|
- !ruby/object:Gem::Version
|
99
118
|
version: 2.14.1
|
100
119
|
type: :development
|
101
120
|
prerelease: false
|
102
|
-
version_requirements:
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 2.14.1
|
103
126
|
- !ruby/object:Gem::Dependency
|
104
127
|
name: bundler
|
105
|
-
requirement:
|
106
|
-
none: false
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
107
129
|
requirements:
|
108
130
|
- - ~>
|
109
131
|
- !ruby/object:Gem::Version
|
110
132
|
version: 1.3.5
|
111
133
|
type: :development
|
112
134
|
prerelease: false
|
113
|
-
version_requirements:
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ~>
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 1.3.5
|
114
140
|
- !ruby/object:Gem::Dependency
|
115
141
|
name: jeweler
|
116
|
-
requirement:
|
117
|
-
none: false
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
118
143
|
requirements:
|
119
144
|
- - ~>
|
120
145
|
- !ruby/object:Gem::Version
|
121
146
|
version: 1.8.8
|
122
147
|
type: :development
|
123
148
|
prerelease: false
|
124
|
-
version_requirements:
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ~>
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 1.8.8
|
125
154
|
- !ruby/object:Gem::Dependency
|
126
155
|
name: bio
|
127
|
-
requirement:
|
128
|
-
none: false
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
129
157
|
requirements:
|
130
158
|
- - ! '>='
|
131
159
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
160
|
+
version: !binary |-
|
161
|
+
MS40LjM=
|
133
162
|
type: :development
|
134
163
|
prerelease: false
|
135
|
-
version_requirements:
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ! '>='
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: !binary |-
|
169
|
+
MS40LjM=
|
136
170
|
- !ruby/object:Gem::Dependency
|
137
171
|
name: rdoc
|
138
|
-
requirement:
|
139
|
-
none: false
|
172
|
+
requirement: !ruby/object:Gem::Requirement
|
140
173
|
requirements:
|
141
174
|
- - ! '>='
|
142
175
|
- !ruby/object:Gem::Version
|
143
176
|
version: 4.0.1
|
144
177
|
type: :development
|
145
178
|
prerelease: false
|
146
|
-
version_requirements:
|
179
|
+
version_requirements: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - ! '>='
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: 4.0.1
|
147
184
|
description: ! 'Ruby UCSC API: accessing the UCSC Genome Database using Ruby'
|
148
185
|
email: missy@be.to
|
149
186
|
executables: []
|
@@ -161,7 +198,6 @@ files:
|
|
161
198
|
- Rakefile
|
162
199
|
- VERSION
|
163
200
|
- bio-ucsc-api.gemspec
|
164
|
-
- lib/#bio-ucsc.rb#
|
165
201
|
- lib/bio-ucsc-api.rb
|
166
202
|
- lib/bio-ucsc.rb
|
167
203
|
- lib/bio-ucsc/ailmel1.rb
|
@@ -399,6 +435,9 @@ files:
|
|
399
435
|
- lib/bio-ucsc/hg19.rb
|
400
436
|
- lib/bio-ucsc/hg19/description.rb
|
401
437
|
- lib/bio-ucsc/hg19/gbcdnainfo.rb
|
438
|
+
- lib/bio-ucsc/hg38.rb
|
439
|
+
- lib/bio-ucsc/hg38/description.rb
|
440
|
+
- lib/bio-ucsc/hg38/gbcdnainfo.rb
|
402
441
|
- lib/bio-ucsc/hgfixed.rb
|
403
442
|
- lib/bio-ucsc/loxafr3.rb
|
404
443
|
- lib/bio-ucsc/mm10.rb
|
@@ -562,6 +601,7 @@ files:
|
|
562
601
|
- lib/bio-ucsc/visigene.rb
|
563
602
|
- lib/bio-ucsc/xentro2.rb
|
564
603
|
- samples/bed2refseq.rb
|
604
|
+
- samples/get-gene-ontology.rb
|
565
605
|
- samples/hg19-2bit-retrieve.rb
|
566
606
|
- samples/hg19-sample.rb
|
567
607
|
- samples/num-gene-exon.rb
|
@@ -570,29 +610,25 @@ files:
|
|
570
610
|
homepage: http://github.com/misshie/bioruby-ucsc-api
|
571
611
|
licenses:
|
572
612
|
- The MIT License
|
613
|
+
metadata: {}
|
573
614
|
post_install_message:
|
574
615
|
rdoc_options: []
|
575
616
|
require_paths:
|
576
617
|
- lib
|
577
618
|
required_ruby_version: !ruby/object:Gem::Requirement
|
578
|
-
none: false
|
579
619
|
requirements:
|
580
620
|
- - ! '>='
|
581
621
|
- !ruby/object:Gem::Version
|
582
622
|
version: '0'
|
583
|
-
segments:
|
584
|
-
- 0
|
585
|
-
hash: -3654614311172701481
|
586
623
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
587
|
-
none: false
|
588
624
|
requirements:
|
589
625
|
- - ! '>='
|
590
626
|
- !ruby/object:Gem::Version
|
591
627
|
version: '0'
|
592
628
|
requirements: []
|
593
629
|
rubyforge_project:
|
594
|
-
rubygems_version: 1.
|
630
|
+
rubygems_version: 2.1.11
|
595
631
|
signing_key:
|
596
|
-
specification_version:
|
632
|
+
specification_version: 4
|
597
633
|
summary: ! 'The Ruby UCSC API: accessing the UCSC Genome Database using Ruby'
|
598
634
|
test_files: []
|
data/lib/#bio-ucsc.rb#
DELETED
@@ -1,209 +0,0 @@
|
|
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
|