root / rn4 / makeDb.sql @ 84c81131
History | View | Annotate | Download (5.8 kB)
1 |
-- -------------------
|
---|---|
2 |
-- --
|
3 |
-- rn4
|
4 |
-- --
|
5 |
-- -------------------
|
6 |
drop table if exists config; |
7 |
create table config ( |
8 |
bbiPath text not null, |
9 |
seqPath text null, |
10 |
defaultTracks text not null, |
11 |
defaultMdcategory varchar(255) not null, |
12 |
defaultGenelist text not null, |
13 |
defaultCustomtracks text not null, |
14 |
defaultPosition varchar(255) not null, |
15 |
defaultDataset varchar(255) not null, |
16 |
defaultDecor text null, |
17 |
defaultScaffold text not null, |
18 |
ideogram_wiggle1 varchar(255) null, |
19 |
ideogram_wiggle2 varchar(255) null, |
20 |
hasGene boolean not null, |
21 |
allowJuxtaposition boolean not null, |
22 |
keggSpeciesCode varchar(255) null, |
23 |
information text not null, |
24 |
runmode tinyint not null, |
25 |
initmatplot boolean not null |
26 |
); |
27 |
insert into config values( |
28 |
"/srv/epgg/data/data/subtleKnife/rn4/",
|
29 |
"/srv/epgg/data/data/subtleKnife/seq/rn4.gz",
|
30 |
"mock1,mock2,mock3,mock4,mock5,mock6,mock7,mock8,mock9,mock10,mock11,mock12,mock13,mock14,mock15,mock16,mock17,mock18,mock19,mock20",
|
31 |
"Sample,mock term",
|
32 |
"CYP4Z1\\nCYP2A7\\nCYP2A6\\nCYP3A4\\nCYP1A1\\nCYP4V2\\nCYP51A1\\nCYP2C19\\nCYP26B1\\nCYP11B2\\nCYP24A1\\nCYP4B1\\nCYP2C8",
|
33 |
"",
|
34 |
"chr4,80447920,chr4,80636829",
|
35 |
"mock",
|
36 |
"refGene,rmsk_ensemble",
|
37 |
"chr1,chr2,chr3,chr4,chr5,chr6,chr7,chr8,chr9,chr10,chr11,chr12,chr13,chr14,chr15,chr16,chr17,chr18,chr19,chr20,chrX,chrUn,chrM",
|
38 |
\N,\N, |
39 |
true,
|
40 |
true,
|
41 |
"rno",
|
42 |
"Assembly version|rn4|Sequence source|<a href=http://hgdownload.soe.ucsc.edu/goldenPath/rn4/bigZips/ target=_blank>UCSC Genome Browser</a>|Date parsed|February 17, 2013|Chromosomes|23|Contigs & misc|22|Logo art|<a href=http://en.wikipedia.org/wiki/File:Rat_diabetic.jpg target=_blank>link</a>",
|
43 |
0,
|
44 |
false
|
45 |
); |
46 |
|
47 |
|
48 |
-- grouping types on genomic features
|
49 |
-- table name defined in macro: TBN_GF_GRP
|
50 |
drop table if exists gfGrouping; |
51 |
create table gfGrouping ( |
52 |
id TINYINT not null primary key, |
53 |
name char(50) not null |
54 |
); |
55 |
insert into gfGrouping values (2, "Genes"); |
56 |
-- insert into gfGrouping values (3, "non-coding RNA");
|
57 |
insert into gfGrouping values (4, "RepeatMasker"); |
58 |
-- insert into gfGrouping values (6, "Sequence conservation");
|
59 |
insert into gfGrouping values (5, "Others"); |
60 |
|
61 |
|
62 |
|
63 |
drop table if exists decorInfo; |
64 |
create table decorInfo ( |
65 |
name char(50) not null primary key, |
66 |
printname char(100) not null, |
67 |
parent char(50) null, |
68 |
grp tinyint not null, |
69 |
fileType tinyint not null, |
70 |
hasStruct tinyint null, |
71 |
queryUrl varchar(255) null |
72 |
); |
73 |
load data local infile 'decorInfo' into table decorInfo; |
74 |
|
75 |
drop table if exists track2Label; |
76 |
create table track2Label ( |
77 |
name varchar(255) not null primary key, |
78 |
label text null |
79 |
); |
80 |
load data local infile 'track2Label' into table track2Label; |
81 |
|
82 |
drop table if exists track2ProcessInfo; |
83 |
create table track2ProcessInfo ( |
84 |
name varchar(255) not null primary key, |
85 |
detail text null |
86 |
); |
87 |
load data local infile 'track2ProcessInfo' into table track2ProcessInfo; |
88 |
|
89 |
drop table if exists track2BamInfo; |
90 |
create table track2BamInfo ( |
91 |
name varchar(255) not null, |
92 |
bamfile varchar(255) not null, |
93 |
bamfilelabel varchar(255) not null |
94 |
); |
95 |
load data local infile "track2BamInfo" into table track2BamInfo; |
96 |
|
97 |
drop table if exists track2Detail; |
98 |
create table track2Detail ( |
99 |
name varchar(255) not null primary key, |
100 |
detail text null |
101 |
); |
102 |
load data local infile 'track2Detail' into table track2Detail; |
103 |
|
104 |
drop table if exists track2GEO; |
105 |
create table track2GEO ( |
106 |
name varchar(255) not null primary key, |
107 |
geo char(20) not null |
108 |
); |
109 |
load data local infile 'track2GEO' into table track2GEO; |
110 |
|
111 |
drop table if exists track2Categorical; |
112 |
create table track2Categorical ( |
113 |
name varchar(255) not null primary key, |
114 |
info text not null |
115 |
); |
116 |
load data local infile 'track2Categorical' into table track2Categorical; |
117 |
|
118 |
|
119 |
drop table if exists track2VersionInfo; |
120 |
create table track2VersionInfo ( |
121 |
name varchar(255) not null primary key, |
122 |
info varchar(255) not null |
123 |
); |
124 |
load data local infile 'track2VersionInfo' into table track2VersionInfo; |
125 |
|
126 |
|
127 |
drop table if exists track2Annotation; |
128 |
create table track2Annotation ( |
129 |
name varchar(255) not null primary key, |
130 |
attridx varchar(255) not null |
131 |
); |
132 |
load data local infile "track2Annotation" into table track2Annotation; |
133 |
|
134 |
drop table if exists track2Ft; |
135 |
create table track2Ft ( |
136 |
name varchar(255) not null primary key, |
137 |
ft tinyint not null |
138 |
); |
139 |
load data local infile "track2Ft" into table track2Ft; |
140 |
|
141 |
drop table if exists track2Style; |
142 |
create table track2Style ( |
143 |
name varchar(255) not null primary key, |
144 |
style text not null |
145 |
); |
146 |
load data local infile "track2Style" into table track2Style; |
147 |
|
148 |
drop table if exists track2Regions; |
149 |
create table track2Regions ( |
150 |
name varchar(255) not null primary key, |
151 |
regionname varchar(255) not null, |
152 |
regions text not null |
153 |
); |
154 |
|
155 |
|
156 |
drop table if exists metadataVocabulary; |
157 |
create table metadataVocabulary ( |
158 |
child varchar(255) not null, |
159 |
parent varchar(255) not null |
160 |
); |
161 |
load data local infile "metadataVocabulary" into table metadataVocabulary; |
162 |
|
163 |
drop table if exists trackAttr2idx; |
164 |
create table trackAttr2idx ( |
165 |
idx varchar(255) not null primary key, |
166 |
attr varchar(255) not null, |
167 |
note varchar(255) null, |
168 |
description text null |
169 |
); |
170 |
load data local infile "trackAttr2idx" into table trackAttr2idx; |
171 |
|
172 |
|
173 |
drop table if exists tempURL; |
174 |
create table tempURL ( |
175 |
session varchar(100) not null, |
176 |
offset INT unsigned not null, |
177 |
urlpiece text not null |
178 |
); |
179 |
|
180 |
|
181 |
drop table if exists dataset; |
182 |
create table dataset ( |
183 |
tablename varchar(255) not null, |
184 |
logo varchar(255) null, |
185 |
name varchar(255) not null, |
186 |
url varchar(255) null, |
187 |
description text not null |
188 |
); |
189 |
load data local infile "dataset" into table dataset; |
190 |
|
191 |
drop table if exists mock; |
192 |
create table mock ( |
193 |
tkname varchar(255) not null |
194 |
); |
195 |
load data local infile "mock" into table mock; |
196 |
|
197 |
|
198 |
drop table if exists scaffoldInfo; |
199 |
create table scaffoldInfo ( |
200 |
parent varchar(255) not null, |
201 |
child varchar(255) not null, |
202 |
childLength int unsigned not null |
203 |
); |
204 |
load data local infile "scaffoldInfo" into table scaffoldInfo; |
205 |
|
206 |
|