Sequence is char []
[jalview.git] / src / jalview / io / JnetAnnotationMaker.java
index 577e874..07a0068 100755 (executable)
@@ -42,9 +42,9 @@ public class JnetAnnotationMaker
     // in the future we could search for the query
     // sequence in the alignment before calling this function.
     SequenceI seqRef = al.getSequenceAt(firstSeq);
-    int width = preds[0].getSequence().length();
+    int width = preds[0].getSequence().length;
     int[] gapmap = al.getSequenceAt(firstSeq).gapMap();
-    if ((delMap!=null && delMap.length > width) || (delMap==null && gapmap.length!=width)) 
+    if ((delMap!=null && delMap.length > width) || (delMap==null && gapmap.length!=width))
     {
       throw (new Exception(
           "Number of residues in "+(delMap==null ? "" : " mapped ")+"supposed query sequence ('" +
@@ -127,7 +127,7 @@ public class JnetAnnotationMaker
             for (int j = 0; j < width; j++)
             {
             annotations[gapmap[delMap[j]]] = new Annotation(preds[i].getCharAt(
-                j) + "", "", ' ', 0);            
+                j) + "", "", ' ', 0);
             }
           }
         }
@@ -178,4 +178,4 @@ public class JnetAnnotationMaker
      */
 
   }
-}
\ No newline at end of file
+}