JAL-3848 don’t include sequence limits in sequence id as it confuses slivka-0.8’s...
authorJim Procter <j.procter@dundee.ac.uk>
Thu, 22 Jul 2021 17:02:19 +0000 (18:02 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Thu, 22 Jul 2021 17:02:19 +0000 (18:02 +0100)
src/jalview/ws/slivkaws/SlivkaWSInstance.java

index 658d99e..0c71c35 100644 (file)
@@ -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);
       }