X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fws%2FJPredClient.java;h=6fd0a4a702b638ab129dbf6400040c77dc3b8c90;hb=01cc9bf86a687fa7c8a741128264b23eb7feba9b;hp=a17ccbbd65ddbd026d596b1587d966d1905d71f1;hpb=9f79261a6617b0faa10f7f37d7d7264602f4ccab;p=jalview.git diff --git a/src/jalview/ws/JPredClient.java b/src/jalview/ws/JPredClient.java index a17ccbb..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(); @@ -503,7 +506,8 @@ public class JPredClient { annot = new AlignmentAnnotation(preds[i].getName(), "JNet Output", annotations, 0f, - 10f, 1); + 10f, + AlignmentAnnotation.BAR_GRAPH); } else { @@ -511,7 +515,7 @@ public class JPredClient "JNet Output", annotations); } - al.addAnnotation(annot); + al.addAnnotation(annot, seqRef); if (noMsa) {