瀏覽代碼

Fixed bug with synonymn not loading in GFF file

spficklin 12 年之前
父節點
當前提交
b49f5325b2
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      tripal_feature/includes/gff_loader.inc

+ 5 - 5
tripal_feature/includes/gff_loader.inc

@@ -965,7 +965,7 @@ function tripal_feature_load_gff3_alias($feature, $aliases, $log) {
   $select = array('name' => 'synonym_type');
   $options = array('statement_name' => 'sel_cv_name');  
   $results = tripal_core_chado_select('cv', array('*'), $selct, $options);
-  if (count($results) > 0) {
+  if (count($results) == 0) {
     // insert the 'synonym_type' vocabulary
     $values = array(
       'name' => 'synonym_type',
@@ -998,10 +998,10 @@ function tripal_feature_load_gff3_alias($feature, $aliases, $log) {
   $syntype = $result[0];
   if (!$syntype) {
     $term = array(
-      'name' => array('exact'),
-      'id' => array("internal:exact"),
-      'definition' => array(''),
-      'is_obsolete' => array(0),
+      'name' => 'exact',
+      'id' => "internal:exact",
+      'definition' => '',
+      'is_obsolete' => 0,
     );
     // TODO: fix the function so it uses prepared statements    
     $syntype = tripal_cv_add_cvterm($term, $syncv->name, 0, 1);