Merge branch 'features/JAL-2326_JOptionPane-refactoring' into develop
[jalview.git] / src / jalview / io / JnetAnnotationMaker.java
index c5320f1..3feae5d 100755 (executable)
@@ -68,8 +68,7 @@ public class JnetAnnotationMaker
               MessageManager
                       .formatMessage(
                               "exception.number_of_residues_in_query_sequence_differ_from_prediction",
-                              new String[]
-                              {
+                              new String[] {
                                   (delMap == null ? "" : MessageManager
                                           .getString("label.mapped")),
                                   al.getSequenceAt(firstSeq).getName(),
@@ -103,13 +102,13 @@ public class JnetAnnotationMaker
           for (int spos = 0; spos < width; spos++)
           {
             int sposw = (delMap == null) ? gapmap[spos]
-                    : delMap[gapmap[spos]];
+                    : gapmap[delMap[spos]];
             if (firstsol)
             {
               sol[sposw] = new Annotation(0f);
             }
             if (preds[i].getCharAt(spos) == 'B'
-                    && (sol[spos].value == 0f || sol[spos].value < amnt))
+                    && (sol[sposw].value == 0f || sol[sposw].value < amnt))
             {
               sol[sposw].value = amnt;
             }
@@ -193,13 +192,13 @@ public class JnetAnnotationMaker
           if (id.equals("JNETCONF"))
           {
             annot = new AlignmentAnnotation(preds[i].getName(),
-                    "JNet Output", annotations, 0f, 10f,
+                    "JPred Output", annotations, 0f, 10f,
                     AlignmentAnnotation.BAR_GRAPH);
           }
           else
           {
             annot = new AlignmentAnnotation(preds[i].getName(),
-                    "JNet Output", annotations);
+                    "JPred Output", annotations);
           }
 
           if (seqRef != null)