|
@@ -368,111 +368,30 @@ function tripal_core_chado_schema_v1_11_analysis() {
|
|
|
return $description;
|
|
|
}
|
|
|
/**
|
|
|
- * Implements hook_chado_schema_v1_11_analysisfeature()
|
|
|
- * Purpose: To describe the structure of 'analysisfeature' to tripal
|
|
|
- * @see tripal_core_chado_insert()
|
|
|
- * @see tripal_core_chado_update()
|
|
|
- * @see tripal_core_chado_select()
|
|
|
- *
|
|
|
- * @return
|
|
|
- * An array describing the 'analysisfeature' table
|
|
|
+ * Implements hook_chado_schema_v1_11_analysisprop()
|
|
|
*
|
|
|
- * @ingroup tripal_chado_v1.11_schema_api
|
|
|
+ * Purpose: To describe the structure of 'analysisprop' to tripal. This table doesn't
|
|
|
+ * exist in Chado v1.1 (it does in v1.2), so we need to describe it here
|
|
|
*
|
|
|
- */
|
|
|
-function tripal_core_chado_schema_v1_11_analysisfeature() {
|
|
|
- $description = array(
|
|
|
- 'table' => 'analysisfeature',
|
|
|
- 'fields' => array(
|
|
|
- 'analysisfeature_id' => array(
|
|
|
- 'type' => 'serial',
|
|
|
- 'not NULL' => '1',
|
|
|
- ),
|
|
|
- 'feature_id' => array(
|
|
|
- 'type' => 'int',
|
|
|
- 'not NULL' => '1',
|
|
|
- ),
|
|
|
- 'analysis_id' => array(
|
|
|
- 'type' => 'int',
|
|
|
- 'not NULL' => '1',
|
|
|
- ),
|
|
|
- 'rawscore' => array(
|
|
|
- 'type' => 'float',
|
|
|
- 'size' => 'big',
|
|
|
- 'not NULL' => '',
|
|
|
- ),
|
|
|
- 'normscore' => array(
|
|
|
- 'type' => 'float',
|
|
|
- 'size' => 'big',
|
|
|
- 'not NULL' => '',
|
|
|
- ),
|
|
|
- 'significance' => array(
|
|
|
- 'type' => 'float',
|
|
|
- 'size' => 'big',
|
|
|
- 'not NULL' => '',
|
|
|
- ),
|
|
|
- 'identity' => array(
|
|
|
- 'type' => 'float',
|
|
|
- 'size' => 'big',
|
|
|
- 'not NULL' => '',
|
|
|
- ),
|
|
|
- ),
|
|
|
- 'primary key' => array(
|
|
|
- 0 => 'analysisfeature_id',
|
|
|
- ),
|
|
|
- 'unique keys' => array(
|
|
|
- 'analysisfeature_c1' => array(
|
|
|
- 0 => 'feature_id',
|
|
|
- 1 => 'analysis_id',
|
|
|
- ),
|
|
|
- ),
|
|
|
- 'indexes' => array(
|
|
|
- 'analysisfeature_idx1' => array(
|
|
|
- 0 => 'feature_id',
|
|
|
- ),
|
|
|
- 'analysisfeature_idx2' => array(
|
|
|
- 0 => 'analysis_id',
|
|
|
- ),
|
|
|
- ),
|
|
|
- 'foreign keys' => array(
|
|
|
- 'feature' => array(
|
|
|
- 'table' => 'feature',
|
|
|
- 'columns' => array(
|
|
|
- 'feature_id' => 'feature_id',
|
|
|
- ),
|
|
|
- ),
|
|
|
- 'analysis' => array(
|
|
|
- 'table' => 'analysis',
|
|
|
- 'columns' => array(
|
|
|
- 'analysis_id' => 'analysis_id',
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
- );
|
|
|
- return $description;
|
|
|
-}
|
|
|
-/**
|
|
|
- * Implements hook_chado_schema_v1_11_analysisfeatureprop()
|
|
|
- * Purpose: To describe the structure of 'analysisfeatureprop' to tripal
|
|
|
* @see tripal_core_chado_insert()
|
|
|
* @see tripal_core_chado_update()
|
|
|
* @see tripal_core_chado_select()
|
|
|
*
|
|
|
* @return
|
|
|
- * An array describing the 'analysisfeatureprop' table
|
|
|
+ * An array describing the 'analysisprop' table
|
|
|
*
|
|
|
* @ingroup tripal_chado_v1.11_schema_api
|
|
|
*
|
|
|
*/
|
|
|
-function tripal_core_chado_schema_v1_11_analysisfeatureprop() {
|
|
|
+function tripal_core_chado_schema_v1_11_analysisprop() {
|
|
|
$description = array(
|
|
|
- 'table' => 'analysisfeatureprop',
|
|
|
+ 'table' => 'analysisprop',
|
|
|
'fields' => array(
|
|
|
- 'analysisfeatureprop_id' => array(
|
|
|
+ 'analysisprop_id' => array(
|
|
|
'type' => 'serial',
|
|
|
'not NULL' => '1',
|
|
|
),
|
|
|
- 'analysisfeature_id' => array(
|
|
|
+ 'analysis_id' => array(
|
|
|
'type' => 'int',
|
|
|
'not NULL' => '1',
|
|
|
),
|
|
@@ -484,22 +403,23 @@ function tripal_core_chado_schema_v1_11_analysisfeatureprop() {
|
|
|
'type' => 'text',
|
|
|
'not NULL' => '',
|
|
|
),
|
|
|
- 'rank' => array(
|
|
|
- 'type' => 'int',
|
|
|
- 'not NULL' => '1',
|
|
|
- ),
|
|
|
),
|
|
|
'primary key' => array(
|
|
|
- 0 => 'analysisfeatureprop_id',
|
|
|
+ 0 => 'analysisprop_id',
|
|
|
),
|
|
|
'unique keys' => array(
|
|
|
- 'analysisfeature_id_type_id_rank' => array(
|
|
|
- 0 => 'analysisfeature_id',
|
|
|
+ 'analysisprop_c1' => array(
|
|
|
+ 0 => 'analysis_id',
|
|
|
1 => 'type_id',
|
|
|
- 2 => 'rank',
|
|
|
),
|
|
|
),
|
|
|
'indexes' => array(
|
|
|
+ 'analysisprop_idx1' => array(
|
|
|
+ 0 => 'analysis_id',
|
|
|
+ ),
|
|
|
+ 'analysisprop_idx2' => array(
|
|
|
+ 0 => 'type_id',
|
|
|
+ ),
|
|
|
),
|
|
|
'foreign keys' => array(
|
|
|
'cvterm' => array(
|
|
@@ -508,10 +428,10 @@ function tripal_core_chado_schema_v1_11_analysisfeatureprop() {
|
|
|
'type_id' => 'cvterm_id',
|
|
|
),
|
|
|
),
|
|
|
- 'analysisfeature' => array(
|
|
|
- 'table' => 'analysisfeature',
|
|
|
+ 'analysis' => array(
|
|
|
+ 'table' => 'analysis',
|
|
|
'columns' => array(
|
|
|
- 'analysisfeature_id' => 'analysisfeature_id',
|
|
|
+ 'analysis_id' => 'analysis_id',
|
|
|
),
|
|
|
),
|
|
|
),
|
|
@@ -519,61 +439,77 @@ function tripal_core_chado_schema_v1_11_analysisfeatureprop() {
|
|
|
return $description;
|
|
|
}
|
|
|
/**
|
|
|
- * Implements hook_chado_schema_v1_11_analysisprop()
|
|
|
- * Purpose: To describe the structure of 'analysisprop' to tripal
|
|
|
+ * Implements hook_chado_schema_v1_11_analysisfeature()
|
|
|
+ * Purpose: To describe the structure of 'analysisfeature' to tripal
|
|
|
* @see tripal_core_chado_insert()
|
|
|
* @see tripal_core_chado_update()
|
|
|
* @see tripal_core_chado_select()
|
|
|
*
|
|
|
* @return
|
|
|
- * An array describing the 'analysisprop' table
|
|
|
+ * An array describing the 'analysisfeature' table
|
|
|
*
|
|
|
* @ingroup tripal_chado_v1.11_schema_api
|
|
|
*
|
|
|
*/
|
|
|
-function tripal_core_chado_schema_v1_11_analysisprop() {
|
|
|
+function tripal_core_chado_schema_v1_11_analysisfeature() {
|
|
|
$description = array(
|
|
|
- 'table' => 'analysisprop',
|
|
|
+ 'table' => 'analysisfeature',
|
|
|
'fields' => array(
|
|
|
- 'analysisprop_id' => array(
|
|
|
+ 'analysisfeature_id' => array(
|
|
|
'type' => 'serial',
|
|
|
'not NULL' => '1',
|
|
|
),
|
|
|
- 'analysis_id' => array(
|
|
|
+ 'feature_id' => array(
|
|
|
'type' => 'int',
|
|
|
'not NULL' => '1',
|
|
|
),
|
|
|
- 'type_id' => array(
|
|
|
+ 'analysis_id' => array(
|
|
|
'type' => 'int',
|
|
|
'not NULL' => '1',
|
|
|
),
|
|
|
- 'value' => array(
|
|
|
- 'type' => 'text',
|
|
|
+ 'rawscore' => array(
|
|
|
+ 'type' => 'float',
|
|
|
+ 'size' => 'big',
|
|
|
+ 'not NULL' => '',
|
|
|
+ ),
|
|
|
+ 'normscore' => array(
|
|
|
+ 'type' => 'float',
|
|
|
+ 'size' => 'big',
|
|
|
+ 'not NULL' => '',
|
|
|
+ ),
|
|
|
+ 'significance' => array(
|
|
|
+ 'type' => 'float',
|
|
|
+ 'size' => 'big',
|
|
|
+ 'not NULL' => '',
|
|
|
+ ),
|
|
|
+ 'identity' => array(
|
|
|
+ 'type' => 'float',
|
|
|
+ 'size' => 'big',
|
|
|
'not NULL' => '',
|
|
|
),
|
|
|
),
|
|
|
'primary key' => array(
|
|
|
- 0 => 'analysisprop_id',
|
|
|
+ 0 => 'analysisfeature_id',
|
|
|
),
|
|
|
'unique keys' => array(
|
|
|
- 'analysisprop_c1' => array(
|
|
|
- 0 => 'analysis_id',
|
|
|
- 1 => 'type_id',
|
|
|
+ 'analysisfeature_c1' => array(
|
|
|
+ 0 => 'feature_id',
|
|
|
+ 1 => 'analysis_id',
|
|
|
),
|
|
|
),
|
|
|
'indexes' => array(
|
|
|
- 'analysisprop_idx1' => array(
|
|
|
- 0 => 'analysis_id',
|
|
|
+ 'analysisfeature_idx1' => array(
|
|
|
+ 0 => 'feature_id',
|
|
|
),
|
|
|
- 'analysisprop_idx2' => array(
|
|
|
- 0 => 'type_id',
|
|
|
+ 'analysisfeature_idx2' => array(
|
|
|
+ 0 => 'analysis_id',
|
|
|
),
|
|
|
),
|
|
|
'foreign keys' => array(
|
|
|
- 'cvterm' => array(
|
|
|
- 'table' => 'cvterm',
|
|
|
+ 'feature' => array(
|
|
|
+ 'table' => 'feature',
|
|
|
'columns' => array(
|
|
|
- 'type_id' => 'cvterm_id',
|
|
|
+ 'feature_id' => 'feature_id',
|
|
|
),
|
|
|
),
|
|
|
'analysis' => array(
|
|
@@ -586,6 +522,7 @@ function tripal_core_chado_schema_v1_11_analysisprop() {
|
|
|
);
|
|
|
return $description;
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* Implements hook_chado_schema_v1_11_arraydesign()
|
|
|
* Purpose: To describe the structure of 'arraydesign' to tripal
|