-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp_tables.sql
36 lines (34 loc) · 1.68 KB
/
temp_tables.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
CREATE TEMPORARY TABLE summary_noid
(
"uid" TEXT NOT NULL, -- Foreign key to assembly table
"seqid" TEXT NOT NULL, -- Replicon Id
"accession" TEXT, -- Replicon accession
"name" TEXT, -- Replicon name
"description" TEXT, -- Replicon description
"type" TEXT, -- Replicon type (chromosome/plasmid)
"molecule_type" TEXT, -- Molecule type [DNA/RNA]
"sequence_version" INTEGER, -- Version of replicon sequence
"gi_number" INTEGER, --
"cds_count" INTEGER, -- # of CDS features
"gene_count" INTEGER, -- # of gene features
"rna_count" INTEGER, -- # of xRNA features
"repeat_region_count" INTEGER, -- # of repeat_region features
"length" INTEGER, -- Length of replicon sequence
"source" TEXT, -- Replicon source
UNIQUE (uid, seqid)
);
CREATE TEMPORARY TABLE replicon_idx
(
"uid" TEXT NOT NULL, -- Foreign key to assembly table
"seqid" TEXT NOT NULL, -- Sequence ID
"path" TEXT, -- Path to dataset relative to the database
"format" TEXT, -- Format of dataset
"suffix" TEXT, -- Filename suffix excluding extension, describes file content
"parent" TEXT -- Path to derivative dataset
);
CREATE TEMPORARY TABLE checksums
(
"checksum" TEXT NOT NULL, -- MD5 Checksum of dataset (or compressed dataset) as reported by NCBI
"path" TEXT NOT NULL, -- Path to dataset relative to database
"ncbi_path" TEXT NOT NULL -- Path to dataset on NCBI
)