From 65c32aa39e51d66319b48f0783ef152b07cd5d8e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 22 Jul 2021 18:02:19 +0100 Subject: [PATCH] =?utf8?q?JAL-3848=20don=E2=80=99t=20include=20sequence=20li?= =?utf8?q?mits=20in=20sequence=20id=20as=20it=20confuses=20slivka-0.8=E2=80=99?= =?utf8?q?s=20jalview-feature-file=20creation=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/ws/slivkaws/SlivkaWSInstance.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/jalview/ws/slivkaws/SlivkaWSInstance.java b/src/jalview/ws/slivkaws/SlivkaWSInstance.java index 658d99e..0c71c35 100644 --- a/src/jalview/ws/slivkaws/SlivkaWSInstance.java +++ b/src/jalview/ws/slivkaws/SlivkaWSInstance.java @@ -95,8 +95,11 @@ public abstract class SlivkaWSInstance extends ServiceWithParameters format = FileFormat.Fasta; break; } - InputStream stream = new ByteArrayInputStream( - fa.formatSequences(format, sequences.toArray(new SequenceI[0])) + + // we avoid any use of Jalview's user facing export routines here + + InputStream stream = new ByteArrayInputStream(format.getWriter(null) + .print(sequences.toArray(new SequenceI[0]), false) .getBytes()); request.addFile(param.getId(), stream); } -- 1.7.10.2