-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve commenting of schema creation #25
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
-- After Creating the Table, populate it with the pdbmap/scripts/uniparc_parser.py | ||
-- Importantly, the Uniparc identifiers are invariant. Thus, you should not DROP the table | ||
-- before running the script | ||
|
||
CREATE TABLE pdbmap_v14.Uniparc ( | ||
uniparc CHAR(13) NOT NULL COMMENT 'Uniparc identifer in format UPI1234567890123', | ||
md5sum CHAR(32) NOT NULL COMMENT '128 bit md5sum of the amino acid sequence', | ||
fasta VARCHAR(60000) NOT NULL COMMENT 'Amino acid sequence', | ||
PRIMARY KEY (uniparc), | ||
UNIQUE (md5sum) | ||
UNIQUE (md5sum) -- The UNIQUE keyword will cause an INDEX to be create on the md5sum | ||
-- UNIQUE (fasta(100)) -- FOR NOW DO NOT INDEX ON the fasta string, because you lookup by md5sum - not AA string | ||
) ENGINE=InnoDB COMMENT 'Map between UniParc identifiers, fasta sequences, and their md5sums' |