git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9db8c29
)
JAL-1705 take feature ID for description if nothing better found
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 12 Feb 2016 16:51:14 +0000
(16:51 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 12 Feb 2016 16:51:14 +0000
(16:51 +0000)
src/jalview/io/gff/Gff3Helper.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/gff/Gff3Helper.java
b/src/jalview/io/gff/Gff3Helper.java
index
d29645b
..
bd34d3c
100644
(file)
--- 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;
}
}