Browse Source

Added a fix in case the Target feature is also a feature in the GFF3 file but was introduced before the actual feature

Stephen Ficklin 4 years ago
parent
commit
a4be52db49
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tripal_chado/includes/TripalImporter/GFF3Importer.inc

+ 5 - 0
tripal_chado/includes/TripalImporter/GFF3Importer.inc

@@ -2877,6 +2877,11 @@ class GFF3Importer extends TripalImporter {
         while (array_key_exists($temp_uname, $this->features));
         $uniquename = $temp_uname;
       }
+      // If this feature has already been added but as a target of a previous
+      // feature then we'll let it go through and replace the target feature.
+      elseif ($prev_feature['is_target'] == TRUE) {
+        // Do nothing.
+      }
       else {
         throw new Exception(t("A feature with the same ID exists multiple times: !uname", ['!uname' => $uniquename]));
       }