X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FJnetAnnotationMaker.java;h=55138e746979b6b088d95ae07780ad6258b9df80;hb=3d0101179759ef157b088ea135423cd909512d9f;hp=3feae5d740ca6f9c9eead8bd044b800ffbf957cc;hpb=7c70cb09e9de68ab567e38520d6d09f0c17a3939;p=jalview.git diff --git a/src/jalview/io/JnetAnnotationMaker.java b/src/jalview/io/JnetAnnotationMaker.java index 3feae5d..55138e7 100755 --- a/src/jalview/io/JnetAnnotationMaker.java +++ b/src/jalview/io/JnetAnnotationMaker.java @@ -64,17 +64,14 @@ public class JnetAnnotationMaker if ((delMap != null && delMap.length > width) || (delMap == null && gapmap.length != width)) { - throw (new Exception( - MessageManager - .formatMessage( - "exception.number_of_residues_in_query_sequence_differ_from_prediction", - new String[] { - (delMap == null ? "" : MessageManager - .getString("label.mapped")), - al.getSequenceAt(firstSeq).getName(), - al.getSequenceAt(firstSeq) - .getSequenceAsString(), - Integer.valueOf(width).toString() }))); + throw (new Exception(MessageManager.formatMessage( + "exception.number_of_residues_in_query_sequence_differ_from_prediction", + new String[] + { (delMap == null ? "" + : MessageManager.getString("label.mapped")), + al.getSequenceAt(firstSeq).getName(), + al.getSequenceAt(firstSeq).getSequenceAsString(), + Integer.valueOf(width).toString() }))); } AlignmentAnnotation annot; @@ -98,7 +95,8 @@ public class JnetAnnotationMaker { if (id.startsWith("JNETSOL")) { - float amnt = (id.endsWith("25") ? 3f : id.endsWith("5") ? 6f : 9f); + float amnt = (id.endsWith("25") ? 3f + : id.endsWith("5") ? 6f : 9f); for (int spos = 0; spos < width; spos++) { int sposw = (delMap == null) ? gapmap[spos] @@ -222,8 +220,7 @@ public class JnetAnnotationMaker if (!firstsol) { // add the solvent accessibility - annot = new AlignmentAnnotation( - "Jnet Burial", + annot = new AlignmentAnnotation("Jnet Burial", "Prediction of Solvent Accessibility
levels are", sol, 0f, 9f, AlignmentAnnotation.BAR_GRAPH); @@ -234,8 +231,8 @@ public class JnetAnnotationMaker seqRef.addAlignmentAnnotation(annot); } al.addAnnotation(annot); - al.setAnnotationIndex(annot, al.getAlignmentAnnotation().length - - existingAnnotations - 1); + al.setAnnotationIndex(annot, + al.getAlignmentAnnotation().length - existingAnnotations - 1); } // Hashtable scores = prediction.getScores();