From 919d9bab3912813d1032e10265b59b5b83a693aa Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 7 May 2015 14:55:11 +0100 Subject: [PATCH] JAL-1601 migrated the JABAWS 2.1 jpred burial representation to the core jpred concise parser --- src/jalview/io/JnetAnnotationMaker.java | 178 +++++++++++++++++++------------ 1 file changed, 112 insertions(+), 66 deletions(-) diff --git a/src/jalview/io/JnetAnnotationMaker.java b/src/jalview/io/JnetAnnotationMaker.java index 731bd99..f97cd96 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(); /* -- 1.7.10.2