|
@@ -116,21 +116,23 @@ function tripal_analysis_schema() {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Implementation of hook_requirements(). Make sure 'Tripal Core' is enabled
|
|
|
- * before installation
|
|
|
- * @todo: Check if this is needed
|
|
|
+ * Provide update script for adding new cvterms
|
|
|
+ */
|
|
|
+function tripal_analysis_update_6001() {
|
|
|
+ // we have some new cvterms to add
|
|
|
+ tripal_cv_add_cvterm(array('name' => 'based_on_analysis', 'def' => 'The analysis that this analysis was based on. For example, blast/kegg/interpro analyses are based on a unigene analysis. The unigene analysis_id should be stored in analysisprop as the rank using this cvterm. The name of said unigene analysis can be inserted as the value in analysisprop.'), 'tripal', 0, 1, 'tripal');
|
|
|
+ tripal_cv_add_cvterm(array('name' => 'additional_files', 'def' => 'Additional files for this analysis. Each file should be separated by a semi-colon and have this format: <file description>, <file path>;'), 'tripal', 0, 1, 'tripal');
|
|
|
+ $ret = array(
|
|
|
+ '#finished' => 1,
|
|
|
+ );
|
|
|
+ return $ret;
|
|
|
+}
|
|
|
+/**
|
|
|
+ * Implementation of hook_requirements().
|
|
|
*/
|
|
|
function tripal_analysis_requirements($phase) {
|
|
|
$requirements = array();
|
|
|
if ($phase == 'install') {
|
|
|
- // make sure the core module is installed
|
|
|
- if (!function_exists('tripal_create_moddir')) {
|
|
|
- $requirements ['tripal_analysis'] = array(
|
|
|
- 'title' => "tripal_analysis",
|
|
|
- 'value' => "error. Some required modules are just being installed. Please try again.",
|
|
|
- 'severity' => REQUIREMENT_ERROR,
|
|
|
- );
|
|
|
- }
|
|
|
// make sure chado is installed
|
|
|
$version = tripal_core_set_chado_version();
|
|
|
if ($version == 'not installed') {
|
|
@@ -142,17 +144,4 @@ function tripal_analysis_requirements($phase) {
|
|
|
}
|
|
|
}
|
|
|
return $requirements;
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * Provide update script for adding new cvterms
|
|
|
- */
|
|
|
-function tripal_analysis_update_6001() {
|
|
|
- // we have some new cvterms to add
|
|
|
- tripal_cv_add_cvterm(array('name' => 'based_on_analysis', 'def' => 'The analysis that this analysis was based on. For example, blast/kegg/interpro analyses are based on a unigene analysis. The unigene analysis_id should be stored in analysisprop as the rank using this cvterm. The name of said unigene analysis can be inserted as the value in analysisprop.'), 'tripal', 0, 1, 'tripal');
|
|
|
- tripal_cv_add_cvterm(array('name' => 'additional_files', 'def' => 'Additional files for this analysis. Each file should be separated by a semi-colon and have this format: <file description>, <file path>;'), 'tripal', 0, 1, 'tripal');
|
|
|
- $ret = array(
|
|
|
- '#finished' => 1,
|
|
|
- );
|
|
|
- return $ret;
|
|
|
-}
|
|
|
+}
|