X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2FJPredClient.java;h=d353b512371d39890fbf9226c77cf7723ac10b69;hb=4944c2f33bb34b4f262fd2f3ae40dcdc2a825557;hp=798259a840c37a8e1d520add298a4e5736eb0329;hpb=dd6a434e05eef33808d4cda23dd2c6f8d10a4630;p=jalview.git diff --git a/src/jalview/ws/JPredClient.java b/src/jalview/ws/JPredClient.java index 798259a..d353b51 100755 --- a/src/jalview/ws/JPredClient.java +++ b/src/jalview/ws/JPredClient.java @@ -399,7 +399,7 @@ public class JPredClient { jalview.bin.Cache.log.debug("Getting associated alignment."); // we ignore the returned alignment if we only predicted on a single sequence - String format = jalview.io.IdentifyFile.Identify(result.getAligfile(), + String format = new jalview.io.IdentifyFile().Identify(result.getAligfile(), "Paste"); if (jalview.io.FormatAdapter.formats.contains(format)) @@ -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) {