make sure valid value for non-gapped calculation with zero symbol data
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 1 May 2014 13:24:07 +0000 (14:24 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 1 May 2014 13:24:07 +0000 (14:24 +0100)
src/jalview/analysis/AAFrequency.java

index ca4e71c..75a777f 100755 (executable)
@@ -183,9 +183,11 @@ public class AAFrequency
       residueHash.put(PID_GAPS, new Float(percentage));
 
       if (nongap>0) {
+        // calculate for non-gapped too
         percentage = ((float) maxCount * 100) / nongap;
-        residueHash.put(PID_NOGAPS, new Float(percentage));
       }
+      residueHash.put(PID_NOGAPS, new Float(percentage));
+      
       result[i] = residueHash;
     }
   }