X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FJnetAnnotationMaker.java;h=60c0a68837dbef4083371d65332450d3d63c5498;hb=4f24ef0848cf3c43ba0467f31fce1baa5c57aad5;hp=9a397d7597c3c02c1c799c89362d79825b12cf20;hpb=a665055e234b20c818820bddedf203b7fd138252;p=jalview.git diff --git a/src/jalview/io/JnetAnnotationMaker.java b/src/jalview/io/JnetAnnotationMaker.java index 9a397d7..60c0a68 100755 --- a/src/jalview/io/JnetAnnotationMaker.java +++ b/src/jalview/io/JnetAnnotationMaker.java @@ -22,6 +22,8 @@ public class JnetAnnotationMaker { int i = 0; SequenceI[] preds = prediction.getSeqsAsArray(); + // 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[] gapmap = al.getSequenceAt(FirstSeq).gapMap(); @@ -61,8 +63,8 @@ public class JnetAnnotationMaker { for (int j = 0; j < width; j++) { - float value = Float.parseFloat(preds[i].getCharAt( - j) + ""); + float value = new Float(preds[i].getCharAt( + j) + "").floatValue(); annotations[gapmap[j]] = new Annotation(preds[i].getCharAt( j) + "", "", preds[i].getCharAt(j), value);