Add Annotation to specific sequence
authoramwaterhouse <Andrew Waterhouse>
Fri, 24 Feb 2006 11:47:51 +0000 (11:47 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 24 Feb 2006 11:47:51 +0000 (11:47 +0000)
src/jalview/ws/JPredClient.java

index 798259a..6fd0a4a 100755 (executable)
@@ -439,6 +439,7 @@ public class JPredClient
           }\r
         }\r
 \r
+        al.setDataset(null);\r
 \r
         AlignmentAnnotation annot;\r
         Annotation[] annotations = null;\r
@@ -460,6 +461,8 @@ public class JPredClient
         // JBPNote Should also rename the query sequence sometime...\r
         i = 0;\r
 \r
+        SequenceI seqRef = al.getSequenceAt(FirstSeq);\r
+\r
         while (i < preds.length)\r
         {\r
           String id = preds[i].getName().toUpperCase();\r
@@ -512,7 +515,7 @@ public class JPredClient
                                               "JNet Output", annotations);\r
             }\r
 \r
-            al.addAnnotation(annot);\r
+            al.addAnnotation(annot, seqRef);\r
 \r
             if (noMsa)\r
             {\r