drop table if exists config;
create table config (
bbiPath text not null,
seqPath text null,
defaultTracks text not null,
defaultMdcategory varchar(255) not null,
defaultGenelist text not null,
defaultCustomtracks text not null,
defaultPosition varchar(255) not null,
defaultDataset varchar(255) not null,
defaultDecor text null,
defaultScaffold text not null,
ideogram_wiggle1 varchar(255) null,
ideogram_wiggle2 varchar(255) null,
hasGene boolean not null,
allowJuxtaposition boolean not null,
keggSpeciesCode varchar(255) null,
information text not null,
runmode tinyint not null,
initmatplot boolean not null
);
insert into config values(
"/srv/epgg/data/data/subtleKnife/danRer7/",
"/srv/epgg/data/data/subtleKnife/seq/danRer7.gz",
"BisSeq01_sperm.bedGraph,BisSeq02_egg.bedGraph,BisSeq03_2-16cell.bedGraph,BisSeq04_64cell.bedGraph,BisSeq05_256cell.bedGraph,BisSeq06_sphere.bedGraph,BisSeq07_muscle.bedGraph",
"Sample,Assay,Lab",
"cyp2v1\\ncyp2aa4\\ncyp2x8\\ncyp2p9\\ncyp3c4\\ncyp24a1\\ncyp2p6\\ncyp2x12\\ncyp19a1a\\ncyp20a1\\ncyp2aa2\\ncyp11a1\\ncyp2ad2",
"3,http://vizhub.wustl.edu/hubSample/danRer7/num1.gz,1,http://vizhub.wustl.edu/hubSample/danRer7/bed.gz,100,http://vizhub.wustl.edu/hubSample/danRer7/hub.txt",
"chr19,18966019,chr19,19564024",
"published",
"refGene,rmsk_ensemble",
"chr1,chr2,chr3,chr4,chr5,chr6,chr7,chr8,chr9,chr10,chr11,chr12,chr13,chr14,chr15,chr16,chr17,chr18,chr19,chr20,chr21,chr22,chr23,chr24,chr25",
\N,\N,
true,
true,
"dre",
"Assembly version|danRer7|Sequence source|UCSC browser|Date parsed|September 1, 2011|Chromosomes|26|Contigs|1107|Total bases|1,412,464,843|Logo art|link",
0,
false
);
-- grouping types on genomic features
-- table name defined in macro: TBN_GF_GRP
drop table if exists gfGrouping;
create table gfGrouping (
id TINYINT not null primary key,
name char(50) not null
);
insert into gfGrouping values (2, "Genes");
insert into gfGrouping values (4, "RepeatMasker");
-- insert into gfGrouping values (3, "non-coding RNA");
insert into gfGrouping values (6, "Sequence conservation");
insert into gfGrouping values (5, "Others");
drop table if exists decorInfo;
create table decorInfo (
name char(50) not null primary key,
printname char(100) not null,
parent char(50) null,
grp tinyint not null,
fileType tinyint not null,
hasStruct tinyint null,
queryUrl varchar(255) null
);
load data local infile 'decorInfo' into table decorInfo;
drop table if exists track2Label;
create table track2Label (
name varchar(255) not null primary key,
label text null
);
load data local infile 'track2Label' into table track2Label;
drop table if exists track2ProcessInfo;
create table track2ProcessInfo (
name varchar(255) not null primary key,
detail text null
);
load data local infile 'track2ProcessInfo' into table track2ProcessInfo;
drop table if exists track2BamInfo;
create table track2BamInfo (
name varchar(255) not null,
bamfile varchar(255) not null,
bamfilelabel varchar(255) not null
);
load data local infile "track2BamInfo" into table track2BamInfo;
drop table if exists track2Detail;
create table track2Detail (
name varchar(255) not null primary key,
detail text null
);
load data local infile 'track2Detail' into table track2Detail;
drop table if exists track2GEO;
create table track2GEO (
name varchar(255) not null primary key,
geo char(20) not null
);
load data local infile 'track2GEO' into table track2GEO;
drop table if exists track2VersionInfo;
create table track2VersionInfo (
name varchar(255) not null primary key,
info varchar(255) not null
);
load data local infile 'track2VersionInfo' into table track2VersionInfo;
-- new trackDetail end here
drop table if exists track2Annotation;
create table track2Annotation (
name varchar(255) not null primary key,
attridx varchar(255) not null
);
load data local infile "track2Annotation" into table track2Annotation;
drop table if exists track2Ft;
create table track2Ft (
name varchar(255) not null primary key,
ft tinyint not null
);
load data local infile "track2Ft" into table track2Ft;
drop table if exists track2Style;
create table track2Style (
name varchar(255) not null primary key,
style text not null
);
load data local infile "track2Style_decor" into table track2Style;
load data local infile "track2Style" into table track2Style;
drop table if exists track2Regions;
create table track2Regions (
name varchar(255) not null primary key,
regionname varchar(255) not null,
regions text not null
);
drop table if exists track2Categorical;
create table track2Categorical (
name varchar(255) not null primary key,
info text not null
);
load data local infile 'track2Categorical' into table track2Categorical;
drop table if exists metadataVocabulary;
create table metadataVocabulary (
child varchar(255) not null,
parent varchar(255) not null
);
load data local infile "metadataVocabulary" into table metadataVocabulary;
drop table if exists trackAttr2idx;
create table trackAttr2idx (
idx varchar(255) not null primary key,
attr varchar(255) not null,
note varchar(255) null,
description text null
);
load data local infile "trackAttr2idx" into table trackAttr2idx;
drop table if exists tempURL;
create table tempURL (
session varchar(100) not null,
offset INT unsigned not null,
urlpiece text not null
);
drop table if exists dataset;
create table dataset (
tablename varchar(255) not null,
logo varchar(255) null,
name varchar(255) not null,
url varchar(255) null,
description text not null
);
load data local infile "dataset" into table dataset;
drop table if exists published;
create table published (
tkname varchar(255) not null
);
load data local infile "track2Name" into table published;
drop table if exists scaffoldInfo;
create table scaffoldInfo (
parent varchar(255) not null,
child varchar(255) not null,
childLength int unsigned not null
);
load data local infile "scaffoldInfo" into table scaffoldInfo;
drop table if exists cytoband;
create table cytoband (
id int null auto_increment primary key,
chrom char(20) not null,
start int not null,
stop int not null,
name char(20) not null,
colorIdx int not null
);
load data local infile "cytoband" into table cytoband;
/*
DROP TABLE IF EXISTS `rmsk`;
CREATE TABLE `rmsk` (
`bin` smallint(5) unsigned NOT NULL default '0',
`swScore` int(10) unsigned NOT NULL default '0',
`milliDiv` int(10) unsigned NOT NULL default '0',
`milliDel` int(10) unsigned NOT NULL default '0',
`milliIns` int(10) unsigned NOT NULL default '0',
`genoName` varchar(255) NOT NULL default '',
`genoStart` int(10) unsigned NOT NULL default '0',
`genoEnd` int(10) unsigned NOT NULL default '0',
`genoLeft` int(11) NOT NULL default '0',
`strand` char(1) NOT NULL default '',
`repName` varchar(255) NOT NULL default '',
`repClass` varchar(255) NOT NULL default '',
`repFamily` varchar(255) NOT NULL default '',
`repStart` int(11) NOT NULL default '0',
`repEnd` int(11) NOT NULL default '0',
`repLeft` int(11) NOT NULL default '0',
`id` char(1) NOT NULL default '',
KEY `genoName` (`genoName`(14),`bin`)
);
load data local infile 'rmsk.txt' into table rmsk;
*/