for (int cols=0; cols<pattern.numSubs(); cols++)\r
{\r
String sstring = pattern.stringMatched(cols+1);\r
- float score;\r
+ double score=Double.NaN;\r
try {\r
- score = new Float(sstring).floatValue();\r
+ score = new Double(sstring).doubleValue();\r
}\r
catch (Exception e)\r
{\r
// add score to sequence annotation.\r
AlignmentAnnotation an = new AlignmentAnnotation(ScoreNames[cols], ScoreDescriptions[cols], null);\r
an.setScore(score);\r
+ System.out.println("Score: "+ScoreNames[cols]+"="+score); // DEBUG\r
+ an.setSequenceRef(seqs[i]);\r
seqs[i].addAlignmentAnnotation(an);\r
al.addAnnotation(an);\r
added=true;\r