Augustus 3.4.0
Loading...
Searching...
No Matches
table_structure.h
1/*
2 * table_structure.h
3 *
4 * License: Artistic License, see file LICENSE.TXT or
5 * https://opensource.org/licenses/artistic-license-1.0
6 */
7
8#ifndef _TABLE_STRUCTURE
9#define _TABLE_STRUCTURE
10
11#include <mysql++/mysql++.h>
12#include <mysql++/ssqls.h>
13#include <string>
14#include <cstring>
15#include <stdlib.h>
16using namespace std;
17
18/*
19 * tables structure for comparative gene prediction, all in one table, one database for all species
20 */
21sql_create_6(genomes,
22 1,6,
23 int,seqid,
24 string,dnaseq,
25 string,seqname,
26 int,start,
27 int,end,
28 string,species)
29sql_create_2(speciesnames,
30 1,2,
31 int,speciesid,
32 string,speciesname)
33sql_create_3(seqnames,
34 1,3,
35 int,seqnr,
36 int,speciesid,
37 string,seqname)
38sql_create_14(hints,
39 1,14,
40 int,hintid,
41 int,speciesid,
42 int,seqnr,
43 string,source,
44 int,start,
45 int,end,
46 double,score,
47 int,type,
48 string,strand,
49 string,frame,
50 int,priority,
51 string,grp,
52 int,mult,
53 string,esource)
54// The database schema is an excerpt from ENSEMBL:
55// http://www.ensembl.org/info/docs/api/core/core_schema.html
56// The following is calling a very complex macro which will create
57// the table structure row in a STL container.
58sql_create_2(dna,
59 1, 2,
60 int,seq_region_id,
61 std::string, sequence)
62sql_create_4(seq_region,
63 1,4,
64 int,seq_region_id,
65 std::string,name,
66 std::string,coord_system_id,
67 int,length)
68sql_create_6(assembly,
69 1, 6,
70 int, asm_seq_region_id,
71 int, cmp_seq_region_id,
72 int, asm_start,
73 int, asm_end,
74 int, cmp_start,
75 int, cmp_end)
76// omit species name, assume every species has its own database,
77// 'name' is the shared key in 'seq_region' table which refers to 'chrName' in augustus
78// it could also be scaffold.'query_region' is defined in database 'cmpproject', so is 'augustus-gff'
79
80
81#endif //_TABLE_STRUCTURE