From 0a0cce2e9671916ffa893bff2b3e3187def66049 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 18 Jun 2019 18:06:08 +0100 Subject: [PATCH] JAL-3313 don't double count mapped codons --- src/jalview/analysis/AAFrequency.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/analysis/AAFrequency.java b/src/jalview/analysis/AAFrequency.java index e4f2dfa..f1d5e79 100755 --- a/src/jalview/analysis/AAFrequency.java +++ b/src/jalview/analysis/AAFrequency.java @@ -531,7 +531,7 @@ public class AAFrequency for (int col = 0; col < cols; col++) { // todo would prefer a Java bean for consensus data - Hashtable columnHash = new Hashtable(); + Hashtable columnHash = new Hashtable<>(); // #seqs, #ungapped seqs, counts indexed by (codon encoded + 1) int[] codonCounts = new int[66]; codonCounts[0] = alignment.getSequences().size(); @@ -551,6 +551,7 @@ public class AAFrequency { codonCounts[codonEncoded + 2]++; ungappedCount++; + break; } } } -- 1.7.10.2