JAL-1705 add exon name to features and render on peptide (to show
[jalview.git] / src / jalview / io / gff / GffHelperBase.java
index 499fa7b..feeec1d 100644 (file)
@@ -321,13 +321,18 @@ public abstract class GffHelperBase implements GffHelperI
     {
       int start = Integer.parseInt(gff[START_COL]);
       int end = Integer.parseInt(gff[END_COL]);
-      float score = Float.NaN;
+
+      /*
+       * default 'score' is 0 rather than Float.NaN as the latter currently
+       * disables the 'graduated colour => colour by label' option
+       */
+      float score = 0f;
       try
       {
         score = Float.parseFloat(gff[SCORE_COL]);
       } catch (NumberFormatException nfe)
       {
-        // e.g. '.' - leave as NaN to indicate no score
+        // e.g. '.' - leave as zero
       }
 
       SequenceFeature sf = new SequenceFeature(gff[TYPE_COL],