Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
506dcd85
Commit
506dcd85
authored
6 years ago
by
Marc Chakiachvili
Browse files
Options
Downloads
Patches
Plain Diff
Updated SQL table.sql script for tests
parent
610a69fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!347
Updated ensembl_ontology schema scripts
,
!347
Updated ensembl_ontology schema scripts
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/t/test-genome-DBs/ontology/ontology/table.sql
+56
-52
56 additions, 52 deletions
modules/t/test-genome-DBs/ontology/ontology/table.sql
with
56 additions
and
52 deletions
modules/t/test-genome-DBs/ontology/ontology/table.sql
+
56
−
52
View file @
506dcd85
...
...
@@ -4,120 +4,120 @@ CREATE TABLE `alt_id` (
`accession`
varchar
(
64
)
NOT
NULL
,
PRIMARY
KEY
(
`alt_id`
),
UNIQUE
KEY
`term_alt_idx`
(
`term_id`
,
`alt_id`
),
KEY
`accession
_idx
`
(
`accession`
(
50
)
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
latin1
;
KEY
`
ix_alt_id_
accession`
(
`accession`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_Cross_product_review_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_goslim_aspergillus_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_goslim_candida_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_goslim_generic_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_goslim_metagenomics_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_goslim_pir_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_goslim_plant_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_goslim_pombe_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_goslim_yeast_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_gosubset_prok_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_high_level_annotation_qc_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_mf_needs_review_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_GO_virus_checked_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_SO_DBVAR_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_SO_SOFA_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`aux_SO_biosapiens_map`
(
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`subset_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
UNIQUE
KEY
`map_idx`
(
`term_id`
,
`subset_term_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`closure`
(
`closure_id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
...
@@ -126,67 +126,71 @@ CREATE TABLE `closure` (
`subparent_term_id`
int
(
10
)
unsigned
DEFAULT
NULL
,
`distance`
tinyint
(
3
)
unsigned
NOT
NULL
,
`ontology_id`
int
(
10
)
unsigned
NOT
NULL
,
`confident_relationship`
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
,
`confident_relationship`
tinyint
(
1
)
NOT
NULL
,
PRIMARY
KEY
(
`closure_id`
),
UNIQUE
KEY
`child_parent_idx`
(
`child_term_id`
,
`parent_term_id`
,
`subparent_term_id`
,
`ontology_id`
),
UNIQUE
KEY
`closure_child_parent_idx`
(
`child_term_id`
,
`parent_term_id`
,
`subparent_term_id`
,
`ontology_id`
),
KEY
`ix_closure_subparent_term_id`
(
`subparent_term_id`
),
KEY
`ix_closure_ontology_id`
(
`ontology_id`
),
KEY
`parent_subparent_idx`
(
`parent_term_id`
,
`subparent_term_id`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
1453438
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
1453438
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`meta`
(
`meta_id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`meta_key`
varchar
(
64
)
NOT
NULL
,
`meta_value`
varchar
(
128
)
DEFAULT
NULL
,
`species_id`
int
(
1
)
unsigned
DEFAULT
NULL
,
`meta_key`
varchar
(
64
)
COLLATE
utf8_unicode_ci
NOT
NULL
,
`meta_value`
varchar
(
128
)
COLLATE
utf8_unicode_ci
DEFAULT
NULL
,
`species_id`
int
(
1
0
)
unsigned
DEFAULT
NULL
,
PRIMARY
KEY
(
`meta_id`
),
UNIQUE
KEY
`key_value_idx`
(
`meta_key`
,
`meta_value`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
44
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
44
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`ontology`
(
`ontology_id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
64
)
NOT
NULL
,
`namespace`
varchar
(
64
)
NOT
NULL
,
`data_version`
varchar
(
64
)
DEFAULT
NULL
,
`title`
varchar
(
255
)
DEFAULT
NULL
,
`name`
varchar
(
64
)
COLLATE
utf8_unicode_ci
NOT
NULL
,
`namespace`
varchar
(
64
)
COLLATE
utf8_unicode_ci
NOT
NULL
,
`data_version`
varchar
(
64
)
COLLATE
utf8_unicode_ci
DEFAULT
NULL
,
`title`
varchar
(
255
)
COLLATE
utf8_unicode_ci
DEFAULT
NULL
,
PRIMARY
KEY
(
`ontology_id`
),
UNIQUE
KEY
`name_namespace_idx`
(
`name`
,
`namespace`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
8
DEFAULT
CHARSET
=
latin1
;
UNIQUE
KEY
`
ontology_
name_namespace_idx`
(
`name`
,
`namespace`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
8
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`relation`
(
`relation_id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`child_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`parent_term_id`
int
(
10
)
unsigned
NOT
NULL
,
`relation_type_id`
int
(
10
)
unsigned
NOT
NULL
,
`intersection_of`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`intersection_of`
tinyint
(
1
)
NOT
NULL
,
`ontology_id`
int
(
10
)
unsigned
NOT
NULL
,
PRIMARY
KEY
(
`relation_id`
),
UNIQUE
KEY
`child_parent_idx`
(
`child_term_id`
,
`parent_term_id`
,
`relation_type_id`
,
`intersection_of`
,
`ontology_id`
),
KEY
`parent_idx`
(
`parent_term_id`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
68750
DEFAULT
CHARSET
=
latin1
;
KEY
`ix_relation_parent_term_id`
(
`parent_term_id`
),
KEY
`ix_relation_relation_type_id`
(
`relation_type_id`
),
KEY
`ix_relation_ontology_id`
(
`ontology_id`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
68750
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`relation_type`
(
`relation_type_id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
64
)
NOT
NULL
,
PRIMARY
KEY
(
`relation_type_id`
),
UNIQUE
KEY
`name
_idx
`
(
`name`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
85
DEFAULT
CHARSET
=
latin1
;
UNIQUE
KEY
`name`
(
`name`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
85
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`subset`
(
`subset_id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
64
)
NOT
NULL
,
`definition`
varchar
(
128
)
NOT
NULL
,
`name`
varchar
(
64
)
COLLATE
utf8_unicode_ci
NOT
NULL
,
`definition`
varchar
(
511
)
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
,
PRIMARY
KEY
(
`subset_id`
),
UNIQUE
KEY
`name
_idx
`
(
`name`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
18
DEFAULT
CHARSET
=
latin1
;
UNIQUE
KEY
`name`
(
`name`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
18
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`synonym`
(
`synonym_id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`term_id`
int
(
10
)
unsigned
NOT
NULL
,
`name`
mediumtext
COLLATE
utf8_swedish_ci
NOT
NULL
,
`type`
enum
(
'EXACT'
,
'BROAD'
,
'NARROW'
,
'RELATED'
)
COLLATE
utf8_
swedish
_ci
DEFAULT
NULL
,
`dbxref`
varchar
(
256
)
COLLATE
utf8_
swedish_ci
NO
T
NULL
,
`name`
text
CHARACTER
SET
utf8
NOT
NULL
,
`type`
enum
(
'EXACT'
,
'BROAD'
,
'NARROW'
,
'RELATED'
)
COLLATE
utf8_
unicode
_ci
DEFAULT
NULL
,
`dbxref`
varchar
(
500
)
COLLATE
utf8_
unicode_ci
DEFAUL
T
NULL
,
PRIMARY
KEY
(
`synonym_id`
),
UNIQUE
KEY
`
term_
synonym_idx`
(
`term_id`
,
`synonym_id`
),
KEY
`name_idx`
(
`name`
(
5
0
))
UNIQUE
KEY
`synonym_
term_
idx`
(
`term_id`
,
`synonym_id`
),
KEY
`
synonym_
name_idx`
(
`name`
(
10
0
))
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
104283
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_swedish_ci
;
CREATE
TABLE
`term`
(
...
...
@@ -196,12 +200,12 @@ CREATE TABLE `term` (
`accession`
varchar
(
64
)
NOT
NULL
,
`name`
varchar
(
255
)
NOT
NULL
,
`definition`
text
,
`is_root`
int
(
11
)
DEFAULT
NULL
,
`is_obsolete`
int
(
11
)
DEFAULT
NULL
,
`iri`
varchar
(
1000
)
DEFAULT
NULL
,
`is_root`
int
(
11
)
NOT
NULL
DEFAULT
'0'
,
`is_obsolete`
int
(
11
)
NOT
NULL
DEFAULT
'0'
,
`iri`
text
,
PRIMARY
KEY
(
`term_id`
),
UNIQUE
KEY
`accession
_idx
`
(
`accession`
),
UNIQUE
KEY
`ontology_acc_idx`
(
`ontology_id`
,
`accession`
),
KEY
`name_idx`
(
`name`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
45001
DEFAULT
CHARSET
=
latin1
;
UNIQUE
KEY
`accession`
(
`accession`
),
UNIQUE
KEY
`
term_
ontology_acc_idx`
(
`ontology_id`
,
`accession`
),
KEY
`
term_
name_idx`
(
`name`
(
100
)
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
45001
DEFAULT
CHARSET
=
utf8
;
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment