Skip to content
Snippets Groups Projects
Commit 0aa32d0c authored by Ian Longden's avatar Ian Longden
Browse files

splicing event tables added

parent c0de8135
No related branches found
No related tags found
No related merge requests found
# patch_54_55_c.sql
#
# title: Add alternative splicing event tables
#
# description:
# Add alternative splicing event tables for annotation
CREATE TABLE splicing_event (
splicing_event_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(134),
gene_id INT(10) UNSIGNED NOT NULL,
seq_region_id INT(10) UNSIGNED NOT NULL,
seq_region_start INT(10) UNSIGNED NOT NULL,
seq_region_end INT(10) UNSIGNED NOT NULL,
seq_region_strand TINYINT(2) NOT NULL,
type ENUM('CNE','CE','AFE','A5SS','A3SS','MXE','IR','II','EI', 'AT', 'ALE', 'AI'),
PRIMARY KEY (splicing_event_id),
KEY gene_idx (gene_id),
KEY seq_region_idx (seq_region_id, seq_region_start)
) COLLATE=latin1_swedish_ci TYPE=MyISAM;
CREATE TABLE splicing_event_feature (
splicing_event_feature_id INT(10) UNSIGNED NOT NULL,
splicing_event_id INT(10) UNSIGNED NOT NULL,
exon_id INT(10) UNSIGNED NOT NULL,
transcript_id INT(10) UNSIGNED NOT NULL,
feature_order INT(10) UNSIGNED NOT NULL,
transcript_association INT(10) UNSIGNED NOT NULL,
type ENUM('constitutive_exon','exon','flanking_exon'),
start INT(10) UNSIGNED NOT NULL,
end INT(10) UNSIGNED NOT NULL,
PRIMARY KEY (splicing_event_feature_id,exon_id,transcript_id),
KEY se_idx (splicing_event_id)
) COLLATE=latin1_swedish_ci TYPE=MyISAM;
CREATE TABLE splicing_transcript_pair (
splicing_transcript_pair_id INT(10) UNSIGNED NOT NULL,
splicing_event_id INT(10) UNSIGNED NOT NULL,
transcript_id_1 INT(10) UNSIGNED NOT NULL,
transcript_id_2 INT(10) UNSIGNED NOT NULL,
PRIMARY KEY (splicing_transcript_pair_id),
KEY se_idx (splicing_event_id)
) COLLATE=latin1_swedish_ci TYPE=MyISAM;
# patch identifier
INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_54_55_c.sql|add_splicing_event_tables');
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment