Browse Source

Cleaned up documentation by removing empty views defgroups

Lacey Sanderson 11 years ago
parent
commit
447bdc6c4a
32 changed files with 115 additions and 340 deletions
  1. 0 16
      tripal_analysis/tripal_analysis.views.inc
  2. 0 2
      tripal_analysis/tripal_analysis.views_default.inc
  3. 0 2
      tripal_bulk_loader/tripal_bulk_loader.views.inc
  4. 0 11
      tripal_contact/tripal_contact.views.inc
  5. 0 1
      tripal_contact/tripal_contact.views_default.inc
  6. 1 1
      tripal_core/api/tripal_core.chado_schema.api.inc
  7. 0 1
      tripal_core/tripal_core.views_default.inc
  8. 93 93
      tripal_cv/includes/obo_loader.inc
  9. 0 16
      tripal_cv/tripal_cv.views.inc
  10. 0 16
      tripal_db/tripal_db.views.inc
  11. 0 7
      tripal_feature/tripal_feature.views.inc
  12. 0 1
      tripal_feature/tripal_feature.views_default.inc
  13. 0 16
      tripal_featuremap/tripal_featuremap.views.inc
  14. 0 2
      tripal_featuremap/tripal_featuremap.views_default.inc
  15. 0 16
      tripal_genetic/tripal_genetic.views.inc
  16. 0 2
      tripal_genetic/tripal_genetic.views_default.inc
  17. 0 17
      tripal_library/tripal_library.views.inc
  18. 0 1
      tripal_library/tripal_library.views_default.inc
  19. 0 15
      tripal_natural_diversity/tripal_natural_diversity.views.inc
  20. 1 5
      tripal_natural_diversity/tripal_natural_diversity.views_default.inc
  21. 0 1
      tripal_organism/tripal_organism.module
  22. 0 16
      tripal_organism/tripal_organism.views.inc
  23. 1 1
      tripal_organism/tripal_organism.views_default.inc
  24. 0 17
      tripal_phenotype/tripal_phenotype.views.inc
  25. 0 1
      tripal_phenotype/tripal_phenotype.views_default.inc
  26. 0 16
      tripal_project/tripal_project.views.inc
  27. 1 1
      tripal_project/tripal_project.views_default.inc
  28. 16 17
      tripal_pub/includes/importers/tripal_pub.PMID.inc
  29. 0 11
      tripal_pub/tripal_pub.views.inc
  30. 1 1
      tripal_pub/tripal_pub.views_default.inc
  31. 0 16
      tripal_stock/tripal_stock.views.inc
  32. 1 1
      tripal_stock/tripal_stock.views_default.inc

+ 0 - 16
tripal_analysis/tripal_analysis.views.inc

@@ -1,16 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal analysis tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_analysis_views Analysis Views Integration
- * @ingroup views
- */

+ 0 - 2
tripal_analysis/tripal_analysis.views_default.inc

