소스 검색

Fixed request to trim the dbxref if there is a space in it (e.g. Flybase: Fbgn98787) during GFF loading

Stephen Ficklin 10 년 전
부모
커밋
8f788a8ae1
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      tripal_feature/includes/tripal_feature.gff_loader.inc

+ 4 - 4
tripal_feature/includes/tripal_feature.gff_loader.inc

@@ -1161,8 +1161,8 @@ function tripal_feature_load_gff3_dbxref($feature, $dbxrefs) {
 
     // get the database name from the reference.  If it doesn't exist then create one.
     $ref = explode(":", $dbxref);
-    $dbname = $ref[0];
-    $accession = $ref[1];
+    $dbname = trim($ref[0]);
+    $accession = trim($ref[1]);
 
     // first look for the database name if it doesn't exist then create one.
     // first check for the fully qualified URI (e.g. DB:<dbname>. If that
@@ -1253,8 +1253,8 @@ function tripal_feature_load_gff3_ontology($feature, $dbxrefs) {
 
     // get the database name from the reference.  If it doesn't exist then create one.
     $ref = explode(":", $dbxref);
-    $dbname = $ref[0];
-    $accession = $ref[1];
+    $dbname = trim($ref[0]);
+    $accession = trim($ref[1]);
 
     // first look for the database name
     $db = chado_select_record('db', array('db_id'), array('name' => "DB:$dbname"));