Create Instance of FormatAdapter
authoramwaterhouse <Andrew Waterhouse>
Thu, 22 Sep 2005 15:53:18 +0000 (15:53 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 22 Sep 2005 15:53:18 +0000 (15:53 +0000)
src/jalview/ws/JPredClient.java

index 45e331a..8f94e97 100755 (executable)
@@ -26,6 +26,7 @@ import ext.vamsas.*;
 import jalview.analysis.*;\r
 import jalview.datamodel.*;\r
 import jalview.gui.*;\r
+import jalview.io.FormatAdapter;\r
 \r
 public class JPredClient\r
     extends WSClient\r
@@ -400,7 +401,7 @@ public class JPredClient
 \r
           if (jalview.io.FormatAdapter.formats.contains(format))\r
           {\r
-            al = new Alignment(jalview.io.FormatAdapter.readFile(\r
+            al = new Alignment(new FormatAdapter().readFile(\r
                 result.getAligfile(), "Paste", format));\r
             for (int i=0, j=al.getHeight(); i<j; i++) {\r
               SequenceI sq = al.getSequenceAt(i);\r