-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.erb
139 lines (135 loc) · 1.68 KB
/
template.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
require "erb"
ids = %w[
hg19
hg38
hs1
mm9
mm10
mm39
ailMel1
allMis1
anoCar2
anoGam3
apiMel2
aplCal1
aptMan1
aquChr2
balAcu1
bosTau7
braFlo1
caePb2
cb3
ce11
caeJap1
caeRem3
calJac4
calMil1
canFam4
canFam6
cerSim1
chlSab2
choHof1
chrPic1
ci2
criGriChoV2
danRer11
dasNov3
dipOrd1
droAna2
droEre1
droGri1
dm6
droMoj2
droPer1
dp3
droSec1
droSim1
droVir2
droYak2
eboVir3
echTel2
equCab3
eriEur2
felCat9
fr2
gadMor1
galGal6
geoFor1
gorGor6
hetGla2
latCha1
loxAfr3
macFas5
macEug2
manPen1
melGal1
melUnd1
micMur2
monDom5
uusFur1
myoLuc2
nanPar1
nasLar1
neoSch1
nomLeu3
ochPri3
oreNil2
ornAna2
oryCun2
oryLat2
otoGar3
oviAri4
panPan3
panTro6
papAnu4
papHam1
petMar3
ponAbe3
ponAbe2
priPac1
proCap1
pteVam1
rn6
rheMac10
sacCer3
saiBol1
sarHar1
sorAra2
speTri2
strPur2
susScr11
taeGut2
fr2
tarSyr2
tetNig2
thaSir1
triMan1
tupBel1
turTru2
vicPac2
wuhCor1
xenTro10
]
template = DATA.read
ids.each do |id|
File.write(
File.join(__dir__, "#{id.downcase}.rb"),
ERB.new(template).result(binding)
)
end
__END__
require_relative "../reference_genome"
module Bio
class TwoBit
class <%= id[0].upcase + id[1..-1] %> < ReferenceGenome
def initialize(**kwargs)
@metadata = Metadata.new
@metadata.id = "<%= id %>"
@metadata.name = "<%= id %>"
@metadata.url = "https://hgdownload.soe.ucsc.edu/downloads.html"
@data_url = "https://hgdownload.soe.ucsc.edu/goldenPath/<%= id %>/bigZips/<%= id %>.2bit"
super(**kwargs)
end
end
end
end