From: Jim Procter Date: Thu, 1 May 2014 13:24:07 +0000 (+0100) Subject: make sure valid value for non-gapped calculation with zero symbol data X-Git-Tag: Jalview_2_9~190^2~20 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=64e9fe452576749d247b6dca0fc231237c40f743;p=jalview.git make sure valid value for non-gapped calculation with zero symbol data --- diff --git a/src/jalview/analysis/AAFrequency.java b/src/jalview/analysis/AAFrequency.java index ca4e71c..75a777f 100755 --- a/src/jalview/analysis/AAFrequency.java +++ b/src/jalview/analysis/AAFrequency.java @@ -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; } }