only append score if it is not NaN
authorjprocter <Jim Procter>
Fri, 6 Nov 2009 17:15:20 +0000 (17:15 +0000)
committerjprocter <Jim Procter>
Fri, 6 Nov 2009 17:15:20 +0000 (17:15 +0000)
src/jalview/io/FeaturesFile.java

index 1afe4c4..9ee35b4 100755 (executable)
@@ -745,9 +745,8 @@ public class FeaturesFile extends AlignFile
 \r
               out.append("\t");\r
             }\r
-\r
             out.append(seqs[i].getName() + "\t-1\t" + next[j].begin + "\t"\r
-                    + next[j].end + "\t" + next[j].type + ((visible.get(next[j].type) instanceof GraduatedColor) ? "\t"+next[j].score+"\n" : "\n"));\r
+                    + next[j].end + "\t" + next[j].type + ((next[j].score!=Float.NaN) ? "\t"+next[j].score+"\n" : "\n"));\r
           }\r
         }\r
       }\r