From ca5d8d9fcaa5ad7b7e495112e796ef1c109baabe Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 12 Feb 2016 16:51:14 +0000 Subject: [PATCH] JAL-1705 take feature ID for description if nothing better found --- src/jalview/io/gff/Gff3Helper.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/jalview/io/gff/Gff3Helper.java b/src/jalview/io/gff/Gff3Helper.java index d29645b..bd34d3c 100644 --- a/src/jalview/io/gff/Gff3Helper.java +++ b/src/jalview/io/gff/Gff3Helper.java @@ -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; } } -- 1.7.10.2