bio-twobit 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -17
  3. data/ext/bio/twobit/twobit.c +27 -49
  4. data/lib/bio/twobit/references/ailmel1.rb +16 -0
  5. data/lib/bio/twobit/references/allmis1.rb +16 -0
  6. data/lib/bio/twobit/references/anocar2.rb +16 -0
  7. data/lib/bio/twobit/references/anogam3.rb +16 -0
  8. data/lib/bio/twobit/references/apimel2.rb +16 -0
  9. data/lib/bio/twobit/references/aplcal1.rb +16 -0
  10. data/lib/bio/twobit/references/aptman1.rb +16 -0
  11. data/lib/bio/twobit/references/aquchr2.rb +16 -0
  12. data/lib/bio/twobit/references/balacu1.rb +16 -0
  13. data/lib/bio/twobit/references/bostau7.rb +16 -0
  14. data/lib/bio/twobit/references/braflo1.rb +16 -0
  15. data/lib/bio/twobit/references/caejap1.rb +16 -0
  16. data/lib/bio/twobit/references/caepb2.rb +16 -0
  17. data/lib/bio/twobit/references/caerem3.rb +16 -0
  18. data/lib/bio/twobit/references/caljac4.rb +16 -0
  19. data/lib/bio/twobit/references/calmil1.rb +16 -0
  20. data/lib/bio/twobit/references/canfam4.rb +16 -0
  21. data/lib/bio/twobit/references/canfam6.rb +16 -0
  22. data/lib/bio/twobit/references/cb3.rb +16 -0
  23. data/lib/bio/twobit/references/ce11.rb +16 -0
  24. data/lib/bio/twobit/references/cersim1.rb +16 -0
  25. data/lib/bio/twobit/references/chlsab2.rb +16 -0
  26. data/lib/bio/twobit/references/chohof1.rb +16 -0
  27. data/lib/bio/twobit/references/chrpic1.rb +16 -0
  28. data/lib/bio/twobit/references/ci2.rb +16 -0
  29. data/lib/bio/twobit/references/crigrichov2.rb +16 -0
  30. data/lib/bio/twobit/references/dasnov3.rb +16 -0
  31. data/lib/bio/twobit/references/dipord1.rb +16 -0
  32. data/lib/bio/twobit/references/dp3.rb +16 -0
  33. data/lib/bio/twobit/references/droana2.rb +16 -0
  34. data/lib/bio/twobit/references/droere1.rb +16 -0
  35. data/lib/bio/twobit/references/drogri1.rb +16 -0
  36. data/lib/bio/twobit/references/dromoj2.rb +16 -0
  37. data/lib/bio/twobit/references/droper1.rb +16 -0
  38. data/lib/bio/twobit/references/drosec1.rb +16 -0
  39. data/lib/bio/twobit/references/drosim1.rb +16 -0
  40. data/lib/bio/twobit/references/drovir2.rb +16 -0
  41. data/lib/bio/twobit/references/droyak2.rb +16 -0
  42. data/lib/bio/twobit/references/ebovir3.rb +16 -0
  43. data/lib/bio/twobit/references/echtel2.rb +16 -0
  44. data/lib/bio/twobit/references/equcab3.rb +16 -0
  45. data/lib/bio/twobit/references/erieur2.rb +16 -0
  46. data/lib/bio/twobit/references/felcat9.rb +16 -0
  47. data/lib/bio/twobit/references/fr2.rb +16 -0
  48. data/lib/bio/twobit/references/gadmor1.rb +16 -0
  49. data/lib/bio/twobit/references/galgal6.rb +16 -0
  50. data/lib/bio/twobit/references/geofor1.rb +16 -0
  51. data/lib/bio/twobit/references/gorgor6.rb +16 -0
  52. data/lib/bio/twobit/references/hetgla2.rb +16 -0
  53. data/lib/bio/twobit/references/latcha1.rb +16 -0
  54. data/lib/bio/twobit/references/loxafr3.rb +16 -0
  55. data/lib/bio/twobit/references/maceug2.rb +16 -0
  56. data/lib/bio/twobit/references/macfas5.rb +16 -0
  57. data/lib/bio/twobit/references/manpen1.rb +16 -0
  58. data/lib/bio/twobit/references/melgal1.rb +16 -0
  59. data/lib/bio/twobit/references/melund1.rb +16 -0
  60. data/lib/bio/twobit/references/micmur2.rb +16 -0
  61. data/lib/bio/twobit/references/mondom5.rb +16 -0
  62. data/lib/bio/twobit/references/myoluc2.rb +16 -0
  63. data/lib/bio/twobit/references/nanpar1.rb +16 -0
  64. data/lib/bio/twobit/references/naslar1.rb +16 -0
  65. data/lib/bio/twobit/references/neosch1.rb +16 -0
  66. data/lib/bio/twobit/references/nomleu3.rb +16 -0
  67. data/lib/bio/twobit/references/ochpri3.rb +16 -0
  68. data/lib/bio/twobit/references/orenil2.rb +16 -0
  69. data/lib/bio/twobit/references/ornana2.rb +16 -0
  70. data/lib/bio/twobit/references/orycun2.rb +16 -0
  71. data/lib/bio/twobit/references/orylat2.rb +16 -0
  72. data/lib/bio/twobit/references/otogar3.rb +16 -0
  73. data/lib/bio/twobit/references/oviari4.rb +16 -0
  74. data/lib/bio/twobit/references/panpan3.rb +16 -0
  75. data/lib/bio/twobit/references/pantro6.rb +16 -0
  76. data/lib/bio/twobit/references/papanu4.rb +16 -0
  77. data/lib/bio/twobit/references/papham1.rb +16 -0
  78. data/lib/bio/twobit/references/petmar3.rb +16 -0
  79. data/lib/bio/twobit/references/ponabe2.rb +16 -0
  80. data/lib/bio/twobit/references/ponabe3.rb +16 -0
  81. data/lib/bio/twobit/references/pripac1.rb +16 -0
  82. data/lib/bio/twobit/references/procap1.rb +16 -0
  83. data/lib/bio/twobit/references/ptevam1.rb +16 -0
  84. data/lib/bio/twobit/references/rhemac10.rb +16 -0
  85. data/lib/bio/twobit/references/rn6.rb +16 -0
  86. data/lib/bio/twobit/references/saccer3.rb +16 -0
  87. data/lib/bio/twobit/references/saibol1.rb +16 -0
  88. data/lib/bio/twobit/references/sarhar1.rb +16 -0
  89. data/lib/bio/twobit/references/sorara2.rb +16 -0
  90. data/lib/bio/twobit/references/spetri2.rb +16 -0
  91. data/lib/bio/twobit/references/strpur2.rb +16 -0
  92. data/lib/bio/twobit/references/susscr11.rb +16 -0
  93. data/lib/bio/twobit/references/taegut2.rb +16 -0
  94. data/lib/bio/twobit/references/tarsyr2.rb +16 -0
  95. data/lib/bio/twobit/references/tetnig2.rb +16 -0
  96. data/lib/bio/twobit/references/thasir1.rb +16 -0
  97. data/lib/bio/twobit/references/triman1.rb +16 -0
  98. data/lib/bio/twobit/references/tupbel1.rb +16 -0
  99. data/lib/bio/twobit/references/turtru2.rb +16 -0
  100. data/lib/bio/twobit/references/uusfur1.rb +16 -0
  101. data/lib/bio/twobit/references/vicpac2.rb +16 -0
  102. data/lib/bio/twobit/references/wuhcor1.rb +16 -0
  103. data/lib/bio/twobit/references/xentro10.rb +16 -0
  104. data/lib/bio/twobit/version.rb +1 -1
  105. data/lib/bio/twobit.rb +2 -16
  106. metadata +107 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54ca968d6522ecade29dea715e43dda98eff1c2ea8fff65f446dd5e5ea19b357
