From 49ff0aa506eb0b2e031fa3e8d16337e0c8cf2508 Mon Sep 17 00:00:00 2001 From: James Procter Date: Wed, 17 May 2023 10:42:43 +0100 Subject: [PATCH] JAL-4184 export description line in stockholm --- src/jalview/io/StockholmFile.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/jalview/io/StockholmFile.java b/src/jalview/io/StockholmFile.java index a3f7531..eeadcbf 100644 --- 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) { -- 1.7.10.2