From 01cc9bf86a687fa7c8a741128264b23eb7feba9b Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 24 Feb 2006 11:47:51 +0000 Subject: [PATCH] Add Annotation to specific sequence --- src/jalview/ws/JPredClient.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/ws/JPredClient.java b/src/jalview/ws/JPredClient.java index 798259a..6fd0a4a 100755 --- a/src/jalview/ws/JPredClient.java +++ b/src/jalview/ws/JPredClient.java @@ -439,6 +439,7 @@ public class JPredClient } } + al.setDataset(null); AlignmentAnnotation annot; Annotation[] annotations = null; @@ -460,6 +461,8 @@ public class JPredClient // JBPNote Should also rename the query sequence sometime... i = 0; + SequenceI seqRef = al.getSequenceAt(FirstSeq); + while (i < preds.length) { String id = preds[i].getName().toUpperCase(); @@ -512,7 +515,7 @@ public class JPredClient "JNet Output", annotations); } - al.addAnnotation(annot); + al.addAnnotation(annot, seqRef); if (noMsa) { -- 1.7.10.2