4
- data.tar.gz: 76def4a53e2df05f421a927334bb4441de477ca77409b0e37bbd99bda79ac657
3
+ metadata.gz: 62c043e60fe3e2fec4a578563d72ecc97d1e829149a2f0d8690165dc05d5bd41
4
+ data.tar.gz: 9584e93079bfbbd4cbf3bfeea0b5d11a638026f0cfea1a4144064c1cfbdb45b9
5
5
  SHA512:
6
- metadata.gz: ed21093a59367927ce28bc45ddba7bad0bc0d497e3516f41de9a6cc127d510a562a621ad892db9946894c48124c142cc05fcd9861adc25c649a9d32336438245
7
- data.tar.gz: f0091bf42601a641c49a1de4751fc2c79f1c2059db50e2891a34738700dbc6166deaf46e0f8f16a95b506fdaf60eb2e2e2a035e1258c34c99cb4e4027f67ffc2
6
+ metadata.gz: cf70fc7feb773cc03552dbb3cf0f6f9c0d4d261a8f81c0f7826c5797aa6c7baea9c391bb1cf7a82ba317710cf3f4ef5088016e6c0ce315133b8c9cad380b73a9
7
+ data.tar.gz: 5b8d65b21d777125873964fbdd9b999d1750263460e01218cf97e411ad4a54e3eedab264cd0efb900a11c141155a516661ecf0a473aab5ee4c40cc134ccf3635
data/README.md CHANGED
@@ -1,12 +1,17 @@
1
1
  # bio-twobit
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/bio-twobit.svg)](https://badge.fury.io/rb/bio-twobit)
4
- [![test](https://github.com/ruby-on-bioc/bio-twobit/actions/workflows/ci.yml/badge.svg)](https://github.com/ruby-on-bioc/bio-twobit/actions/workflows/ci.yml)
4
+ [![test](https://github.com/kojix2/bio-twobit/actions/workflows/ci.yml/badge.svg)](https://github.com/kojix2/bio-twobit/actions/workflows/ci.yml)
5
5
  [![dics](https://img.shields.io/badge/docs-stable-blue.svg)](https://rubydoc.info/gems/bio-twobit)
6
6
  [![DOI](https://zenodo.org/badge/436454379.svg)](https://zenodo.org/badge/latestdoi/436454379)
7
7
 
8
+ Bio::TwoBit is a Ruby interface to 2bit files.
9
+
8
10
  Ruby bindings to [lib2bit](https://github.com/dpryan79/lib2bit) / [py2bit](https://github.com/deeptools/py2bit).
9
11
 
12
+
13
+ 2bit files are used to store and index DNA sequences, usually of entire reference genomes. [The 2bit format](https://genome.ucsc.edu/goldenPath/help/twoBit.html) is a compact binary representation of DNA sequences that is used by the UCSC Genome Browser.
14
+
10
15
  ## Installation
11
16
 
12
17
  ```sh
@@ -16,20 +21,13 @@ gem install bio-twobit
16
21
  Linux and macOS are supported.
17
22
  Windows is currently not supported.
18
23
 
19
- ## Usage
20
-
21
- Downlaod BSgenome.Hsapiens.UCSC.hg38
22
-
23
- ```sh
24
- wget http://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.2bit
25
- ```
26
-
27
- ### Quick Start
24
+ ### Usage
28
25
 
29
26
  ```ruby
30
27
  require 'bio/twobit'
31
28
 
32
- hg38 = Bio::TwoBit.open("hg38.2bit")
29
+ # hg38 = Bio::TwoBit.open("hg38.2bit")
30
+ hg38 = Bio::TwoBit::Hg38.new
33
31
 
34
32
  hg38.path
35
33
  # "hg38.2bit"
@@ -56,7 +54,7 @@ hg38.sequence("chr1", 50000, 50050)
56
54
  # "AAACAGGTTAATCGCCACGACATAGTAGTATTTAGAGTTACTAGTAAGCC" # length 50
57
55
  ```
58
56
 
59
- * The first number is the **(0-based)** position on the chromosome/contig where the sequence should begin.
57
+ * The first number is the **(0-based)** position on the chromosome/contig where the sequence should begin.
60
58
  * The second number is the **(1-based)** position on the chromosome where the sequence should end.
61
59
 
62
60
  ```ruby
@@ -121,22 +119,22 @@ hg38 = Bio::TwoBit::Hg38.new
121
119
  hs1 = Bio::TwoBit::Hs1.new
122
120
  ```
123
121
 
124
- Adding a new reference genome is easy. Add [here](https://github.com/ruby-on-bioc/bio-twobit/blob/main/lib/bio/twobit/references/template.erb) the id of the genome you want to use.
122
+ Adding a new reference genome is easy. Add the id of the genome you want to use [here](https://github.com/kojix2/bio-twobit/blob/main/lib/bio/twobit/references/template.erb).
125
123
 
126
124
  ```
127
- git clone https://github.com/ruby-on-bioc/bio-twobit
125
+ git clone https://github.com/kojix2/bio-twobit
128
126
  vi lib/bio/twobit/references/template.erb # Add your id to ids list.
129
127
  ruby lib/bio/twobit/references/template.erb
130
128
  rake install
131
129
  ```
132
130
 
133
- If you want to use 2-bit files from locations other than UCSC, create your own classes [here](https://github.com/ruby-on-bioc/bio-twobit/tree/main/lib/bio/twobit/references).
131
+ If you want to use 2-bit files from locations other than UCSC, create your own classes [here](https://github.com/kojix2/bio-twobit/tree/main/lib/bio/twobit/references).
134
132
 
135
133
  Pull requests are welcome.
136
134
 
137
135
  ## Development
138
136
 
139
- Bug reports and pull requests are welcome on GitHub at https://github.com/ruby-on-bioc/bio-twobit.
137
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kojix2/bio-twobit.
140
138
 
141
139
  Do you need commit rights to my repository?
142
140
  Do you want to get admin rights and take over the project?
@@ -147,4 +145,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/ruby-o
147
145
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
148
146
 
149
147
  Code from [Red Datasets](https://github.com/red-data-tools/red-datasets) is used for automatic file download and caching. (The MIT license)
150
-
@@ -48,12 +48,12 @@ static void TwoBit_free(void *ptr);
48
48
  static size_t TwoBit_memsize(const void *ptr);
49
49
 
50
50
  static const rb_data_type_t TwoBit_type = {
51
- .wrap_struct_name = "TwoBit",
52
- .function = {
53
- .dfree = TwoBit_free,
54
- .dsize = TwoBit_memsize,
55
- },
56
- .flags = RUBY_TYPED_FREE_IMMEDIATELY,
51
+ .wrap_struct_name = "TwoBit",
52
+ .function = {
53
+ .dfree = TwoBit_free,
54
+ .dsize = TwoBit_memsize,
55
+ },
56
+ .flags = RUBY_TYPED_FREE_IMMEDIATELY,
57
57
  };
58
58
 
59
59
  static void
@@ -100,7 +100,6 @@ twobit_init(VALUE klass, VALUE fpath, VALUE storeMasked)
100
100
  tb = twobitOpen(path, mask);
101
101
  if (!tb)
102
102
  {
103
- twobitClose(tb);
104
103
  rb_raise(rb_eRuntimeError, "Could not open file %s", path);
105
104
  return Qnil;
106
105
  }
@@ -251,8 +250,8 @@ twobit_sequence(VALUE self, VALUE chrom, VALUE rbstart, VALUE rbend)
251
250
  TwoBit *tb;
252
251
 
253
252
  ch = StringValueCStr(chrom);
254
- startl = NUM2UINT32(rbstart);
255
- endl = NUM2UINT32(rbend);
253
+ startl = NUM2ULONG(rbstart);
254
+ endl = NUM2ULONG(rbend);
256
255
  tb = getTwoBit(self);
257
256
 
258
257
  if (!tb)
@@ -278,8 +277,14 @@ twobit_sequence(VALUE self, VALUE chrom, VALUE rbstart, VALUE rbend)
278
277
  start = (uint32_t)startl;
279
278
 
280
279
  str = twobitSequence(tb, ch, start, end);
281
-
282
- return rb_str_new2(str);
280
+ if (!str)
281
+ {
282
+ rb_raise(rb_eRuntimeError, "Failed to retrieve the sequence for %s:%u-%u", ch, start, end);
283
+ return Qnil;
284
+ }
285
+ VALUE result = rb_str_new2(str);
286
+ free(str);
287
+ return result;
283
288
  }
284
289
 
285
290
  static VALUE
@@ -290,6 +295,7 @@ twobit_bases(VALUE self, VALUE chrom, VALUE start, VALUE end, VALUE fraction)
290
295
  TwoBit *tb;
291
296
  void *o = NULL;
292
297
  VALUE val, hash;
298
+ const char *bases[4] = {"A", "C", "T", "G"};
293
299
 
294
300
  tb = getTwoBit(self);
295
301
  if (!tb)
@@ -312,48 +318,20 @@ twobit_bases(VALUE self, VALUE chrom, VALUE start, VALUE end, VALUE fraction)
312
318
 
313
319
  hash = rb_hash_new();
314
320
 
315
- if (fr)
321
+ for (int i = 0; i < 4; i++)
316
322
  {
317
- val = DBL2NUM(((double *)o)[0]);
318
- }
319
- else
320
- {
321
- val = UINT32_2NUM(((uint32_t *)o)[0]);
322
- }
323
- rb_hash_aset(hash, rb_str_new2("A"), val);
324
-
325
- if (fr)
326
- {
327
- val = DBL2NUM(((double *)o)[1]);
328
- }
329
- else
330
- {
331
- val = UINT32_2NUM(((uint32_t *)o)[1]);
332
- }
333
- rb_hash_aset(hash, rb_str_new2("C"), val);
334
-
335
- if (fr)
336
- {
337
- val = DBL2NUM(((double *)o)[2]);
338
- }
339
- else
340
- {
341
- val = UINT32_2NUM(((uint32_t *)o)[2]);
342
- }
343
- rb_hash_aset(hash, rb_str_new2("T"), val);
344
-
345
- if (fr)
346
- {
347
- val = DBL2NUM(((double *)o)[3]);
348
- }
349
- else
350
- {
351
- val = UINT32_2NUM(((uint32_t *)o)[3]);
323
+ if (fr)
324
+ {
325
+ val = DBL2NUM(((double *)o)[i]);
326
+ }
327
+ else
328
+ {
329
+ val = UINT32_2NUM(((uint32_t *)o)[i]);
330
+ }
331
+ rb_hash_aset(hash, rb_str_new2(bases[i]), val);
352
332
  }
353
- rb_hash_aset(hash, rb_str_new2("G"), val);
354
333
 
355
334
  free(o);
356
-
357
335
  return hash;
358
336
  }
359
337
 
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class AilMel1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "ailMel1"
9
+ @metadata.name = "ailMel1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/ailMel1/bigZips/ailMel1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class AllMis1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "allMis1"
9
+ @metadata.name = "allMis1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/allMis1/bigZips/allMis1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class AnoCar2 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "anoCar2"
9
+ @metadata.name = "anoCar2"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/anoCar2/bigZips/anoCar2.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class AnoGam3 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "anoGam3"
9
+ @metadata.name = "anoGam3"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/anoGam3/bigZips/anoGam3.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class ApiMel2 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "apiMel2"
9
+ @metadata.name = "apiMel2"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/apiMel2/bigZips/apiMel2.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class AplCal1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "aplCal1"
9
+ @metadata.name = "aplCal1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/aplCal1/bigZips/aplCal1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class AptMan1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "aptMan1"
9
+ @metadata.name = "aptMan1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/aptMan1/bigZips/aptMan1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class AquChr2 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "aquChr2"
9
+ @metadata.name = "aquChr2"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/aquChr2/bigZips/aquChr2.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class BalAcu1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "balAcu1"
9
+ @metadata.name = "balAcu1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/balAcu1/bigZips/balAcu1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class BosTau7 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "bosTau7"
9
+ @metadata.name = "bosTau7"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/bosTau7/bigZips/bosTau7.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class BraFlo1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "braFlo1"
9
+ @metadata.name = "braFlo1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/braFlo1/bigZips/braFlo1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class CaeJap1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "caeJap1"
9
+ @metadata.name = "caeJap1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/caeJap1/bigZips/caeJap1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class CaePb2 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "caePb2"
9
+ @metadata.name = "caePb2"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/caePb2/bigZips/caePb2.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class CaeRem3 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "caeRem3"
9
+ @metadata.name = "caeRem3"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/caeRem3/bigZips/caeRem3.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class CalJac4 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "calJac4"
9
+ @metadata.name = "calJac4"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/calJac4/bigZips/calJac4.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class CalMil1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "calMil1"
9
+ @metadata.name = "calMil1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/calMil1/bigZips/calMil1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class CanFam4 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "canFam4"
9
+ @metadata.name = "canFam4"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/canFam4/bigZips/canFam4.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class CanFam6 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "canFam6"
9
+ @metadata.name = "canFam6"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/canFam6/bigZips/canFam6.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class Cb3 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "cb3"
9
+ @metadata.name = "cb3"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/cb3/bigZips/cb3.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class Ce11 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "ce11"
9
+ @metadata.name = "ce11"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/ce11/bigZips/ce11.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class CerSim1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "cerSim1"
9
+ @metadata.name = "cerSim1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/cerSim1/bigZips/cerSim1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class ChlSab2 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "chlSab2"
9
+ @metadata.name = "chlSab2"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/chlSab2/bigZips/chlSab2.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class ChoHof1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "choHof1"
9
+ @metadata.name = "choHof1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/choHof1/bigZips/choHof1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class ChrPic1 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "chrPic1"
9
+ @metadata.name = "chrPic1"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/chrPic1/bigZips/chrPic1.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require_relative "../reference_genome"
2
+
3
+ module Bio
4
+ class TwoBit
5
+ class Ci2 < ReferenceGenome
6
+ def initialize(**kwargs)
7
+ @metadata = Metadata.new
8
+ @metadata.id = "ci2"
9
+ @metadata.name = "ci2"
10
+ @metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
11
+ @data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/ci2/bigZips/ci2.2bit"
12
+ super(**kwargs)
13
+ end
14
+ end
15
+ end
16
+ end