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:
195cc12
)
JAL-4184 export description line in stockholm
patch/JAL-4184_description_stockholm
author
James Procter
<j.procter@dundee.ac.uk>
Wed, 17 May 2023 09:42:43 +0000
(10:42 +0100)
committer
James Procter
<j.procter@dundee.ac.uk>
Wed, 17 May 2023 09:42:43 +0000
(10:42 +0100)
src/jalview/io/StockholmFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/StockholmFile.java
b/src/jalview/io/StockholmFile.java
index
a3f7531
..
eeadcbf
100644
(file)
--- a/
src/jalview/io/StockholmFile.java
+++ b/
src/jalview/io/StockholmFile.java
@@
-1048,9
+1048,18
@@
public class StockholmFile extends AlignFile
}
}
- // output annotations
+ // output description and annotations
+
while (i < slen && (seq = s[i]) != null)
{
+ if (seq.getDescription()!=null)
+ {
+ // out.append("#=GR ");
+ out.append(new Format("%-" + maxid + "s").form(
+ "#=GS " + printId(seq, jvSuffix) + " DE " + seq.getDescription()));
+ out.append(newline);
+ }
+
AlignmentAnnotation[] alAnot = seq.getAnnotation();
if (alAnot != null)
{