bio-ucsc-api 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +2 -0
- data/Gemfile.lock +3 -3
- data/README.md +6 -5
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/bio-ucsc-api.gemspec +6 -3
- data/lib/bio-ucsc.rb +3 -1
- data/lib/bio-ucsc/danrer10.rb +65 -0
- data/lib/bio-ucsc/danrer11.rb +65 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ac59cd4db2acdc7a4ae275be2bc1922961c6c79
|
4
|
+
data.tar.gz: 890618cf19fad13ec9ec3e40b38f36b3b103748b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 897602e55c118dae039485d460500073eb81ff20051116c86b8f0a01f7977fa6cfccb81688305c4f3ae2185b230ba89dbbceaf27da36ce667b033b0fa4c15980
|
7
|
+
data.tar.gz: 36fe84fedf9425b470a3b7e070947b41619b5dc060b60d92bac468983a78f48786f2936f3c4bc554735d751650c00ca7c9244aa653cc7cdde837eca6cb307a28
|
data/ChangeLog.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#Change Log
|
2
|
+
* **UPDATE** (v.0.6.5) Support Zebrafish DanRer10 and DanRer11 references.
|
3
|
+
* **UPDATE** (v.0.6.4) Support Ruby 2.4 by using Rails 4.2 and the MySql2 gem v0.4 at BioHackathon2017 http://20
|
2
4
|
* **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".
|
3
5
|
* **BUG-FIX** (v.0.6.2) NoMemoryError in Bio::Ucsc::File::Twobit.open. Now internally File.open is used instead of Kernel.open.
|
4
6
|
* **UPDATE** (v.0.6.1) Support new human hg38 reference. Newer tables after this release will be supported in later varsions.
|
data/Gemfile.lock
CHANGED
@@ -48,14 +48,14 @@ GEM
|
|
48
48
|
semver2
|
49
49
|
jwt (1.5.6)
|
50
50
|
mime-types (2.99.3)
|
51
|
-
mini_portile2 (2.
|
51
|
+
mini_portile2 (2.3.0)
|
52
52
|
minitest (5.10.3)
|
53
53
|
multi_json (1.12.2)
|
54
54
|
multi_xml (0.6.0)
|
55
55
|
multipart-post (2.0.0)
|
56
56
|
mysql2 (0.4.9)
|
57
|
-
nokogiri (1.8.
|
58
|
-
mini_portile2 (~> 2.
|
57
|
+
nokogiri (1.8.2)
|
58
|
+
mini_portile2 (~> 2.3.0)
|
59
59
|
oauth2 (1.4.0)
|
60
60
|
faraday (>= 0.8, < 0.13)
|
61
61
|
jwt (~> 1.0)
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# bio-ucsc-api version 0.6.
|
1
|
+
# bio-ucsc-api version 0.6.5 [![Build Status](https://travis-ci.org/misshie/bioruby-ucsc-api.svg?branch=master)](https://travis-ci.org/misshie/bioruby-ucsc.api)
|
2
2
|
|
3
3
|
**The Ruby UCSC API**: accessing the UCSC Genome Database using Ruby.
|
4
4
|
|
@@ -41,7 +41,7 @@ If your favorite databese is not supported, please do not hesitate to contact th
|
|
41
41
|
|
42
42
|
* **human** Hg38, Hg19, Hg18
|
43
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)
|
44
|
-
* **vertebrates** chicken (GalGal3), zebra finch (TaeGut1), lizard (AnoCar2), X. tropicalis (XenTro2), zebrafish (DanRer7), tetraodon (TetNig2), fugu (Fr2), stickleback (GasAcu1), medaka (OryLat2), lamprey (PetMar1)
|
44
|
+
* **vertebrates** chicken (GalGal3), zebra finch (TaeGut1), lizard (AnoCar2), X. tropicalis (XenTro2), zebrafish (DanRer7, DanRer10, DanRer11), tetraodon (TetNig2), fugu (Fr2), stickleback (GasAcu1), medaka (OryLat2), lamprey (PetMar1)
|
45
45
|
* **deuterostomes** lancelet (BraFlo1), sea squirt (Ci2), sea urchin (StrPur2)
|
46
46
|
[insects] D.melanogaster (Dm3), D.simulans (DroSim1), D.sechellia (DroSec1), D.yakuba (DroYak2), D.erecta (DroEre1), D.ananassae (DroAna2), D.pseudoobscura (Dp3), D.persimilis (DroPer1), D.virilis (DroVir2), D.mojavensis (DroMoj2), D.grimshawi (DroGri1), Anopheles mosquito (AnoGam1), honey bee (ApiMel2)
|
47
47
|
* **nematodes** C.elegans (Ce6), C.brenneri (CaePb3), C.briggsae (Cb3), C.remanei (CaeRem3), C.japonica (CaeJap1), P.pacificus (PriPac1)
|
@@ -76,8 +76,9 @@ See also:
|
|
76
76
|
* UCSCBin library - https://github.com/misshie/UCSCBin
|
77
77
|
|
78
78
|
# Change Log
|
79
|
-
* **UPDATE** (v.0.6.
|
80
|
-
* **
|
79
|
+
* **UPDATE** (v.0.6.5) Support Zebrafish DanRer10 and DanRer11 references.
|
80
|
+
* **UPDATE** (v.0.6.4) Support Ruby 2.4 by using Rails 4.2 and the MySql2 gem v0.4 at BioHackathon2017 http://2017.biohackathon.org .
|
81
|
+
* **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", "gggNccc", etc. .
|
81
82
|
* **BUG-FIX** (v.0.6.2) NoMemoryError in Bio::Ucsc::File::Twobit.open. Now internally File.open is used instead of Kernel.open.
|
82
83
|
* **UPDATE** (v.0.6.1) Support new human hg38 reference. Newer tables after this release will be supported in later varsions.
|
83
84
|
* **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.
|
@@ -264,6 +265,6 @@ puts Bio::Ucsc::Hg19::Snp138.find_by_name("rs242").snp138Seq.first.file_offset
|
|
264
265
|
```
|
265
266
|
|
266
267
|
# Copyright
|
267
|
-
**Copyright**: (c) 2011-
|
268
|
+
**Copyright**: (c) 2011-2018 MISHIMA, Hiroyuki (hmishima at nagasaki-u.ac.jp / Twitter: @mishima_eng (in English) and @mishimahryk (in Japanese)
|
268
269
|
**Copyright**: (c) 2010 Jan Aerts
|
269
270
|
**License**: The MIT license. See LICENSE.txt for further details..
|
data/Rakefile
CHANGED
@@ -15,7 +15,8 @@ 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 #
|
18
|
+
gem.version = File.read('VERSION').chomp # manually added
|
19
|
+
gem.required_ruby_version = '>= 1.9.3' # manually added
|
19
20
|
gem.name = "bio-ucsc-api"
|
20
21
|
gem.homepage = "http://github.com/misshie/bioruby-ucsc-api"
|
21
22
|
gem.license = "The MIT License"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.5
|
data/bio-ucsc-api.gemspec
CHANGED
@@ -2,16 +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.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bio-ucsc-api".freeze
|
9
|
-
s.version = "0.6.
|
9
|
+
s.version = "0.6.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Hiroyuki Mishima".freeze, "Jan Aerts".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2018-05-11"
|
15
15
|
s.description = "Ruby UCSC API: accessing the UCSC Genome Database using Ruby".freeze
|
16
16
|
s.email = "missy@be.to".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -125,6 +125,8 @@ Gem::Specification.new do |s|
|
|
125
125
|
"lib/bio-ucsc/ce6/rmsk.rb",
|
126
126
|
"lib/bio-ucsc/ce6/t25mersrepeats.rb",
|
127
127
|
"lib/bio-ucsc/ci2.rb",
|
128
|
+
"lib/bio-ucsc/danrer10.rb",
|
129
|
+
"lib/bio-ucsc/danrer11.rb",
|
128
130
|
"lib/bio-ucsc/danrer7.rb",
|
129
131
|
"lib/bio-ucsc/dm3.rb",
|
130
132
|
"lib/bio-ucsc/dm3/chainanogam1.rb",
|
@@ -439,6 +441,7 @@ Gem::Specification.new do |s|
|
|
439
441
|
]
|
440
442
|
s.homepage = "http://github.com/misshie/bioruby-ucsc-api".freeze
|
441
443
|
s.licenses = ["The MIT License".freeze]
|
444
|
+
s.required_ruby_version = Gem::Requirement.new(">= 1.9.3".freeze)
|
442
445
|
s.rubygems_version = "2.6.11".freeze
|
443
446
|
s.summary = "The Ruby UCSC API: accessing the UCSC Genome Database using Ruby".freeze
|
444
447
|
|
data/lib/bio-ucsc.rb
CHANGED
@@ -98,7 +98,9 @@ module Bio
|
|
98
98
|
autoload :XenTro2, "#{base}/xentro2"
|
99
99
|
|
100
100
|
# zebrafish genome assemblies
|
101
|
-
autoload :DanRer7,
|
101
|
+
autoload :DanRer7, "#{base}/danrer7"
|
102
|
+
autoload :DanRer10, "#{base}/danrer10"
|
103
|
+
autoload :DanRer11, "#{base}/danrer11"
|
102
104
|
|
103
105
|
# tetraodon genome assemblies
|
104
106
|
autoload :TetNig2, "#{base}/tetnig2"
|
@@ -0,0 +1,65 @@
|
|
1
|
+
#
|
2
|
+
# = AUTOMATIC Table Definition of the Zebrafish Jul. 2010 (GRCz10/danRer10) assembly
|
3
|
+
# Copyright:: Copyright (C) 2011-2018
|
4
|
+
# MISHIMA, Hiroyuki
|
5
|
+
# <missy at be.to / hmishima at nagasaki-u.ac.jp>
|
6
|
+
# License:: The MIT licence
|
7
|
+
#
|
8
|
+
|
9
|
+
require "#{::File.dirname(__FILE__)}/table_class_detector"
|
10
|
+
|
11
|
+
module Bio
|
12
|
+
module Ucsc
|
13
|
+
module DanRer10
|
14
|
+
CHROMS =
|
15
|
+
%w(Chr1 Chr2 Chr3 Chr4 Chr5 Chr6 Chr7 Chr8 Chr9 Chr10
|
16
|
+
Chr11 Chr12 Chr13 Chr14 Chr15 Chr16 Chr17 Chr18 Chr19
|
17
|
+
Chr20 Chr21 Chr22 Chr23 Chr24 Chr25)
|
18
|
+
|
19
|
+
extend TableClassDetector
|
20
|
+
def self.default
|
21
|
+
DBConnection.default
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.connect(param = Hash.new)
|
25
|
+
DBConnection.db_adapter = param[:db_adapter] if param[:db_adapter]
|
26
|
+
DBConnection.db_host = param[:db_host] if param[:db_host]
|
27
|
+
DBConnection.db_username = param[:db_username] if param[:db_username]
|
28
|
+
DBConnection.password = param[:password] if param[:password]
|
29
|
+
DBConnection.connect
|
30
|
+
end
|
31
|
+
|
32
|
+
class DBConnection < ActiveRecord::Base
|
33
|
+
include SafeAttributes
|
34
|
+
self.inheritance_column = 'dummy_not_to_use'
|
35
|
+
|
36
|
+
@@db_adapter ||= 'mysql2'
|
37
|
+
@@db_host ||= 'genome-mysql.cse.ucsc.edu'
|
38
|
+
@@db_username ||= 'genome'
|
39
|
+
@@db_password ||= ''
|
40
|
+
@@db_name ||= 'danRer10'
|
41
|
+
|
42
|
+
cattr_accessor :db_adapter, :db_host, :db_username, :db_password
|
43
|
+
|
44
|
+
self.abstract_class = true
|
45
|
+
|
46
|
+
def self.default
|
47
|
+
@@db_adapter = 'mysql2'
|
48
|
+
@@db_host = 'genome-mysql.cse.ucsc.edu'
|
49
|
+
@@db_username = 'genome'
|
50
|
+
@@db_password = ''
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.connect
|
54
|
+
establish_connection({ :adapter => @@db_adapter,
|
55
|
+
:host => @@db_host,
|
56
|
+
:database => @@db_name,
|
57
|
+
:username => @@db_username,
|
58
|
+
:password => @@db_password, })
|
59
|
+
end
|
60
|
+
end # class DBConnection
|
61
|
+
|
62
|
+
base = "#{::File.dirname(__FILE__)}/danrer10"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
#
|
2
|
+
# = AUTOMATIC Table Definition of the Zebrafish Jul. 2010 (GRCz11/danRer11) assembly
|
3
|
+
# Copyright:: Copyright (C) 2011-2018
|
4
|
+
# MISHIMA, Hiroyuki
|
5
|
+
# <missy at be.to / hmishima at nagasaki-u.ac.jp>
|
6
|
+
# License:: The MIT licence
|
7
|
+
#
|
8
|
+
|
9
|
+
require "#{::File.dirname(__FILE__)}/table_class_detector"
|
10
|
+
|
11
|
+
module Bio
|
12
|
+
module Ucsc
|
13
|
+
module DanRer11
|
14
|
+
CHROMS =
|
15
|
+
%w(Chr1 Chr2 Chr3 Chr4 Chr5 Chr6 Chr7 Chr8 Chr9 Chr10
|
16
|
+
Chr11 Chr12 Chr13 Chr14 Chr15 Chr16 Chr17 Chr18 Chr19
|
17
|
+
Chr20 Chr21 Chr22 Chr23 Chr24 Chr25)
|
18
|
+
|
19
|
+
extend TableClassDetector
|
20
|
+
def self.default
|
21
|
+
DBConnection.default
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.connect(param = Hash.new)
|
25
|
+
DBConnection.db_adapter = param[:db_adapter] if param[:db_adapter]
|
26
|
+
DBConnection.db_host = param[:db_host] if param[:db_host]
|
27
|
+
DBConnection.db_username = param[:db_username] if param[:db_username]
|
28
|
+
DBConnection.password = param[:password] if param[:password]
|
29
|
+
DBConnection.connect
|
30
|
+
end
|
31
|
+
|
32
|
+
class DBConnection < ActiveRecord::Base
|
33
|
+
include SafeAttributes
|
34
|
+
self.inheritance_column = 'dummy_not_to_use'
|
35
|
+
|
36
|
+
@@db_adapter ||= 'mysql2'
|
37
|
+
@@db_host ||= 'genome-mysql.cse.ucsc.edu'
|
38
|
+
@@db_username ||= 'genome'
|
39
|
+
@@db_password ||= ''
|
40
|
+
@@db_name ||= 'danRer11'
|
41
|
+
|
42
|
+
cattr_accessor :db_adapter, :db_host, :db_username, :db_password
|
43
|
+
|
44
|
+
self.abstract_class = true
|
45
|
+
|
46
|
+
def self.default
|
47
|
+
@@db_adapter = 'mysql2'
|
48
|
+
@@db_host = 'genome-mysql.cse.ucsc.edu'
|
49
|
+
@@db_username = 'genome'
|
50
|
+
@@db_password = ''
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.connect
|
54
|
+
establish_connection({ :adapter => @@db_adapter,
|
55
|
+
:host => @@db_host,
|
56
|
+
:database => @@db_name,
|
57
|
+
:username => @@db_username,
|
58
|
+
:password => @@db_password, })
|
59
|
+
end
|
60
|
+
end # class DBConnection
|
61
|
+
|
62
|
+
base = "#{::File.dirname(__FILE__)}/danrer10"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroyuki Mishima
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-05-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -293,6 +293,8 @@ files:
|
|
293
293
|
- lib/bio-ucsc/ce6/rmsk.rb
|
294
294
|
- lib/bio-ucsc/ce6/t25mersrepeats.rb
|
295
295
|
- lib/bio-ucsc/ci2.rb
|
296
|
+
- lib/bio-ucsc/danrer10.rb
|
297
|
+
- lib/bio-ucsc/danrer11.rb
|
296
298
|
- lib/bio-ucsc/danrer7.rb
|
297
299
|
- lib/bio-ucsc/dm3.rb
|
298
300
|
- lib/bio-ucsc/dm3/chainanogam1.rb
|
@@ -616,7 +618,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
616
618
|
requirements:
|
617
619
|
- - ">="
|
618
620
|
- !ruby/object:Gem::Version
|
619
|
-
version:
|
621
|
+
version: 1.9.3
|
620
622
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
621
623
|
requirements:
|
622
624
|
- - ">="
|