Statistics
| Branch: | Revision:

root / Am1.0 / script / gene / load.sql @ 8c368a17

History | View | Annotate | Download (1.2 kB)

1
drop table if exists orfstruct;
2
create table orfstruct (
3
id int unsigned not null primary key,
4
chrom varchar(255) not null,
5
strand char(1) not null,
6
txStart int unsigned not null,
7
txEnd int unsigned not null,
8
cdsStart int unsigned not null,
9
cdsEnd int unsigned not null,
10
exonCount int unsigned not null,
11
exonStarts text not null,
12
exonEnds text not null,
13
name varchar(255) not null
14
);
15
load data local infile 'orf.struct' into table orfstruct;
16

    
17

    
18
drop table if exists orfsymbol;
19
create table orfsymbol (
20
name varchar(255) not null,
21
symbol varchar(255) null,
22
description text null,
23
id int unsigned not null primary key,
24
index(name)
25
);
26

    
27

    
28
drop table if exists Gleanstruct;
29
create table Gleanstruct (
30
id int unsigned not null primary key,
31
chrom varchar(255) not null,
32
strand char(1) not null,
33
txStart int unsigned not null,
34
txEnd int unsigned not null,
35
cdsStart int unsigned not null,
36
cdsEnd int unsigned not null,
37
exonCount int unsigned not null,
38
exonStarts text not null,
39
exonEnds text not null,
40
name varchar(255) not null
41
);
42
load data local infile 'Glean.struct' into table Gleanstruct;
43

    
44
drop table if exists Gleansymbol;
45
create table Gleansymbol (
46
name varchar(255) not null,
47
symbol varchar(255) null,
48
description text null,
49
id int unsigned not null primary key,
50
index(name)
51
);