Skip to content
Snippets Groups Projects
Commit 44e5145f authored by Andy Yates's avatar Andy Yates
Browse files

Typo for region

parent 181d8da9
No related branches found
No related tags found
No related merge requests found
CREATE TABLE intron_supporting_evidence (
intron_supporting_evidence_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
analysis_id SMALLINT 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,
hit_name VARCHAR(100) NOT NULL,
score DECIMAL(10,3),
score_type ENUM('NONE', 'DEPTH') DEFAULT 'NONE',
PRIMARY KEY (intron_supporting_evidence_id),
UNIQUE KEY (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name)
) COLLATE=latin1_swedish_ci ENGINE=MyISAM;
# patch_67_68_c.sql
#
# Title: Altering intron_supporting_evidence table
#
# Description: Introns can be supported by an external feature. This gives a
# weight to how much we believe the intron and allows the attachement to
# a transcript whilst letting the intron exist on its own and
# queryable by location
#
DROP TABLE intron_supporting_evidence;
CREATE TABLE intron_supporting_evidence (
intron_supporting_evidence_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
analysis_id SMALLINT 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,
hit_name VARCHAR(100) NOT NULL,
score DECIMAL(10,3),
score_type ENUM('NONE', 'DEPTH') DEFAULT 'NONE',
PRIMARY KEY (intron_supporting_evidence_id),
UNIQUE KEY (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name)
) COLLATE=latin1_swedish_ci ENGINE=MyISAM;
CREATE TABLE transcript_intron_supporting_evidence (
transcript_id INT(10) UNSIGNED NOT NULL,
intron_supporting_evidence_id INT(10) UNSIGNED NOT NULL,
previous_exon_id INT(10) UNSIGNED NOT NULL,
next_exon_id INT(10) UNSIGNED NOT NULL,
PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
) COLLATE=latin1_swedish_ci ENGINE=MyISAM;
# Patch identifier:
INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_67_68_c.sql|altering_intron_supporting_evidence');
\ No newline at end of file
......@@ -292,7 +292,7 @@ score_type ENUM('NONE', 'DEPTH') DEFAULT 'NONE',
PRIMARY KEY (intron_supporting_evidence_id),
UNIQUE KEY (analysis_id, seq_region_id, seq_region_start, seq_reigon_end, seq_region_strand, hit_name)
UNIQUE KEY (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name)
) COLLATE=latin1_swedish_ci ENGINE=MyISAM;
/**
......
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