X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2FJPredClient.java;h=6fd0a4a702b638ab129dbf6400040c77dc3b8c90;hb=01cc9bf86a687fa7c8a741128264b23eb7feba9b;hp=f503f912dd3a5aa8479d6a399febfc60aac3702c;hpb=58e82de6951f919828899de75b908cd1114d8511;p=jalview.git diff --git a/src/jalview/ws/JPredClient.java b/src/jalview/ws/JPredClient.java index f503f91..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) { @@ -544,8 +548,7 @@ public class JPredClient } catch (Exception ex) { - jalview.bin.Cache.log.warn("Exception whilst parsing JNet style secondary structure prediction."); - jalview.bin.Cache.log.debug("Exception: ",ex); + jalview.bin.Cache.log.warn("Exception whilst parsing JNet style secondary structure prediction.",ex); } } }