From cacd4be9f344327b888980f6cc2409c2a83bee08 Mon Sep 17 00:00:00 2001 From: Renia Correya Date: Tue, 18 Jun 2024 13:26:21 +0100 Subject: [PATCH] JAl-4392 Hide secondary structure consensus with no data to display --- src/jalview/analysis/AAFrequency.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/jalview/analysis/AAFrequency.java b/src/jalview/analysis/AAFrequency.java index 9c5ab5f..7278a80 100755 --- a/src/jalview/analysis/AAFrequency.java +++ b/src/jalview/analysis/AAFrequency.java @@ -31,11 +31,9 @@ import jalview.datamodel.ProfilesI; import jalview.datamodel.ResidueCount; import jalview.datamodel.ResidueCount.SymbolCounts; import jalview.datamodel.SecondaryStructureCount; -import jalview.datamodel.SeqCigar; import jalview.datamodel.SequenceI; import jalview.ext.android.SparseIntArray; import jalview.util.Comparison; -import jalview.util.Constants; import jalview.util.Format; import jalview.util.MappingUtils; import jalview.util.QuickSort; @@ -449,6 +447,11 @@ public class AAFrequency ssConsensus.annotations[i] = new Annotation(modalSS, description, ' ', value); } + + //Hide consensus with no data to display + if(ssConsensus.getNoOfSequencesIncluded()<1) + ssConsensus.visible = false; + // long elapsed = System.currentTimeMillis() - now; // jalview.bin.Console.outPrintln(-elapsed); } -- 1.7.10.2