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
56b8c4d5
Commit
56b8c4d5
authored
19 years ago
by
Ian Sealy
Browse files
Options
Downloads
Patches
Plain Diff
Affy -> Oligo schema changes.
parent
c7e07010
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/patch_37_38.sql
+73
-0
73 additions, 0 deletions
sql/patch_37_38.sql
with
73 additions
and
0 deletions
sql/patch_37_38.sql
+
73
−
0
View file @
56b8c4d5
...
...
@@ -54,3 +54,76 @@ CREATE TABLE unmapped_reason (
PRIMARY
KEY
(
unmapped_reason_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
#
Add
the
new
oligo
tables
,
which
replace
the
affy
tables
CREATE
TABLE
oligo_feature
(
oligo_feature_id
INT
NOT
NULL
auto_increment
,
seq_region_id
INT
UNSIGNED
NOT
NULL
,
seq_region_start
INT
NOT
NULL
,
seq_region_end
INT
NOT
NULL
,
seq_region_strand
TINYINT
NOT
NULL
,
mismatches
TINYINT
,
oligo_probe_id
INT
NOT
NULL
,
analysis_id
INT
NOT
NULL
,
PRIMARY
KEY
(
oligo_feature_id
),
KEY
seq_region_idx
(
seq_region_id
,
seq_region_start
),
KEY
probe_idx
(
oligo_probe_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
CREATE
TABLE
oligo_probe
(
oligo_probe_id
INT
NOT
NULL
auto_increment
,
oligo_array_id
INT
NOT
NULL
,
probeset
VARCHAR
(
40
),
name
VARCHAR
(
20
),
description
TEXT
,
length
SMALLINT
NOT
NULL
,
PRIMARY
KEY
(
oligo_probe_id
,
oligo_array_id
),
KEY
probeset_idx
(
probeset
),
KEY
array_idx
(
oligo_array_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
CREATE
TABLE
oligo_array
(
oligo_array_id
INT
NOT
NULL
auto_increment
,
parent_array_id
INT
,
probe_setsize
TINYINT
NOT
NULL
,
name
VARCHAR
(
40
)
NOT
NULL
,
type
ENUM
(
'AFFY'
,
'OLIGO'
),
PRIMARY
KEY
(
oligo_array_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
#
Copy
any
existing
data
from
the
affy
tables
to
the
oligo
tables
INSERT
INTO
oligo_array
(
oligo_array_id
,
parent_array_id
,
probe_setsize
,
name
,
type
)
SELECT
affy_array_id
,
parent_array_id
,
probe_setsize
,
name
,
'AFFY'
FROM
affy_array
;
INSERT
INTO
oligo_probe
(
oligo_probe_id
,
oligo_array_id
,
probeset
,
name
,
description
,
length
)
SELECT
affy_probe_id
,
affy_array_id
,
probeset
,
name
,
NULL
,
25
FROM
affy_probe
;
INSERT
INTO
oligo_feature
(
oligo_feature_id
,
seq_region_id
,
seq_region_start
,
seq_region_end
,
seq_region_strand
,
mismatches
,
oligo_probe_id
,
analysis_id
)
SELECT
affy_feature_id
,
seq_region_id
,
seq_region_start
,
seq_region_end
,
seq_region_strand
,
mismatches
,
affy_probe_id
,
analysis_id
FROM
affy_feature
;
UPDATE
meta_coord
SET
table_name
=
'oligo_feature'
WHERE
table_name
=
'affy_feature'
;
#
Drop
the
affy
tables
DROP
TABLE
affy_array
;
DROP
TABLE
affy_probe
;
DROP
TABLE
affy_feature
;
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