spficklin 12 anni fa
parent
commit
403d2803cf

+ 1 - 1
tripal_analysis/tripal_analysis.module

@@ -561,7 +561,7 @@ function tripal_analysis_sync_analyses($analysis_id = NULL, $job_id = NULL) {
         $new_node->type = 'chado_analysis';
       }
 
-            print "analysis type is $new_node->type\n";
+      print "analysis type is $new_node->type\n";
 
       $new_node->uid = $user->uid;
       $new_node->analysis_id = $analysis->analysis_id;

+ 3 - 0
tripal_core/tripal_core.module

@@ -66,6 +66,9 @@ function tripal_core_init() {
   // set the postgres search_path back to noraml we do it here on 
   // init of the core
   tripal_db_set_default_search_path(); 
+  
+  // create a persistent connection
+  $connection = tripal_db_persistent_chado();
 }
 
 /**

+ 3 - 4
tripal_feature/tripal_feature.module

@@ -443,6 +443,8 @@ function chado_feature_insert($node) {
   if ($node->is_obsolete) {
     $obsolete = 'TRUE';
   }
+  
+  // check to see if we are inserting a duplicate record.
   $values = array(
     'cv_id' => array(
       'name' => 'sequence'
@@ -459,10 +461,7 @@ function chado_feature_insert($node) {
     'is_obsolete' => $obsolete,
     'type_id' => $type[0]->cvterm_id,
     'md5checksum' => md5($residues)
-  );
-
-  
-  // check to see if we are inserting a duplicate record. 
+  );    
   $options = array('is_duplicate' => TRUE, 'has_record' => TRUE);
   $exists = tripal_core_chado_select('feature', array('*'), $values, $options);