JAL-1705 take feature ID for description if nothing better found
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 12 Feb 2016 16:51:14 +0000 (16:51 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 12 Feb 2016 16:51:14 +0000 (16:51 +0000)
src/jalview/io/gff/Gff3Helper.java

index d29645b..bd34d3c 100644 (file)
@@ -393,6 +393,15 @@ public class Gff3Helper extends GffHelperBase
     {
       desc = StringUtils.listToDelimitedString(attributes.get("Name"), ",");
     }
+
+    /*
+     * if the above fails, try ID
+     */
+    if (desc == null)
+    {
+      desc = (String) sf.getValue(ID);
+    }
+
     return desc;
   }
 }