bio-ucsc-api 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/ChangeLog.md +1 -0
- data/Gemfile +5 -5
- data/Gemfile.lock +77 -65
- data/LICENSE.txt +1 -1
- data/README.md +11 -4
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/bio-ucsc-api.gemspec +21 -22
- data/lib/bio-ucsc-api.rb +2 -2
- data/lib/bio-ucsc.rb +3 -3
- data/lib/bio-ucsc/file/twobit.rb +20 -7
- data/lib/bio-ucsc/hg38/00README +1 -0
- metadata +36 -39
- data/lib/bio-ucsc/hg38/description.rb +0 -16
- data/lib/bio-ucsc/hg38/gbcdnainfo.rb +0 -14
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZDc3NTA3Mjc1MjMzNjVjMjc5MTI5Mjc1MThiMmVkMGYxNjgyYmViNg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a77540fb8707f8099fcfbc13d34db96f783c5b13
|
4
|
+
data.tar.gz: 4e2fc3f457369a60a95cb067c4ed4647f5c72496
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MTcwZWNiYmI5NDYxMGQyODYwM2Q5NTNkNWUxN2FjYTlkZTQxNTFkNzY5YWFl
|
11
|
-
ZWViMWQwNGJkYmIyNjY4ZTIyZmU5Yjk1OTQ1YWM3MDZmODBhMzE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NzZlZjA3NDMzYTAyYTkwNmMwMThiMTllNmE3YzgwMjk4YTMzYmMwZWNiZjUz
|
14
|
-
YTZlM2ZjY2MyMTAyNjY2NzFlMzUzZTJjMDgxZmFhYTczNzNiZGU2Nzg0ODY0
|
15
|
-
ZjM0ZjA2MDFmNmEyYTUxZjhjMmQ0ZjU0YjdmYjBmZjNhYzQzOWU=
|
6
|
+
metadata.gz: 2767a50a940540e43010d0d3e7a76a91e315d76f946ca18b6e2cc080f8e2c3f91435cd78a3cea762eacfdf1c47a14555cbc6d0b68c4f9c6422590ed3041c1153
|
7
|
+
data.tar.gz: b8931cd9a059ffaf89d736900c958926198faaf8a5fa1064c6fc90a4274dcf733cbd87acbc10423619b8a676bd8e807c59cd7385817dabe10c042995cf1ddacc
|
data/ChangeLog.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#Change Log
|
2
|
+
* **BUG-FIX** (v.0.6.3) Bio::Ucsc::File::TwoBit#find_by_interval fails in retrieving reference sequences including entire "N" blocks, e.g. "aaaNNttt".
|
2
3
|
* **BUG-FIX** (v.0.6.2) NoMemoryError in Bio::Ucsc::File::Twobit.open. Now internally File.open is used instead of Kernel.open.
|
3
4
|
* **UPDATE** (v.0.6.1) Support new human hg38 reference. Newer tables after this release will be supported in later varsions.
|
4
5
|
* **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.
|
data/Gemfile
CHANGED
@@ -12,11 +12,11 @@ gem "bio-genomic-interval", ">= 0.1.2"
|
|
12
12
|
# Add dependencies to develop your gem here.
|
13
13
|
# Include everything needed to run rake, tests, features, etc.
|
14
14
|
group :development do
|
15
|
-
gem "rake", "
|
16
|
-
gem "rspec", "
|
17
|
-
gem "bundler", "
|
18
|
-
gem "jeweler", "
|
19
|
-
gem "bio", ">= 1.
|
15
|
+
gem "rake", ">= 10.1.0"
|
16
|
+
gem "rspec", ">= 2.14.1"
|
17
|
+
gem "bundler", ">= 1.3.5"
|
18
|
+
gem "jeweler", ">= 2.3.7"
|
19
|
+
gem "bio", ">= 1.5.1"
|
20
20
|
gem "rdoc", ">= 4.0.1"
|
21
21
|
# gem "simplecov", :require => false, :group => :test
|
22
22
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,87 +1,96 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activemodel (4.0.
|
5
|
-
activesupport (= 4.0.
|
4
|
+
activemodel (4.0.13)
|
5
|
+
activesupport (= 4.0.13)
|
6
6
|
builder (~> 3.1.0)
|
7
|
-
activerecord (4.0.
|
8
|
-
activemodel (= 4.0.
|
7
|
+
activerecord (4.0.13)
|
8
|
+
activemodel (= 4.0.13)
|
9
9
|
activerecord-deprecated_finders (~> 1.0.2)
|
10
|
-
activesupport (= 4.0.
|
10
|
+
activesupport (= 4.0.13)
|
11
11
|
arel (~> 4.0.0)
|
12
|
-
activerecord-deprecated_finders (1.0.
|
13
|
-
activesupport (4.0.
|
14
|
-
i18n (~> 0.6, >= 0.6.
|
12
|
+
activerecord-deprecated_finders (1.0.4)
|
13
|
+
activesupport (4.0.13)
|
14
|
+
i18n (~> 0.6, >= 0.6.9)
|
15
15
|
minitest (~> 4.2)
|
16
16
|
multi_json (~> 1.3)
|
17
17
|
thread_safe (~> 0.1)
|
18
18
|
tzinfo (~> 0.3.37)
|
19
|
-
addressable (2.
|
19
|
+
addressable (2.4.0)
|
20
20
|
arel (4.0.2)
|
21
|
-
|
22
|
-
atomic (1.1.15-java)
|
23
|
-
bio (1.4.3.0001)
|
21
|
+
bio (1.5.1)
|
24
22
|
bio-genomic-interval (0.1.2)
|
25
23
|
builder (3.1.4)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
24
|
+
descendants_tracker (0.0.4)
|
25
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
26
|
+
diff-lcs (1.3)
|
27
|
+
faraday (0.9.2)
|
28
|
+
multipart-post (>= 1.2, < 3)
|
29
|
+
git (1.3.0)
|
30
|
+
github_api (0.16.0)
|
31
|
+
addressable (~> 2.4.0)
|
32
|
+
descendants_tracker (~> 0.0.4)
|
33
|
+
faraday (~> 0.8, < 0.10)
|
34
|
+
hashie (>= 3.4)
|
35
|
+
mime-types (>= 1.16, < 3.0)
|
36
|
+
oauth2 (~> 1.0)
|
37
|
+
hashie (3.5.6)
|
38
|
+
highline (1.7.8)
|
39
|
+
i18n (0.8.6)
|
40
|
+
jar-dependencies (0.3.11)
|
41
|
+
jeweler (2.3.7)
|
41
42
|
builder
|
42
|
-
bundler (
|
43
|
+
bundler (>= 1)
|
43
44
|
git (>= 1.2.5)
|
44
|
-
github_api (
|
45
|
+
github_api (~> 0.16.0)
|
45
46
|
highline (>= 1.6.15)
|
46
|
-
nokogiri (
|
47
|
+
nokogiri (>= 1.5.10)
|
48
|
+
psych (~> 2.2)
|
47
49
|
rake
|
48
50
|
rdoc
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
51
|
+
semver2
|
52
|
+
jwt (1.5.6)
|
53
|
+
mime-types (2.99.3)
|
54
|
+
mini_portile2 (2.2.0)
|
53
55
|
minitest (4.7.5)
|
54
|
-
multi_json (1.
|
55
|
-
multi_xml (0.
|
56
|
-
multipart-post (
|
56
|
+
multi_json (1.12.1)
|
57
|
+
multi_xml (0.6.0)
|
58
|
+
multipart-post (2.0.0)
|
57
59
|
mysql (2.9.1)
|
58
|
-
nokogiri (1.
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
nokogiri (1.8.0)
|
61
|
+
mini_portile2 (~> 2.2.0)
|
62
|
+
nokogiri (1.8.0-java)
|
63
|
+
oauth2 (1.4.0)
|
64
|
+
faraday (>= 0.8, < 0.13)
|
65
|
+
jwt (~> 1.0)
|
63
66
|
multi_json (~> 1.3)
|
64
67
|
multi_xml (~> 0.5)
|
65
|
-
rack (
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
rspec-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
68
|
+
rack (>= 1.2, < 3)
|
69
|
+
psych (2.2.4)
|
70
|
+
psych (2.2.4-java)
|
71
|
+
jar-dependencies (>= 0.1.7)
|
72
|
+
rack (2.0.3)
|
73
|
+
rake (12.0.0)
|
74
|
+
rdoc (5.1.0)
|
75
|
+
rspec (3.6.0)
|
76
|
+
rspec-core (~> 3.6.0)
|
77
|
+
rspec-expectations (~> 3.6.0)
|
78
|
+
rspec-mocks (~> 3.6.0)
|
79
|
+
rspec-core (3.6.0)
|
80
|
+
rspec-support (~> 3.6.0)
|
81
|
+
rspec-expectations (3.6.0)
|
82
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
83
|
+
rspec-support (~> 3.6.0)
|
84
|
+
rspec-mocks (3.6.0)
|
85
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
86
|
+
rspec-support (~> 3.6.0)
|
87
|
+
rspec-support (3.6.0)
|
78
88
|
safe_attributes (1.0.10)
|
79
89
|
activerecord (>= 3.0.0)
|
80
|
-
|
81
|
-
|
82
|
-
thread_safe (0.
|
83
|
-
|
84
|
-
tzinfo (0.3.39)
|
90
|
+
semver2 (3.4.2)
|
91
|
+
thread_safe (0.3.6)
|
92
|
+
thread_safe (0.3.6-java)
|
93
|
+
tzinfo (0.3.53)
|
85
94
|
|
86
95
|
PLATFORMS
|
87
96
|
java
|
@@ -91,12 +100,15 @@ DEPENDENCIES
|
|
91
100
|
activerecord (~> 4.0.2)
|
92
101
|
activerecord-deprecated_finders (~> 1.0.3)
|
93
102
|
activesupport (~> 4.0.2)
|
94
|
-
bio (>= 1.
|
103
|
+
bio (>= 1.5.1)
|
95
104
|
bio-genomic-interval (>= 0.1.2)
|
96
|
-
bundler (
|
97
|
-
jeweler (
|
105
|
+
bundler (>= 1.3.5)
|
106
|
+
jeweler (>= 2.3.7)
|
98
107
|
mysql (~> 2.9.1)
|
99
|
-
rake (
|
108
|
+
rake (>= 10.1.0)
|
100
109
|
rdoc (>= 4.0.1)
|
101
|
-
rspec (
|
110
|
+
rspec (>= 2.14.1)
|
102
111
|
safe_attributes (~> 1.0.10)
|
112
|
+
|
113
|
+
BUNDLED WITH
|
114
|
+
1.14.2
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# bio-ucsc-api version 0.6.
|
1
|
+
# bio-ucsc-api version 0.6.3
|
2
2
|
|
3
3
|
**The Ruby UCSC API**: accessing the UCSC Genome Database using Ruby.
|
4
4
|
|
@@ -18,6 +18,10 @@ http://www.biomedcentral.com/1471-2105/13/240/
|
|
18
18
|
$ gem install bio-ucsc-api
|
19
19
|
```
|
20
20
|
|
21
|
+
# Web Service
|
22
|
+
|
23
|
+
TogoWS ( http://togows.org/ ), a web-service of DBCLS ( http://dbcls.rois.ac.jp/ ), supports UCSC Genome Database and offers the REST interface using the Ruby UCSC API internally. Please see the TogoWS API documentation (the "External API" section) at http://togows.org/help/ .
|
24
|
+
|
21
25
|
# Features
|
22
26
|
|
23
27
|
* Supporting all organisms in the UCSC genome database.
|
@@ -33,7 +37,7 @@ $ gem install bio-ucsc-api
|
|
33
37
|
|
34
38
|
# Supported databases (genome assemblies)
|
35
39
|
|
36
|
-
If your favorite databese is not supported, please do not hesitate to contact the author.
|
40
|
+
If your favorite databese is not supported, please do not hesitate to contact the author because the author mainly working only with human genomes.
|
37
41
|
|
38
42
|
* **human** Hg38, Hg19, Hg18
|
39
43
|
* **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)
|
@@ -72,6 +76,7 @@ See also:
|
|
72
76
|
* UCSCBin library - https://github.com/misshie/UCSCBin
|
73
77
|
|
74
78
|
# Change Log
|
79
|
+
* **BUG-FIX** (v.0.6.3) Bio::Ucsc::File::TwoBit#find_by_interval fails in retrieving reference sequences including entire "N" blocks, e.g. "aaaNNttt".
|
75
80
|
* **BUG-FIX** (v.0.6.2) NoMemoryError in Bio::Ucsc::File::Twobit.open. Now internally File.open is used instead of Kernel.open.
|
76
81
|
* **UPDATE** (v.0.6.1) Support new human hg38 reference. Newer tables after this release will be supported in later varsions.
|
77
82
|
* **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.
|
@@ -93,7 +98,6 @@ At first, you have to declare the API and establish the connection to a database
|
|
93
98
|
|
94
99
|
```ruby
|
95
100
|
require 'bio-ucsc'
|
96
|
-
|
97
101
|
DB = Bio::Ucsc::Hg19
|
98
102
|
DB.connect
|
99
103
|
|
@@ -105,6 +109,7 @@ At first, you have to declare the API and establish the connection to a database
|
|
105
109
|
Table search using genomic intervals:
|
106
110
|
|
107
111
|
```ruby
|
112
|
+
require 'bio-ucsc'
|
108
113
|
DB = Bio::Ucsc::Hg19
|
109
114
|
DB.connect
|
110
115
|
|
@@ -137,6 +142,7 @@ Table search using genomic intervals:
|
|
137
142
|
Sometimes, queries using raw SQLs provide elegant solutions.
|
138
143
|
|
139
144
|
```ruby
|
145
|
+
require 'bio-ucsc'
|
140
146
|
DB = Bio::Ucsc::Hg19
|
141
147
|
DB.connect
|
142
148
|
|
@@ -150,6 +156,7 @@ Sometimes, queries using raw SQLs provide elegant solutions.
|
|
150
156
|
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`.
|
151
157
|
|
152
158
|
```ruby
|
159
|
+
require 'bio-ucsc'
|
153
160
|
DB = Bio::Ucsc::Hg19
|
154
161
|
DB.connect
|
155
162
|
|
@@ -256,6 +263,6 @@ puts Bio::Ucsc::Hg19::Snp138.find_by_name("rs242").snp138Seq.first.file_offset
|
|
256
263
|
```
|
257
264
|
|
258
265
|
# Copyright
|
259
|
-
**Copyright**: (c) 2011-
|
266
|
+
**Copyright**: (c) 2011-2017 MISHIMA, Hiroyuki (hmishima at nagasaki-u.ac.jp / Twitter: @mishima_eng (in English) and @mishimahryk (in Japanese)
|
260
267
|
**Copyright**: (c) 2010 Jan Aerts
|
261
268
|
**License**: The MIT license. See LICENSE.txt for further details..
|
data/Rakefile
CHANGED
@@ -15,6 +15,7 @@ require 'jeweler'
|
|
15
15
|
Jeweler::Tasks.new do |gem|
|
16
16
|
# gem is a Gem::Specification...
|
17
17
|
# see http://docs.rubygems.org/read/chapter/20 for more options
|
18
|
+
gem.version = File.read('VERSION').chomp # <<<<<<<<<<<<<<<<<<<<<<<<<<<< manually added!
|
18
19
|
gem.name = "bio-ucsc-api"
|
19
20
|
gem.homepage = "http://github.com/misshie/bioruby-ucsc-api"
|
20
21
|
gem.license = "The MIT License"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.3
|
data/bio-ucsc-api.gemspec
CHANGED
@@ -2,15 +2,16 @@
|
|
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.
|
5
|
+
# stub: bio-ucsc-api 0.6.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bio-ucsc-api"
|
9
|
-
s.version = "0.6.
|
9
|
+
s.version = "0.6.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
12
13
|
s.authors = ["Hiroyuki Mishima", "Jan Aerts"]
|
13
|
-
s.date = "
|
14
|
+
s.date = "2017-08-17"
|
14
15
|
s.description = "Ruby UCSC API: accessing the UCSC Genome Database using Ruby"
|
15
16
|
s.email = "missy@be.to"
|
16
17
|
s.extra_rdoc_files = [
|
@@ -265,8 +266,7 @@ Gem::Specification.new do |s|
|
|
265
266
|
"lib/bio-ucsc/hg19/description.rb",
|
266
267
|
"lib/bio-ucsc/hg19/gbcdnainfo.rb",
|
267
268
|
"lib/bio-ucsc/hg38.rb",
|
268
|
-
"lib/bio-ucsc/hg38/
|
269
|
-
"lib/bio-ucsc/hg38/gbcdnainfo.rb",
|
269
|
+
"lib/bio-ucsc/hg38/00README",
|
270
270
|
"lib/bio-ucsc/hgfixed.rb",
|
271
271
|
"lib/bio-ucsc/loxafr3.rb",
|
272
272
|
"lib/bio-ucsc/mm10.rb",
|
@@ -439,8 +439,7 @@ Gem::Specification.new do |s|
|
|
439
439
|
]
|
440
440
|
s.homepage = "http://github.com/misshie/bioruby-ucsc-api"
|
441
441
|
s.licenses = ["The MIT License"]
|
442
|
-
s.
|
443
|
-
s.rubygems_version = "2.1.11"
|
442
|
+
s.rubygems_version = "2.5.1"
|
444
443
|
s.summary = "The Ruby UCSC API: accessing the UCSC Genome Database using Ruby"
|
445
444
|
|
446
445
|
if s.respond_to? :specification_version then
|
@@ -453,11 +452,11 @@ Gem::Specification.new do |s|
|
|
453
452
|
s.add_runtime_dependency(%q<safe_attributes>, ["~> 1.0.10"])
|
454
453
|
s.add_runtime_dependency(%q<activerecord-deprecated_finders>, ["~> 1.0.3"])
|
455
454
|
s.add_runtime_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
|
456
|
-
s.add_development_dependency(%q<rake>, ["
|
457
|
-
s.add_development_dependency(%q<rspec>, ["
|
458
|
-
s.add_development_dependency(%q<bundler>, ["
|
459
|
-
s.add_development_dependency(%q<jeweler>, ["
|
460
|
-
s.add_development_dependency(%q<bio>, [">= 1.
|
455
|
+
s.add_development_dependency(%q<rake>, [">= 10.1.0"])
|
456
|
+
s.add_development_dependency(%q<rspec>, [">= 2.14.1"])
|
457
|
+
s.add_development_dependency(%q<bundler>, [">= 1.3.5"])
|
458
|
+
s.add_development_dependency(%q<jeweler>, [">= 2.3.7"])
|
459
|
+
s.add_development_dependency(%q<bio>, [">= 1.5.1"])
|
461
460
|
s.add_development_dependency(%q<rdoc>, [">= 4.0.1"])
|
462
461
|
else
|
463
462
|
s.add_dependency(%q<activerecord>, ["~> 4.0.2"])
|
@@ -466,11 +465,11 @@ Gem::Specification.new do |s|
|
|
466
465
|
s.add_dependency(%q<safe_attributes>, ["~> 1.0.10"])
|
467
466
|
s.add_dependency(%q<activerecord-deprecated_finders>, ["~> 1.0.3"])
|
468
467
|
s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
|
469
|
-
s.add_dependency(%q<rake>, ["
|
470
|
-
s.add_dependency(%q<rspec>, ["
|
471
|
-
s.add_dependency(%q<bundler>, ["
|
472
|
-
s.add_dependency(%q<jeweler>, ["
|
473
|
-
s.add_dependency(%q<bio>, [">= 1.
|
468
|
+
s.add_dependency(%q<rake>, [">= 10.1.0"])
|
469
|
+
s.add_dependency(%q<rspec>, [">= 2.14.1"])
|
470
|
+
s.add_dependency(%q<bundler>, [">= 1.3.5"])
|
471
|
+
s.add_dependency(%q<jeweler>, [">= 2.3.7"])
|
472
|
+
s.add_dependency(%q<bio>, [">= 1.5.1"])
|
474
473
|
s.add_dependency(%q<rdoc>, [">= 4.0.1"])
|
475
474
|
end
|
476
475
|
else
|
@@ -480,11 +479,11 @@ Gem::Specification.new do |s|
|
|
480
479
|
s.add_dependency(%q<safe_attributes>, ["~> 1.0.10"])
|
481
480
|
s.add_dependency(%q<activerecord-deprecated_finders>, ["~> 1.0.3"])
|
482
481
|
s.add_dependency(%q<bio-genomic-interval>, [">= 0.1.2"])
|
483
|
-
s.add_dependency(%q<rake>, ["
|
484
|
-
s.add_dependency(%q<rspec>, ["
|
485
|
-
s.add_dependency(%q<bundler>, ["
|
486
|
-
s.add_dependency(%q<jeweler>, ["
|
487
|
-
s.add_dependency(%q<bio>, [">= 1.
|
482
|
+
s.add_dependency(%q<rake>, [">= 10.1.0"])
|
483
|
+
s.add_dependency(%q<rspec>, [">= 2.14.1"])
|
484
|
+
s.add_dependency(%q<bundler>, [">= 1.3.5"])
|
485
|
+
s.add_dependency(%q<jeweler>, [">= 2.3.7"])
|
486
|
+
s.add_dependency(%q<bio>, [">= 1.5.1"])
|
488
487
|
s.add_dependency(%q<rdoc>, [">= 4.0.1"])
|
489
488
|
end
|
490
489
|
end
|
data/lib/bio-ucsc-api.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#
|
2
2
|
# = bio-ucsc-api.rb
|
3
|
-
# Copyright:: Cioyrught (C) 2011
|
3
|
+
# Copyright:: Cioyrught (C) 2011-2017
|
4
4
|
# MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp>
|
5
|
-
# License::
|
5
|
+
# License:: The MIT license
|
6
6
|
#
|
7
7
|
# Just a alias for bio-ucsc
|
8
8
|
|
data/lib/bio-ucsc.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#
|
2
2
|
# = bio-ucsc.rb
|
3
|
-
# Copyright:: Copyright (C) 2011-
|
3
|
+
# Copyright:: Copyright (C) 2011-2017
|
4
4
|
# MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp>
|
5
|
-
# License::
|
5
|
+
# License:: The MIT license
|
6
6
|
|
7
7
|
base = "#{::File.dirname(__FILE__)}/bio-ucsc"
|
8
8
|
|
@@ -21,7 +21,7 @@ require "#{base}/gi.rb"
|
|
21
21
|
|
22
22
|
module Bio
|
23
23
|
module Ucsc
|
24
|
-
VERSION = "0.6.
|
24
|
+
VERSION = "0.6.3"
|
25
25
|
base = "#{::File.dirname(__FILE__)}/bio-ucsc"
|
26
26
|
|
27
27
|
# mammmals #####################################
|
data/lib/bio-ucsc/file/twobit.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# = twobit.rb
|
3
3
|
# handle UCSC's 2bit file (locally stored) to retrieve the reference sequence
|
4
4
|
#
|
5
|
-
# Copyright:: Copyright (C) 2011, 2012, 2014
|
5
|
+
# Copyright:: Copyright (C) 2011, 2012, 2014, 2017
|
6
6
|
# MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp>
|
7
7
|
# License:: The MIT license
|
8
8
|
|
@@ -122,12 +122,25 @@ module Bio
|
|
122
122
|
when :equal,:contains
|
123
123
|
seq = 'N' * interval.overlap(nb)
|
124
124
|
when :contained_by
|
125
|
-
left_len = nb.chr_start - interval.chr_start
|
126
|
-
right_len = interval.chr_end - nb.chr_end
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
125
|
+
left_len = nb.chr_start - interval.chr_start
|
126
|
+
right_len = interval.chr_end - nb.chr_end
|
127
|
+
case
|
128
|
+
when left_len > 0 && right_len > 0
|
129
|
+
seq =
|
130
|
+
seq[0 .. (left_len-1)] +
|
131
|
+
'N' * (seq.length - left_len - right_len) +
|
132
|
+
seq[-right_len .. -1]
|
133
|
+
when left_len == 0 && right_len > 0
|
134
|
+
seq =
|
135
|
+
'N' * (seq.length - left_len - right_len) +
|
136
|
+
seq[-right_len .. -1]
|
137
|
+
when left_len > 0 && right_len == 0
|
138
|
+
seq =
|
139
|
+
seq[0 .. (left_len-1)] +
|
140
|
+
'N' * (seq.length - left_len - right_len)
|
141
|
+
else
|
142
|
+
raise "This should not happen! (Bio::Ucsc::File::Twobit#find_by_interval)"
|
143
|
+
end
|
131
144
|
when :left_overlapped
|
132
145
|
left_len = nb.chr_end - interval.chr_start + 1
|
133
146
|
seq[0, left_len] = 'N' * left_len
|
@@ -0,0 +1 @@
|
|
1
|
+
description.rb and gbcddnainfo.rb are removed because they are already not exit on UCSC's MySQL.
|
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.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroyuki Mishima
|
@@ -9,179 +9,177 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 4.0.2
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 4.0.2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: activesupport
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 4.0.2
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 4.0.2
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: mysql
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 2.9.1
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 2.9.1
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: safe_attributes
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 1.0.10
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 1.0.10
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: activerecord-deprecated_finders
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ~>
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 1.0.3
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 1.0.3
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: bio-genomic-interval
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 0.1.2
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: 0.1.2
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rake
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: 10.1.0
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: 10.1.0
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: rspec
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: 2.14.1
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: 2.14.1
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: bundler
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: 1.3.5
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: 1.3.5
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: jeweler
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
146
|
+
version: 2.3.7
|
147
147
|
type: :development
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- -
|
151
|
+
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
153
|
+
version: 2.3.7
|
154
154
|
- !ruby/object:Gem::Dependency
|
155
155
|
name: bio
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
|
-
- -
|
158
|
+
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version:
|
161
|
-
MS40LjM=
|
160
|
+
version: 1.5.1
|
162
161
|
type: :development
|
163
162
|
prerelease: false
|
164
163
|
version_requirements: !ruby/object:Gem::Requirement
|
165
164
|
requirements:
|
166
|
-
- -
|
165
|
+
- - ">="
|
167
166
|
- !ruby/object:Gem::Version
|
168
|
-
version:
|
169
|
-
MS40LjM=
|
167
|
+
version: 1.5.1
|
170
168
|
- !ruby/object:Gem::Dependency
|
171
169
|
name: rdoc
|
172
170
|
requirement: !ruby/object:Gem::Requirement
|
173
171
|
requirements:
|
174
|
-
- -
|
172
|
+
- - ">="
|
175
173
|
- !ruby/object:Gem::Version
|
176
174
|
version: 4.0.1
|
177
175
|
type: :development
|
178
176
|
prerelease: false
|
179
177
|
version_requirements: !ruby/object:Gem::Requirement
|
180
178
|
requirements:
|
181
|
-
- -
|
179
|
+
- - ">="
|
182
180
|
- !ruby/object:Gem::Version
|
183
181
|
version: 4.0.1
|
184
|
-
description:
|
182
|
+
description: 'Ruby UCSC API: accessing the UCSC Genome Database using Ruby'
|
185
183
|
email: missy@be.to
|
186
184
|
executables: []
|
187
185
|
extensions: []
|
@@ -436,8 +434,7 @@ files:
|
|
436
434
|
- lib/bio-ucsc/hg19/description.rb
|
437
435
|
- lib/bio-ucsc/hg19/gbcdnainfo.rb
|
438
436
|
- lib/bio-ucsc/hg38.rb
|
439
|
-
- lib/bio-ucsc/hg38/
|
440
|
-
- lib/bio-ucsc/hg38/gbcdnainfo.rb
|
437
|
+
- lib/bio-ucsc/hg38/00README
|
441
438
|
- lib/bio-ucsc/hgfixed.rb
|
442
439
|
- lib/bio-ucsc/loxafr3.rb
|
443
440
|
- lib/bio-ucsc/mm10.rb
|
@@ -617,18 +614,18 @@ require_paths:
|
|
617
614
|
- lib
|
618
615
|
required_ruby_version: !ruby/object:Gem::Requirement
|
619
616
|
requirements:
|
620
|
-
- -
|
617
|
+
- - ">="
|
621
618
|
- !ruby/object:Gem::Version
|
622
619
|
version: '0'
|
623
620
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
624
621
|
requirements:
|
625
|
-
- -
|
622
|
+
- - ">="
|
626
623
|
- !ruby/object:Gem::Version
|
627
624
|
version: '0'
|
628
625
|
requirements: []
|
629
626
|
rubyforge_project:
|
630
|
-
rubygems_version: 2.1
|
627
|
+
rubygems_version: 2.5.1
|
631
628
|
signing_key:
|
632
629
|
specification_version: 4
|
633
|
-
summary:
|
630
|
+
summary: 'The Ruby UCSC API: accessing the UCSC Genome Database using Ruby'
|
634
631
|
test_files: []
|