X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FAAFrequency.java;h=d028ade26d7681f801107a7c77485e287d5f3c0e;hb=6fa2247c40e66f9d90ebb9967da5ef6cd96edfa0;hp=08a3f52c87492c3cc86d9424edc9ffb674fdc7ba;hpb=416f6e172aa77e3b0f2c2bd2b7a5655a6194d936;p=jalview.git diff --git a/src/jalview/analysis/AAFrequency.java b/src/jalview/analysis/AAFrequency.java index 08a3f52..d028ade 100755 --- a/src/jalview/analysis/AAFrequency.java +++ b/src/jalview/analysis/AAFrequency.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) - * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1) + * Copyright (C) 2014 The Jalview Authors * * This file is part of Jalview. * @@ -14,6 +14,7 @@ * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. */ package jalview.analysis; @@ -182,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; } }