bio-twobit 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -17
- data/ext/bio/twobit/twobit.c +27 -49
- data/lib/bio/twobit/references/ailmel1.rb +16 -0
- data/lib/bio/twobit/references/allmis1.rb +16 -0
- data/lib/bio/twobit/references/anocar2.rb +16 -0
- data/lib/bio/twobit/references/anogam3.rb +16 -0
- data/lib/bio/twobit/references/apimel2.rb +16 -0
- data/lib/bio/twobit/references/aplcal1.rb +16 -0
- data/lib/bio/twobit/references/aptman1.rb +16 -0
- data/lib/bio/twobit/references/aquchr2.rb +16 -0
- data/lib/bio/twobit/references/balacu1.rb +16 -0
- data/lib/bio/twobit/references/bostau7.rb +16 -0
- data/lib/bio/twobit/references/braflo1.rb +16 -0
- data/lib/bio/twobit/references/caejap1.rb +16 -0
- data/lib/bio/twobit/references/caepb2.rb +16 -0
- data/lib/bio/twobit/references/caerem3.rb +16 -0
- data/lib/bio/twobit/references/caljac4.rb +16 -0
- data/lib/bio/twobit/references/calmil1.rb +16 -0
- data/lib/bio/twobit/references/canfam4.rb +16 -0
- data/lib/bio/twobit/references/canfam6.rb +16 -0
- data/lib/bio/twobit/references/cb3.rb +16 -0
- data/lib/bio/twobit/references/ce11.rb +16 -0
- data/lib/bio/twobit/references/cersim1.rb +16 -0
- data/lib/bio/twobit/references/chlsab2.rb +16 -0
- data/lib/bio/twobit/references/chohof1.rb +16 -0
- data/lib/bio/twobit/references/chrpic1.rb +16 -0
- data/lib/bio/twobit/references/ci2.rb +16 -0
- data/lib/bio/twobit/references/crigrichov2.rb +16 -0
- data/lib/bio/twobit/references/dasnov3.rb +16 -0
- data/lib/bio/twobit/references/dipord1.rb +16 -0
- data/lib/bio/twobit/references/dp3.rb +16 -0
- data/lib/bio/twobit/references/droana2.rb +16 -0
- data/lib/bio/twobit/references/droere1.rb +16 -0
- data/lib/bio/twobit/references/drogri1.rb +16 -0
- data/lib/bio/twobit/references/dromoj2.rb +16 -0
- data/lib/bio/twobit/references/droper1.rb +16 -0
- data/lib/bio/twobit/references/drosec1.rb +16 -0
- data/lib/bio/twobit/references/drosim1.rb +16 -0
- data/lib/bio/twobit/references/drovir2.rb +16 -0
- data/lib/bio/twobit/references/droyak2.rb +16 -0
- data/lib/bio/twobit/references/ebovir3.rb +16 -0
- data/lib/bio/twobit/references/echtel2.rb +16 -0
- data/lib/bio/twobit/references/equcab3.rb +16 -0
- data/lib/bio/twobit/references/erieur2.rb +16 -0
- data/lib/bio/twobit/references/felcat9.rb +16 -0
- data/lib/bio/twobit/references/fr2.rb +16 -0
- data/lib/bio/twobit/references/gadmor1.rb +16 -0
- data/lib/bio/twobit/references/galgal6.rb +16 -0
- data/lib/bio/twobit/references/geofor1.rb +16 -0
- data/lib/bio/twobit/references/gorgor6.rb +16 -0
- data/lib/bio/twobit/references/hetgla2.rb +16 -0
- data/lib/bio/twobit/references/latcha1.rb +16 -0
- data/lib/bio/twobit/references/loxafr3.rb +16 -0
- data/lib/bio/twobit/references/maceug2.rb +16 -0
- data/lib/bio/twobit/references/macfas5.rb +16 -0
- data/lib/bio/twobit/references/manpen1.rb +16 -0
- data/lib/bio/twobit/references/melgal1.rb +16 -0
- data/lib/bio/twobit/references/melund1.rb +16 -0
- data/lib/bio/twobit/references/micmur2.rb +16 -0
- data/lib/bio/twobit/references/mondom5.rb +16 -0
- data/lib/bio/twobit/references/myoluc2.rb +16 -0
- data/lib/bio/twobit/references/nanpar1.rb +16 -0
- data/lib/bio/twobit/references/naslar1.rb +16 -0
- data/lib/bio/twobit/references/neosch1.rb +16 -0
- data/lib/bio/twobit/references/nomleu3.rb +16 -0
- data/lib/bio/twobit/references/ochpri3.rb +16 -0
- data/lib/bio/twobit/references/orenil2.rb +16 -0
- data/lib/bio/twobit/references/ornana2.rb +16 -0
- data/lib/bio/twobit/references/orycun2.rb +16 -0
- data/lib/bio/twobit/references/orylat2.rb +16 -0
- data/lib/bio/twobit/references/otogar3.rb +16 -0
- data/lib/bio/twobit/references/oviari4.rb +16 -0
- data/lib/bio/twobit/references/panpan3.rb +16 -0
- data/lib/bio/twobit/references/pantro6.rb +16 -0
- data/lib/bio/twobit/references/papanu4.rb +16 -0
- data/lib/bio/twobit/references/papham1.rb +16 -0
- data/lib/bio/twobit/references/petmar3.rb +16 -0
- data/lib/bio/twobit/references/ponabe2.rb +16 -0
- data/lib/bio/twobit/references/ponabe3.rb +16 -0
- data/lib/bio/twobit/references/pripac1.rb +16 -0
- data/lib/bio/twobit/references/procap1.rb +16 -0
- data/lib/bio/twobit/references/ptevam1.rb +16 -0
- data/lib/bio/twobit/references/rhemac10.rb +16 -0
- data/lib/bio/twobit/references/rn6.rb +16 -0
- data/lib/bio/twobit/references/saccer3.rb +16 -0
- data/lib/bio/twobit/references/saibol1.rb +16 -0
- data/lib/bio/twobit/references/sarhar1.rb +16 -0
- data/lib/bio/twobit/references/sorara2.rb +16 -0
- data/lib/bio/twobit/references/spetri2.rb +16 -0
- data/lib/bio/twobit/references/strpur2.rb +16 -0
- data/lib/bio/twobit/references/susscr11.rb +16 -0
- data/lib/bio/twobit/references/taegut2.rb +16 -0
- data/lib/bio/twobit/references/tarsyr2.rb +16 -0
- data/lib/bio/twobit/references/tetnig2.rb +16 -0
- data/lib/bio/twobit/references/thasir1.rb +16 -0
- data/lib/bio/twobit/references/triman1.rb +16 -0
- data/lib/bio/twobit/references/tupbel1.rb +16 -0
- data/lib/bio/twobit/references/turtru2.rb +16 -0
- data/lib/bio/twobit/references/uusfur1.rb +16 -0
- data/lib/bio/twobit/references/vicpac2.rb +16 -0
- data/lib/bio/twobit/references/wuhcor1.rb +16 -0
- data/lib/bio/twobit/references/xentro10.rb +16 -0
- data/lib/bio/twobit/version.rb +1 -1
- data/lib/bio/twobit.rb +2 -16
- metadata +107 -7
@@ -0,0 +1,16 @@
|
|
1
|
+
require_relative "../reference_genome"
|
2
|
+
|
3
|
+
module Bio
|
4
|
+
class TwoBit
|
5
|
+
class XenTro10 < ReferenceGenome
|
6
|
+
def initialize(**kwargs)
|
7
|
+
@metadata = Metadata.new
|
8
|
+
@metadata.id = "xenTro10"
|
9
|
+
@metadata.name = "xenTro10"
|
10
|
+
@metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
|
11
|
+
@data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/xenTro10/bigZips/xenTro10.2bit"
|
12
|
+
super(**kwargs)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/bio/twobit/version.rb
CHANGED
data/lib/bio/twobit.rb
CHANGED
@@ -24,22 +24,6 @@ module Bio
|
|
24
24
|
end
|
25
25
|
file
|
26
26
|
end
|
27
|
-
|
28
|
-
# Here, const_missing is used instead of autoload.
|
29
|
-
|
30
|
-
def const_missing(name)
|
31
|
-
# prevents const_get from being called recursively many times.
|
32
|
-
@missing_const ||= []
|
33
|
-
super if @missing_const.include? name
|
34
|
-
@missing_const << name
|
35
|
-
|
36
|
-
path = File.join(__dir__, "twobit/references", "#{name.to_s.downcase}.rb")
|
37
|
-
if File.exist?(path)
|
38
|
-
require path
|
39
|
-
return const_get(name)
|
40
|
-
end
|
41
|
-
super
|
42
|
-
end
|
43
27
|
end
|
44
28
|
|
45
29
|
def initialize(fname, masked: false)
|
@@ -117,3 +101,5 @@ module Bio
|
|
117
101
|
end
|
118
102
|
end
|
119
103
|
end
|
104
|
+
|
105
|
+
Dir[__dir__ + "/twobit/references/*.rb"].each { |file| require file }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-twobit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This is a Ruby binding for lib2bit(https://github.com/dpryan79/lib2bit),
|
14
14
|
which provides high-speed access to genomic data in 2bit file format.
|
@@ -32,21 +32,121 @@ files:
|
|
32
32
|
- lib/bio/twobit/downloader.rb
|
33
33
|
- lib/bio/twobit/metadata.rb
|
34
34
|
- lib/bio/twobit/reference_genome.rb
|
35
|
+
- lib/bio/twobit/references/ailmel1.rb
|
36
|
+
- lib/bio/twobit/references/allmis1.rb
|
37
|
+
- lib/bio/twobit/references/anocar2.rb
|
38
|
+
- lib/bio/twobit/references/anogam3.rb
|
39
|
+
- lib/bio/twobit/references/apimel2.rb
|
40
|
+
- lib/bio/twobit/references/aplcal1.rb
|
41
|
+
- lib/bio/twobit/references/aptman1.rb
|
42
|
+
- lib/bio/twobit/references/aquchr2.rb
|
43
|
+
- lib/bio/twobit/references/balacu1.rb
|
44
|
+
- lib/bio/twobit/references/bostau7.rb
|
45
|
+
- lib/bio/twobit/references/braflo1.rb
|
46
|
+
- lib/bio/twobit/references/caejap1.rb
|
47
|
+
- lib/bio/twobit/references/caepb2.rb
|
48
|
+
- lib/bio/twobit/references/caerem3.rb
|
49
|
+
- lib/bio/twobit/references/caljac4.rb
|
50
|
+
- lib/bio/twobit/references/calmil1.rb
|
51
|
+
- lib/bio/twobit/references/canfam4.rb
|
52
|
+
- lib/bio/twobit/references/canfam6.rb
|
53
|
+
- lib/bio/twobit/references/cb3.rb
|
54
|
+
- lib/bio/twobit/references/ce11.rb
|
55
|
+
- lib/bio/twobit/references/cersim1.rb
|
56
|
+
- lib/bio/twobit/references/chlsab2.rb
|
57
|
+
- lib/bio/twobit/references/chohof1.rb
|
58
|
+
- lib/bio/twobit/references/chrpic1.rb
|
59
|
+
- lib/bio/twobit/references/ci2.rb
|
60
|
+
- lib/bio/twobit/references/crigrichov2.rb
|
35
61
|
- lib/bio/twobit/references/danrer10.rb
|
36
62
|
- lib/bio/twobit/references/danrer11.rb
|
63
|
+
- lib/bio/twobit/references/dasnov3.rb
|
64
|
+
- lib/bio/twobit/references/dipord1.rb
|
37
65
|
- lib/bio/twobit/references/dm6.rb
|
66
|
+
- lib/bio/twobit/references/dp3.rb
|
67
|
+
- lib/bio/twobit/references/droana2.rb
|
68
|
+
- lib/bio/twobit/references/droere1.rb
|
69
|
+
- lib/bio/twobit/references/drogri1.rb
|
70
|
+
- lib/bio/twobit/references/dromoj2.rb
|
71
|
+
- lib/bio/twobit/references/droper1.rb
|
72
|
+
- lib/bio/twobit/references/drosec1.rb
|
73
|
+
- lib/bio/twobit/references/drosim1.rb
|
74
|
+
- lib/bio/twobit/references/drovir2.rb
|
75
|
+
- lib/bio/twobit/references/droyak2.rb
|
76
|
+
- lib/bio/twobit/references/ebovir3.rb
|
77
|
+
- lib/bio/twobit/references/echtel2.rb
|
78
|
+
- lib/bio/twobit/references/equcab3.rb
|
79
|
+
- lib/bio/twobit/references/erieur2.rb
|
80
|
+
- lib/bio/twobit/references/felcat9.rb
|
81
|
+
- lib/bio/twobit/references/fr2.rb
|
82
|
+
- lib/bio/twobit/references/gadmor1.rb
|
83
|
+
- lib/bio/twobit/references/galgal6.rb
|
84
|
+
- lib/bio/twobit/references/geofor1.rb
|
85
|
+
- lib/bio/twobit/references/gorgor6.rb
|
86
|
+
- lib/bio/twobit/references/hetgla2.rb
|
38
87
|
- lib/bio/twobit/references/hg19.rb
|
39
88
|
- lib/bio/twobit/references/hg38.rb
|
40
89
|
- lib/bio/twobit/references/hs1.rb
|
90
|
+
- lib/bio/twobit/references/latcha1.rb
|
91
|
+
- lib/bio/twobit/references/loxafr3.rb
|
92
|
+
- lib/bio/twobit/references/maceug2.rb
|
93
|
+
- lib/bio/twobit/references/macfas5.rb
|
94
|
+
- lib/bio/twobit/references/manpen1.rb
|
95
|
+
- lib/bio/twobit/references/melgal1.rb
|
96
|
+
- lib/bio/twobit/references/melund1.rb
|
97
|
+
- lib/bio/twobit/references/micmur2.rb
|
41
98
|
- lib/bio/twobit/references/mm10.rb
|
42
99
|
- lib/bio/twobit/references/mm39.rb
|
43
100
|
- lib/bio/twobit/references/mm9.rb
|
101
|
+
- lib/bio/twobit/references/mondom5.rb
|
102
|
+
- lib/bio/twobit/references/myoluc2.rb
|
103
|
+
- lib/bio/twobit/references/nanpar1.rb
|
104
|
+
- lib/bio/twobit/references/naslar1.rb
|
105
|
+
- lib/bio/twobit/references/neosch1.rb
|
106
|
+
- lib/bio/twobit/references/nomleu3.rb
|
107
|
+
- lib/bio/twobit/references/ochpri3.rb
|
108
|
+
- lib/bio/twobit/references/orenil2.rb
|
109
|
+
- lib/bio/twobit/references/ornana2.rb
|
110
|
+
- lib/bio/twobit/references/orycun2.rb
|
111
|
+
- lib/bio/twobit/references/orylat2.rb
|
112
|
+
- lib/bio/twobit/references/otogar3.rb
|
113
|
+
- lib/bio/twobit/references/oviari4.rb
|
114
|
+
- lib/bio/twobit/references/panpan3.rb
|
115
|
+
- lib/bio/twobit/references/pantro6.rb
|
116
|
+
- lib/bio/twobit/references/papanu4.rb
|
117
|
+
- lib/bio/twobit/references/papham1.rb
|
118
|
+
- lib/bio/twobit/references/petmar3.rb
|
119
|
+
- lib/bio/twobit/references/ponabe2.rb
|
120
|
+
- lib/bio/twobit/references/ponabe3.rb
|
121
|
+
- lib/bio/twobit/references/pripac1.rb
|
122
|
+
- lib/bio/twobit/references/procap1.rb
|
123
|
+
- lib/bio/twobit/references/ptevam1.rb
|
124
|
+
- lib/bio/twobit/references/rhemac10.rb
|
125
|
+
- lib/bio/twobit/references/rn6.rb
|
126
|
+
- lib/bio/twobit/references/saccer3.rb
|
127
|
+
- lib/bio/twobit/references/saibol1.rb
|
128
|
+
- lib/bio/twobit/references/sarhar1.rb
|
129
|
+
- lib/bio/twobit/references/sorara2.rb
|
130
|
+
- lib/bio/twobit/references/spetri2.rb
|
131
|
+
- lib/bio/twobit/references/strpur2.rb
|
132
|
+
- lib/bio/twobit/references/susscr11.rb
|
133
|
+
- lib/bio/twobit/references/taegut2.rb
|
134
|
+
- lib/bio/twobit/references/tarsyr2.rb
|
135
|
+
- lib/bio/twobit/references/tetnig2.rb
|
136
|
+
- lib/bio/twobit/references/thasir1.rb
|
137
|
+
- lib/bio/twobit/references/triman1.rb
|
138
|
+
- lib/bio/twobit/references/tupbel1.rb
|
139
|
+
- lib/bio/twobit/references/turtru2.rb
|
140
|
+
- lib/bio/twobit/references/uusfur1.rb
|
141
|
+
- lib/bio/twobit/references/vicpac2.rb
|
142
|
+
- lib/bio/twobit/references/wuhcor1.rb
|
143
|
+
- lib/bio/twobit/references/xentro10.rb
|
44
144
|
- lib/bio/twobit/version.rb
|
45
|
-
homepage: https://github.com/
|
145
|
+
homepage: https://github.com/kojix2/bio-twobit
|
46
146
|
licenses:
|
47
147
|
- MIT
|
48
148
|
metadata: {}
|
49
|
-
post_install_message:
|
149
|
+
post_install_message:
|
50
150
|
rdoc_options: []
|
51
151
|
require_paths:
|
52
152
|
- lib
|
@@ -61,8 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
161
|
- !ruby/object:Gem::Version
|
62
162
|
version: '0'
|
63
163
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
65
|
-
signing_key:
|
164
|
+
rubygems_version: 3.5.16
|
165
|
+
signing_key:
|
66
166
|
specification_version: 4
|
67
167
|
summary: A ruby library for accessing 2bit files
|
68
168
|
test_files: []
|