@@ -2,8 +2,6 @@
 
 /**
  * Implements hook_views_default_views().
- *
- * @ingroup tripal_analysis_views
  */
 function tripal_analysis_views_default_views() {
   $views = array();

+ 0 - 2
tripal_bulk_loader/tripal_bulk_loader.views.inc

@@ -11,8 +11,6 @@
  * @return a data array formatted for the Views module
  *
  * D7 @todo: Add support for materialized views relationships using the new method
- *
- * @ingroup tripal_views
  */
 function tripal_bulk_loader_views_data() {
   $data = array();

+ 0 - 11
tripal_contact/tripal_contact.views.inc

@@ -1,11 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal_contact tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */

+ 0 - 1
tripal_contact/tripal_contact.views_default.inc

@@ -2,7 +2,6 @@
 
 /**
  *
- * @ingroup tripal_feature_views
  */
 function tripal_contact_views_default_views() {
   $views = array();

+ 1 - 1
tripal_core/api/tripal_core.chado_schema.api.inc

@@ -1,7 +1,7 @@
 <?php
 
 /**
- * @defgroup tripal_chado_schema_api Chado Query API
+ * @defgroup tripal_chado_schema_api Chado Schema API
  * @ingroup tripal_chado_api
  * @{
  * Provides an application programming interface (API) for describing Chado tables.

+ 0 - 1
tripal_core/tripal_core.views_default.inc

@@ -2,7 +2,6 @@
 
 /**
  *
- * @ingroup tripal_core_views
  */
 function tripal_core_views_default_views() {
   $views = array();

+ 93 - 93
tripal_cv/includes/obo_loader.inc

@@ -1,10 +1,10 @@
 <?php
 /**
- * @file
- * Tripal Ontology Loader
- *
  * @defgroup tripal_obo_loader Ontology Loader
  * @ingroup tripal_cv
+ * @{
+ * Functions to aid in loading ontologies into the chado cv module
+ * @}
  */
 
 /**
@@ -99,7 +99,7 @@ function tripal_cv_obo_form_submit($form, &$form_state) {
   $obo_name =  $form_state['values']['obo_name'];
   $obo_url =  $form_state['values']['obo_url'];
   $obo_file  = $form_state['values']['obo_file'];
-  
+
   tripal_cv_submit_obo_job($obo_id, $obo_name, $obo_url, $obo_file);
 }
 
@@ -143,9 +143,9 @@ function tripal_cv_load_obo_v1_2_id($obo_id, $jobid = NULL) {
  */
 function tripal_cv_load_obo_v1_2_file($obo_name, $file, $jobid = NULL, $is_new = TRUE) {
   $newcvs = array();
-  
+
   // TODO: need better error detection
-  
+
   tripal_cv_load_obo_v1_2($file, $jobid, $newcvs);
   if ($is_new) {
     tripal_cv_add_obo_ref($obo_name, $file);
@@ -154,7 +154,7 @@ function tripal_cv_load_obo_v1_2_file($obo_name, $file, $jobid = NULL, $is_new =
 
   // update the cvtermpath table
   tripal_cv_load_update_cvtermpath($newcvs, $jobid);
-  
+
 
 }
 
@@ -218,23 +218,23 @@ function tripal_cv_load_update_cvtermpath($newcvs, $jobid) {
  * @ingroup tripal_obo_loader
  */
 function tripal_cv_load_obo_v1_2($file, $jobid = NULL, &$newcvs) {
-  
+
   $transaction = db_transaction();
   print "\nNOTE: Loading of this OBO file is performed using a database transaction. \n" .
       "If the load fails or is terminated prematurely then the entire set of \n" .
       "insertions/updates is rolled back and will not be found in the database\n\n";
   try {
     $header = array();
-      
+
     // make sure our temporary table exists
-    $ret = array(); 
-  
+    $ret = array();
+
     // empty the temp table
     $sql = "DELETE FROM {tripal_obo_temp}";
     chado_query($sql);
-  
-    print "Step 1: Preloading File $file\n";  
-  
+
+    print "Step 1: Preloading File $file\n";
+
     // make sure we have an 'internal' and a '_global' database
     if (!tripal_db_add_db('internal')) {
       tripal_cv_obo_quiterror("Cannot add 'internal' database");
@@ -242,23 +242,23 @@ function tripal_cv_load_obo_v1_2($file, $jobid = NULL, &$newcvs) {
     if (!tripal_db_add_db('_global')) {
       tripal_cv_obo_quiterror("Cannot add '_global' database");
     }
-  
+
     // parse the obo file
     $default_db = tripal_cv_obo_parse($file, $header, $jobid);
-  
+
     // add the CV for this ontology to the database
     $defaultcv = tripal_cv_add_cv($header['default-namespace'][0], '');
     if (!$defaultcv) {
       tripal_cv_obo_quiterror('Cannot add namespace ' . $header['default-namespace'][0]);
     }
     $newcvs[$header['default-namespace'][0]] = $defaultcv->cv_id;
-  
+
     // add any typedefs to the vocabulary first
-    print "\nStep 2: Loading type defs...\n"; 
+    print "\nStep 2: Loading type defs...\n";
     tripal_cv_obo_load_typedefs($defaultcv, $newcvs, $default_db, $jobid);
-  
+
     // next add terms to the vocabulary
-    print "\nStep 3: Loading terms...\n";  
+    print "\nStep 3: Loading terms...\n";
     if (!tripal_cv_obo_process_terms($defaultcv, $jobid, $newcvs, $default_db)) {
       tripal_cv_obo_quiterror('Cannot add terms from this ontology');
     }
@@ -286,20 +286,20 @@ function tripal_cv_obo_quiterror($message) {
 }
 
 /*
- * 
+ *
  */
 function tripal_cv_obo_load_typedefs($defaultcv, $newcvs, $default_db, $jobid) {
   $sql = "SELECT * FROM {tripal_obo_temp} WHERE type = 'Typedef' ";
   $typedefs = chado_query($sql);
-  
+
   $sql = "
     SELECT count(*) as num_terms
     FROM {tripal_obo_temp}
-    WHERE type = 'Typedef'     
-  "; 
+    WHERE type = 'Typedef'
+  ";
   $result = chado_query($sql)->fetchObject();
   $count = $result->num_terms;
-  
+
   // calculate the interval for updates
   $interval = intval($count * 0.0001);
   if ($interval < 1) {
@@ -308,16 +308,16 @@ function tripal_cv_obo_load_typedefs($defaultcv, $newcvs, $default_db, $jobid) {
   $i = 0;
   foreach ($typedefs as $typedef) {
     $term = unserialize(base64_decode($typedef->stanza));
-    
+
     // update the job status every interval
     if ($jobid and $i % $interval == 0) {
       $complete = ($i / $count) * 33.33333333;
-      tripal_job_set_progress($jobid, intval($complete + 33.33333333)); 
-      printf("%d of %d records. (%0.2f%%) Memory: %s bytes\r", $i, $count, $complete * 3, number_format(memory_get_usage()));                                                             
-    } 
-    
+      tripal_job_set_progress($jobid, intval($complete + 33.33333333));
+      printf("%d of %d records. (%0.2f%%) Memory: %s bytes\r", $i, $count, $complete * 3, number_format(memory_get_usage()));
+    }
+
     tripal_cv_obo_process_term($term, $defaultcv->name, 1, $newcvs, $default_db);
-    
+
     $i++;
   }
     // set the final status
@@ -328,9 +328,9 @@ function tripal_cv_obo_load_typedefs($defaultcv, $newcvs, $default_db, $jobid) {
     else {
       $complete = 33.33333333;
     }
-    tripal_job_set_progress($jobid, intval($complete + 33.33333333)); 
+    tripal_job_set_progress($jobid, intval($complete + 33.33333333));
     printf("%d of %d records. (%0.2f%%) Memory: %s bytes\r", $i, $count, $complete * 3, number_format(memory_get_usage()));
-  }  
+  }
   return 1;
 }
 /**
@@ -348,15 +348,15 @@ function tripal_cv_obo_process_terms($defaultcv, $jobid = NULL, &$newcvs, $defau
     ORDER BY id
   ";
   $terms = chado_query($sql);
-  
+
   $sql = "
     SELECT count(*) as num_terms
     FROM {tripal_obo_temp}
-    WHERE type = 'Term'     
-  "; 
+    WHERE type = 'Term'
+  ";
   $result = chado_query($sql)->fetchObject();
   $count = $result->num_terms;
-  
+
   // calculate the interval for updates
   $interval = intval($count * 0.0001);
   if ($interval < 1) {
@@ -364,14 +364,14 @@ function tripal_cv_obo_process_terms($defaultcv, $jobid = NULL, &$newcvs, $defau
   }
   foreach ($terms as $t) {
     $term = unserialize(base64_decode($t->stanza));
-    
+
     // update the job status every interval
     if ($jobid and $i % $interval == 0) {
       $complete = ($i / $count) * 33.33333333;
-      tripal_job_set_progress($jobid, intval($complete + 66.666666)); 
-      printf("%d of %d records. (%0.2f%%) Memory: %s bytes\r", $i, $count, $complete * 3, number_format(memory_get_usage()));                                                             
-    }                                 
-    
+      tripal_job_set_progress($jobid, intval($complete + 66.666666));
+      printf("%d of %d records. (%0.2f%%) Memory: %s bytes\r", $i, $count, $complete * 3, number_format(memory_get_usage()));
+    }
+
     // add/update this term
     if (!tripal_cv_obo_process_term($term, $defaultcv->name, 0, $newcvs, $default_db)) {
       tripal_cv_obo_quiterror("Failed to process terms from the ontology");
@@ -379,7 +379,7 @@ function tripal_cv_obo_process_terms($defaultcv, $jobid = NULL, &$newcvs, $defau
 
     $i++;
   }
-  
+
   // set the final status
   if ($jobid) {
     if ($count > 0) {
@@ -388,10 +388,10 @@ function tripal_cv_obo_process_terms($defaultcv, $jobid = NULL, &$newcvs, $defau
     else {
       $complete = 33.33333333;
     }
-    tripal_job_set_progress($jobid, intval($complete + 66.666666)); 
+    tripal_job_set_progress($jobid, intval($complete + 66.666666));
     printf("%d of %d records. (%0.2f%%) Memory: %s bytes\r", $i, $count, $complete * 3, number_format(memory_get_usage()));
-  }                                                             
-  
+  }
+
   return 1;
 }
 
@@ -400,35 +400,35 @@ function tripal_cv_obo_process_terms($defaultcv, $jobid = NULL, &$newcvs, $defau
  * @ingroup tripal_obo_loader
  */
 function tripal_cv_obo_process_term($term, $defaultcv, $is_relationship = 0, &$newcvs, $default_db) {
- 
+
   // construct the term array for sending to the tripal_cv_add_cvterm function
   // for adding a new cvterm
-  $t = array(); 
+  $t = array();
   $t['id'] = $term['id'][0];
   $t['name'] = $term['name'][0];
   if (array_key_exists('def', $term)) {
     $t['def'] = $term['def'][0];
   }
   if (array_key_exists('subset', $term)) {
-    $t['subset'] = $term['subset'][0];  
-  }  
+    $t['subset'] = $term['subset'][0];
+  }
   if (array_key_exists('namespace', $term)) {
     $t['namespace'] = $term['namespace'][0];
   }
   if (array_key_exists('is_obsolete', $term)) {
     $t['is_obsolete'] = $term['is_obsolete'][0];
-  } 
-  
+  }
+
   // add the cvterm
-  $cvterm = tripal_cv_add_cvterm($t, $defaultcv, $is_relationship, 1, $default_db); 
+  $cvterm = tripal_cv_add_cvterm($t, $defaultcv, $is_relationship, 1, $default_db);
   if (!$cvterm) {
     tripal_cv_obo_quiterror("Cannot add the term " . $term['id'][0]);
-  }  
- 
+  }
+
   if (array_key_exists('namespace', $term)) {
     $newcvs[$term['namespace'][0]] = $cvterm->cv_id;
   }
-  
+
   // now handle other properites
   if (array_key_exists('is_anonymous', $term)) {
     //print "WARNING: unhandled tag: is_anonymous\n";
@@ -440,12 +440,12 @@ function tripal_cv_obo_process_term($term, $defaultcv, $is_relationship = 0, &$n
       }
     }
   }
-  
+
   if (array_key_exists('subset', $term)) {
     //print "WARNING: unhandled tag: subset\n";
   }
   // add synonyms for this cvterm
-  if (array_key_exists('synonym', $term)) {    
+  if (array_key_exists('synonym', $term)) {
     if (!tripal_cv_obo_add_synonyms($term, $cvterm)) {
       tripal_cv_obo_quiterror("Cannot add synonyms");
     }
@@ -477,7 +477,7 @@ function tripal_cv_obo_process_term($term, $defaultcv, $is_relationship = 0, &$n
       tripal_cv_obo_quiterror("Cannot add/update synonyms");
     }
   }
-  
+
   // add the comment to the cvtermprop table
   if (array_key_exists('comment', $term)) {
     $comments = $term['comment'];
@@ -498,7 +498,7 @@ function tripal_cv_obo_process_term($term, $defaultcv, $is_relationship = 0, &$n
       }
     }
   }
-  
+
   if (array_key_exists('xref_analog', $term)) {
     foreach ($term['xref_analog'] as $xref) {
       if (!tripal_cv_obo_add_cvterm_dbxref($cvterm, $xref)) {
@@ -561,7 +561,7 @@ function tripal_cv_obo_process_term($term, $defaultcv, $is_relationship = 0, &$n
  *
  * @ingroup tripal_obo_loader
  */
-function tripal_cv_obo_add_relationship($cvterm, $defaultcv, $rel, 
+function tripal_cv_obo_add_relationship($cvterm, $defaultcv, $rel,
   $objname, $object_is_relationship = 0, $default_db = 'OBO_REL') {
 
   // make sure the relationship cvterm exists
@@ -572,16 +572,16 @@ function tripal_cv_obo_add_relationship($cvterm, $defaultcv, $rel,
     'is_obsolete' => 0,
   );
   $relcvterm = tripal_cv_add_cvterm($term, $defaultcv, 1, 0, $default_db);
-  
+
   if (!$relcvterm) {
-    // if the relationship term couldn't be found in the default_db provided 
+    // if the relationship term couldn't be found in the default_db provided
     // then do on more check to find it in the relationship ontology
     $term = array(
       'name' => $rel,
       'id' => "OBO_REL:$rel",
       'definition' => '',
       'is_obsolete' => 0,
-    ); 
+    );
     $relcvterm = tripal_cv_add_cvterm($term, $defaultcv, 1, 0, 'OBO_REL');
     if (!$relcvterm) {
       tripal_cv_obo_quiterror("Cannot find the relationship term in the current ontology or in the relationship ontology: $rel\n");
@@ -593,23 +593,23 @@ function tripal_cv_obo_add_relationship($cvterm, $defaultcv, $rel,
   if (!$oterm) {
     tripal_cv_obo_quiterror("Could not find object term $objname\n");
   }
-  
-  $objterm = array(); 
+
+  $objterm = array();
   $objterm['id']            = $oterm['id'][0];
   $objterm['name']          = $oterm['name'][0];
   if (array_key_exists('def', $oterm)) {
     $objterm['def']           = $oterm['def'][0];
   }
   if (array_key_exists('subset', $oterm)) {
-    $objterm['subset']      = $oterm['subset'][0];  
-  }  
+    $objterm['subset']      = $oterm['subset'][0];
+  }
   if (array_key_exists('namespace', $oterm)) {
     $objterm['namespace']   = $oterm['namespace'][0];
   }
   if (array_key_exists('is_obsolete', $oterm)) {
     $objterm['is_obsolete'] = $oterm['is_obsolete'][0];
   }
-  $objcvterm = tripal_cv_add_cvterm($objterm, $defaultcv, $object_is_relationship, 1, $default_db);  
+  $objcvterm = tripal_cv_add_cvterm($objterm, $defaultcv, $object_is_relationship, 1, $default_db);
   if (!$objcvterm) {
     tripal_cv_obo_quiterror("Cannot add cvterm " . $oterm['name'][0]);
   }
@@ -662,14 +662,14 @@ function tripal_cv_obo_add_synonyms($term, $cvterm) {
   // now add the synonyms
   if (array_key_exists('synonym', $term)) {
     foreach ($term['synonym'] as $synonym) {
-      
+
       // separate out the synonym definition and the synonym type
       $def = preg_replace('/^\s*"(.*)"\s*.*$/', '\1', $synonym);
       // the scope will be 'EXACT', etc...
       $scope = drupal_strtolower(preg_replace('/^.*"\s+(.*?)\s+.*$/', '\1', $synonym));
       if (!$scope) {  // if no scope then default to 'exact'
-        $scope = 'exact'; 
-      } 
+        $scope = 'exact';
+      }
 
       // make sure the synonym type exists in the 'synonym_type' vocabulary
       $values = array(
@@ -701,14 +701,14 @@ function tripal_cv_obo_add_synonyms($term, $cvterm) {
 
       // make sure the synonym doesn't already exists
       $values = array(
-        'cvterm_id' => $cvterm->cvterm_id, 
+        'cvterm_id' => $cvterm->cvterm_id,
         'synonym' => $def
       );
       $options = array('statement_name' => 'sel_cvtermsynonym_cvsy');
       $results = tripal_core_chado_select('cvtermsynonym', array('*'), $values, $options);
       if (count($results) == 0) {
         $values = array(
-          'cvterm_id' => $cvterm->cvterm_id, 
+          'cvterm_id' => $cvterm->cvterm_id,
           'synonym' => $def,
           'type_id' => $syntype->cvterm_id
         );
@@ -754,34 +754,34 @@ function tripal_cv_obo_parse($obo_file, &$header, $jobid) {
   $line_num = 0;
   $num_read = 0;
   $intv_read = 0;
-  
-  $filesize = filesize($obo_file); 
+
+  $filesize = filesize($obo_file);
   $interval = intval($filesize * 0.01);
   if ($interval < 1) {
     $interval = 1;
-  } 
+  }
 
   // iterate through the lines in the OBO file and parse the stanzas
   $fh = fopen($obo_file, 'r');
   while ($line = fgets($fh)) {
-    
+
     $line_num++;
     $size = drupal_strlen($line);
     $num_read += $size;
-    $intv_read += $size; 
-    $line = trim($line);      
+    $intv_read += $size;
+    $line = trim($line);
 
     // update the job status every 1% features
-    if ($jobid and $intv_read >= $interval) {            
+    if ($jobid and $intv_read >= $interval) {
       $percent = sprintf("%.2f", ($num_read / $filesize) * 100);
       print "Parsing Line $line_num (" . $percent . "%). Memory: " . number_format(memory_get_usage()) . " bytes.\r";
       tripal_job_set_progress($jobid, intval(($num_read / $filesize) * 33.33333333));
-      $intv_read = 0;      
+      $intv_read = 0;
     }
-    
+
     // remove newlines
     $line = rtrim($line);
-        
+
     // remove any special characters that may be hiding
     $line = preg_replace('/[^(\x20-\x7F)]*/', '', $line);
 
@@ -794,7 +794,7 @@ function tripal_cv_obo_parse($obo_file, &$header, $jobid) {
     $line = preg_replace('/^(.*?)\!.*$/', '\1', $line);  // TODO: if the explamation is escaped
 
     // at the first stanza we're out of header
-    if (preg_match('/^\s*\[/', $line)) {  
+    if (preg_match('/^\s*\[/', $line)) {
       $in_header = 0;
 
       // store the stanza we just finished reading
@@ -811,7 +811,7 @@ function tripal_cv_obo_parse($obo_file, &$header, $jobid) {
           watchdog('T_obo_loader', "ERROR: Cannot insert stanza into temporary table.", array(), 'error');
           exit;
         }
-        
+
       }
       // get the stanza type:  Term, Typedef or Instance
       $type = preg_replace('/^\s*\[\s*(.+?)\s*\]\s*$/', '\1', $line);
@@ -825,13 +825,13 @@ function tripal_cv_obo_parse($obo_file, &$header, $jobid) {
     $pair = explode(":", $line, 2);
     $tag = $pair[0];
     $value = ltrim(rtrim($pair[1]));// remove surrounding spaces
-    
+
     // if this is the ID then look for the default DB
     $matches = array();
     if ($tag == 'id' and preg_match('/^(.+?):.*$/', $value, $matches)) {
        $default_db = $matches[1];
     }
-    
+
     $tag = preg_replace("/\|-\|-\|/", "\:", $tag); // return the escaped colon
     $value = preg_replace("/\|-\|-\|/", "\:", $value);
     if ($in_header) {
@@ -910,7 +910,7 @@ function tripal_cv_obo_add_cvterm_dbxref($cvterm, $xref) {
   );
   $options = array('statement_name' => 'sel_cvtermdbxref_cvdb');
   $result = tripal_core_chado_select('cvterm_dbxref', array('*'), $values, $options);
-  if (count($result) == 0) {    
+  if (count($result) == 0) {
     $ins_options = array(
       'statement_name' => 'ins_cvtermdbxref_cvdb',
       'return_record' => FALSE
@@ -944,7 +944,7 @@ function tripal_cv_obo_add_cvterm_prop($cvterm, $property, $value, $rank) {
   );
   $options = array('statement_name' => 'sel_cvterm_nacv_na');
   $results = tripal_core_chado_select('cvterm', array('*'), $values, $options);
-  if (count($results) == 0) {    
+  if (count($results) == 0) {
     $term = array(
       'name' => $property,
       'id' => "internal:$property",
@@ -969,7 +969,7 @@ function tripal_cv_obo_add_cvterm_prop($cvterm, $property, $value, $rank) {
     if (!$success) {
        tripal_cv_obo_quiterror("Could not remove existing properties to update property $property for term\n");
        return FALSE;
-    }    
+    }
   }
 
   // now add the property
@@ -1020,8 +1020,8 @@ function tripal_cv_obo_add_dbxref($db_id, $accession, $version='', $description=
     if (!$result) {
       tripal_cv_obo_quiterror("Failed to insert the dbxref record $accession");
       return FALSE;
-    } 
-    $result = tripal_core_chado_select('dbxref', array('dbxref_id'), $values, $options);    
+    }
+    $result = tripal_core_chado_select('dbxref', array('dbxref_id'), $values, $options);
   }
   return $result[0];
 }

+ 0 - 16
tripal_cv/tripal_cv.views.inc

@@ -1,16 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal cv tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_cv_views Controlled Vocabulary Views Integration
- * @ingroup views
- */

+ 0 - 16
tripal_db/tripal_db.views.inc

@@ -1,16 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal db tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_db_views External Database Views Integration
- * @ingroup views
- */

+ 0 - 7
tripal_feature/tripal_feature.views.inc

@@ -10,11 +10,6 @@
  *  http://views2.logrus.com/doc/html/index.html.
  */
 
-/**
- * @defgroup tripal_feature_views Feature Views Integration
- * @ingroup views
- */
-
 /**
  * Implements hook_views_handlers()
  *
@@ -23,8 +18,6 @@
  *   "how a field should be filtered", "how a field should be sorted"
  *
  * @return: An array of handler definitions
- *
- * @ingroup tripal_feature_views
  */
 function tripal_feature_views_handlers() {
   return array(

+ 0 - 1
tripal_feature/tripal_feature.views_default.inc

@@ -2,7 +2,6 @@
 
 /**
  *
- * @ingroup tripal_feature_views
  */
 function tripal_feature_views_default_views() {
   $views = array();

+ 0 - 16
tripal_featuremap/tripal_featuremap.views.inc

@@ -1,16 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal organism tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_featuremap_views Map Views Integration
- * @ingroup views
- */

+ 0 - 2
tripal_featuremap/tripal_featuremap.views_default.inc

@@ -2,8 +2,6 @@
 
 /**
  *
- *
- * @ingroup tripal_featuremap_views
  */
 function tripal_featuremap_views_default_views() {
   $views = array();

+ 0 - 16
tripal_genetic/tripal_genetic.views.inc

@@ -1,16 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal_genetic tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_genetic_views Genetic Views Integration
- * @ingroup views
- */

+ 0 - 2
tripal_genetic/tripal_genetic.views_default.inc

@@ -2,8 +2,6 @@
 
 /**
  * Implements hook_views_default_views().
- *
- * @ingroup tripal_genetic
  */
 function tripal_genetic_views_default_views() {
   $views = array();

+ 0 - 17
tripal_library/tripal_library.views.inc

@@ -1,17 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal organism tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_library_views Library Views Integration
- * @ingroup views
- */
-

+ 0 - 1
tripal_library/tripal_library.views_default.inc

@@ -3,7 +3,6 @@
 /**
  *
  *
- * @ingroup tripal_library_views
  */
 function tripal_library_views_default_views() {
   $views = array();

+ 0 - 15
tripal_natural_diversity/tripal_natural_diversity.views.inc

@@ -1,15 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal_natural_diversity tables.
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_natural_diversity_views Natural Diversity Views Integration
- * @ingroup views
- */

+ 1 - 5
tripal_natural_diversity/tripal_natural_diversity.views_default.inc

@@ -1,10 +1,6 @@
 <?php
 
-/* -- SPF Jun 13, 2013 removed as a search by ND experiment
- * results in a huge return list.  As in the case of a genotyping
- * GWAS experiment where tens of thousands of SNP genotypes are
- * present.  --
- */
+
 function tripal_natural_diversity_views_default_views() {
   $views = array();
 

+ 0 - 1
tripal_organism/tripal_organism.module

@@ -5,7 +5,6 @@ require_once "includes/tripal_organism.admin.inc";
 require_once "includes/tripal_organism.chado_node.inc";
 
 /**
- * @file
  * @defgroup tripal_organism Organism Module
  * @ingroup tripal_modules
  * @{

+ 0 - 16
tripal_organism/tripal_organism.views.inc

@@ -1,16 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal organism tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_organism_views Organism Views Integration
- * @ingroup views
- */

+ 1 - 1
tripal_organism/tripal_organism.views_default.inc

@@ -2,7 +2,7 @@
 
 /**
  *
- * @ingroup tripal_organism_views
+ *
  */
 function tripal_organism_views_default_views() {
   $views = array();

+ 0 - 17
tripal_phenotype/tripal_phenotype.views.inc

@@ -1,17 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal_phenotype tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_phenotype_views Phenotype Views Integration
- * @ingroup views
- */
-

+ 0 - 1
tripal_phenotype/tripal_phenotype.views_default.inc

@@ -3,7 +3,6 @@
 /**
  *
  *
- * @ingroup tripal_phenotype_views
  */
 function tripal_phenotype_views_default_views() {
   $views = array();

+ 0 - 16
tripal_project/tripal_project.views.inc

@@ -1,16 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal_project tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_project_views Project Views Integration
- * @ingroup views
- */

+ 1 - 1
tripal_project/tripal_project.views_default.inc

@@ -3,7 +3,7 @@
 /**
  *
  *
- * @ingroup tripal_project_views
+ *
  */
 function tripal_project_views_default_views() {
   $views = array();

+ 16 - 17
tripal_pub/includes/importers/tripal_pub.PMID.inc

@@ -2,10 +2,8 @@
 /**
  * @file
  * Tripal Pub PubMed Interface
- *
- * @defgroup tripal_pub_PMID PubMed Interface
- * @ingroup tripal_pub
  */
+
 /**
  *
  */
@@ -18,6 +16,7 @@ function tripal_pub_remote_alter_form_PMID($form, $form_state, $num_criteria = 1
 
   return $form;
 }
+
 /**
  *
  */
@@ -66,14 +65,14 @@ function tripal_pub_remote_search_PMID($search_array, $num_to_retrieve, $page) {
         foreach ($elements as $element) {
           $search_str .= "($element |SCOPE|) AND ";
         }
-        $search_str = substr($search_str, 0, -5); // remove trailing 'AND '              
-      } 
+        $search_str = substr($search_str, 0, -5); // remove trailing 'AND '
+      }
       elseif (preg_match('/or/i', $search_terms)) {
         $elements = preg_split('/\s+or+\s/i', $search_terms);
         foreach ($elements as $element) {
           $search_str .= "($element |SCOPE|) OR ";
         }
-        $search_str = substr($search_str, 0, -4); // remove trailing 'OR '        
+        $search_str = substr($search_str, 0, -4); // remove trailing 'OR '
       }
       else {
         $search_str .= "($search_terms |SCOPE|)";
@@ -98,7 +97,7 @@ function tripal_pub_remote_search_PMID($search_array, $num_to_retrieve, $page) {
       $search_str = preg_replace('/\|SCOPE\|/', '[Uid]', $search_str);
     }
     else {
-      $search_str = preg_replace('/\|SCOPE\|/', '', $search_str);  
+      $search_str = preg_replace('/\|SCOPE\|/', '', $search_str);
     }
   }
   if ($days) {
@@ -108,15 +107,15 @@ function tripal_pub_remote_search_PMID($search_array, $num_to_retrieve, $page) {
     $search_str .= " AND (\"" . sprintf("%04d/%02d/%02d", $past_date['year'], $past_date['mon'], $past_date['mday']) . "\"[Date - Create] : \"3000\"[Date - Create]))";
   }
 
-  // now initialize the query 
+  // now initialize the query
   $results = tripal_pub_PMID_search_init($search_str, $num_to_retrieve);
   $total_records = $results['Count'];
   $query_key     = $results['QueryKey'];
   $web_env       = $results['WebEnv'];
-  
+
   // initialize the pager
   $start = $page * $num_to_retrieve;
-  
+
   // if we have no records then return an empty array
   if ($total_records == 0) {
     return array(
@@ -125,7 +124,7 @@ function tripal_pub_remote_search_PMID($search_array, $num_to_retrieve, $page) {
       'pubs'          => array(),
     );
   }
-  
+
   // now get the list of PMIDs from the initialized search
   $pmids_txt = tripal_pub_PMID_fetch($query_key, $web_env, 'uilist', 'text', $start, $num_to_retrieve);
 
@@ -149,7 +148,7 @@ function tripal_pub_remote_search_PMID($search_array, $num_to_retrieve, $page) {
  *
  */
 function tripal_pub_PMID_search_init($search_str, $retmax){
-   
+
   // do a search for a single result so that we can establish a history, and get
   // the number of records. Once we have the number of records we can retrieve
   // those requested in the range.
@@ -219,7 +218,7 @@ $retmod = 'null', $start = 0, $limit = 10, $args = array()){
   // the PMID's within the range specied.  The PMIDs will be returned as a text list
   $fetch_url = "http://www.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?".
     "rettype=$rettype" .
-    "&retmode=$retmod" . 
+    "&retmode=$retmod" .
     "&retstart=$start" .
     "&retmax=$limit" .
     "&db=Pubmed" .
@@ -356,7 +355,7 @@ function tripal_pub_PMID_parse_pubxml($pub_xml) {
     }
   }
   $pub['Citation'] = tripal_pub_create_citation($pub);
-  
+
   $pub['raw'] = $pub_xml;
   return $pub;
 }
@@ -502,8 +501,8 @@ function tripal_pub_PMID_parse_publication_type($xml, &$pub) {
       switch ($element) {
         case 'PublicationType':
           $xml->read();
-          $value = $xml->value;          
-          $pub_cvterm = tripal_cv_get_cvterm_by_name($value, NULL, 'tripal_pub');          
+          $value = $xml->value;
+          $pub_cvterm = tripal_cv_get_cvterm_by_name($value, NULL, 'tripal_pub');
           if (!$pub_cvterm) {
             // see if this we can find the name using a synonym
             $pub_cvterm = tripal_cv_get_cvterm_by_synonym($value, NULL, 'tripal_pub');
@@ -660,7 +659,7 @@ function tripal_pub_PMID_parse_journal_issue($xml, &$pub) {
           $month = array_key_exists('month', $date) ? $date['month'] : '';
           $day = array_key_exists('day', $date) ? $date['day'] : '';
           $medline = array_key_exists('medline', $date) ? $date['medline'] : '';
-           
+
           $pub['Year'] = $year;
           if ($month and $day and $year) {
             $pub['Publication Date'] = "$year $month $day";

+ 0 - 11
tripal_pub/tripal_pub.views.inc

@@ -1,11 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal_pub tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */

+ 1 - 1
tripal_pub/tripal_pub.views_default.inc

@@ -2,7 +2,7 @@
 
 /**
  *
- * @ingroup tripal_pub_views
+ *
  */
 function tripal_pub_views_default_views() {
   $views = array();

+ 0 - 16
tripal_stock/tripal_stock.views.inc

@@ -1,16 +0,0 @@
-<?php
-
-/**
- *  @file
- *  This file contains the basic functions for views integration of
- *  chado/tripal stock tables. Supplementary functions can be found in
- *  ./views/
- *
- *  Documentation on views integration can be found at
- *  http://views2.logrus.com/doc/html/index.html.
- */
-
-/**
- * @defgroup tripal_stock_views Stock Views Integration
- * @ingroup views
- */

+ 1 - 1
tripal_stock/tripal_stock.views_default.inc

@@ -2,7 +2,7 @@
 
 /**
  *
- * @ingroup tripal_stock_views
+ *
  */
 function tripal_stock_views_default_views() {
   $views = array();