1: <?php
2:
3: namespace cli_db;
4:
5: require_once ROOT . 'classes/AbstractTable.php';
6:
7: class Analysis extends AbstractTable {
8:
9: 10: 11:
12: public static function getKeys() {
13: return array(
14: 'id' => array(
15: 'colname' => 'AnalysisId',
16: 'actions' => array(
17: 'details' => 'required',
18: 'update' => 'required',
19: 'delete' => 'required',
20: ),
21: 'description' => 'analysis id'
22: ),
23: 'name' => array(
24: 'colname' => 'Name',
25: 'actions' => array(
26: 'insert' => 'optional',
27: 'update' => 'optional',
28: ),
29: 'description' => 'name'
30: ),
31: 'description' => array(
32: 'colname' => 'Description',
33: 'actions' => array(
34: 'insert' => 'optional',
35: 'update' => 'optional',
36: ),
37: 'description' => 'description'
38: ),
39: 'program' => array(
40: 'colname' => 'Program',
41: 'actions' => array(
42: 'insert' => 'required',
43: 'update' => 'optional',
44: ),
45: 'description' => "Program name, e.g. blastx, blastp, sim4, genscan. \nNote: The combination of program, programversion and sourcename has to be unique."
46: ),
47: 'programversion' => array(
48: 'colname' => 'Programversion',
49: 'actions' => array(
50: 'insert' => 'required',
51: 'update' => 'optional',
52: ),
53: 'description' => 'Version description, e.g. TBLASTX 2.0MP-WashU [09-Nov-2000].'
54: ),
55: 'algorithm' => array(
56: 'colname' => 'Algorithm',
57: 'actions' => array(
58: 'insert' => 'optional',
59: 'update' => 'optional',
60: ),
61: 'description' => 'Algorithm name, e.g. blast.'
62: ),
63: 'sourcename' => array(
64: 'colname' => 'Sourcename',
65: 'actions' => array(
66: 'insert' => 'required',
67: 'update' => 'optional',
68: ),
69: 'description' => 'Source name, e.g. cDNA, SwissProt.'
70: ),
71: 'sourceversion' => array(
72: 'colname' => 'Sourceversion',
73: 'actions' => array(
74: 'insert' => 'optional',
75: 'update' => 'optional',
76: ),
77: 'description' => 'Source version.'
78: ),
79: 'sourceuri' => array(
80: 'colname' => 'Sourceuri',
81: 'actions' => array(
82: 'insert' => 'optional',
83: 'update' => 'optional',
84: ),
85: 'description' => 'This is an optional, permanent URL or URI for the source of the analysis. The idea is that someone could recreate the analysis directly by going to this URI and fetching the source data (e.g. the blast database, or the training model).'
86: ),
87: 'timeexecuted' => array(
88: 'colname' => 'Timeexecuted',
89: 'actions' => array(
90: 'insert' => 'optional',
91: 'update' => 'optional',
92: ),
93: 'description' => 'time of execution'
94: ),
95: );
96: }
97:
98: 99: 100:
101: public static function CLI_commandDescription() {
102: return 'Manipulate analyses.';
103: }
104:
105: 106: 107:
108: public static function CLI_commandName() {
109: return 'analysis';
110: }
111:
112: 113: 114:
115: public static function CLI_longHelp() {
116:
117: }
118:
119: 120: 121:
122: public static function getSubCommands() {
123: return array('insert', 'update', 'delete', 'details', 'list');
124: }
125:
126: 127: 128:
129: public static function getPropelClass() {
130: return '\\cli_db\\propel\\Analysis';
131: }
132:
133: }
134:
135: ?>
136: