From: Jim Procter Date: Thu, 7 May 2015 13:55:11 +0000 (+0100) Subject: JAL-1601 migrated the JABAWS 2.1 jpred burial representation to the core jpred concis... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=12b9f18ec44016bbb9a418644921ff90b828cf73;p=jalview.git JAL-1601 migrated the JABAWS 2.1 jpred burial representation to the core jpred concise parser --- diff --git a/src/jalview/io/JnetAnnotationMaker.java b/src/jalview/io/JnetAnnotationMaker.java index c2e3b4a..52820f6 100755 --- a/src/jalview/io/JnetAnnotationMaker.java +++ b/src/jalview/io/JnetAnnotationMaker.java @@ -20,7 +20,10 @@ */ package jalview.io; -import jalview.datamodel.*; +import jalview.datamodel.AlignmentAnnotation; +import jalview.datamodel.AlignmentI; +import jalview.datamodel.Annotation; +import jalview.datamodel.SequenceI; import jalview.util.MessageManager; public class JnetAnnotationMaker @@ -78,6 +81,9 @@ public class JnetAnnotationMaker existingAnnotations = al.getAlignmentAnnotation().length; } + Annotation[] sol = new Annotation[al.getWidth()]; + boolean firstsol = true; + while (i < preds.length) { String id = preds[i].getName().toUpperCase(); @@ -85,98 +91,121 @@ public class JnetAnnotationMaker if (id.startsWith("LUPAS") || id.startsWith("JNET") || id.startsWith("JPRED")) { - annotations = new Annotation[al.getWidth()]; - /* - * if (delMap!=null) { for (int j=0; jPrediction of Solvent Accessibility
levels are", + sol, 0f, 9f, AlignmentAnnotation.BAR_GRAPH); + annot.validateRangeAndDisplay(); + if (seqRef != null) + { + annot.createSequenceMapping(seqRef, 1, true); + seqRef.addAlignmentAnnotation(annot); + } + al.addAnnotation(annot); + al.setAnnotationIndex(annot, al.getAlignmentAnnotation().length + - existingAnnotations - 1); + } // Hashtable scores = prediction.getScores(); /*