JAL-1933 switch from gap count to occupancy
authorJim Procter <jprocter@issues.jalview.org>
Sun, 4 Dec 2016 12:36:39 +0000 (12:36 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 4 Dec 2016 12:36:39 +0000 (12:36 +0000)
src/jalview/analysis/AAFrequency.java
src/jalview/viewmodel/AlignmentViewport.java

index 0e055e4..132abc0 100755 (executable)
@@ -328,7 +328,7 @@ public class AAFrequency
         return;
       }
 
-      final int gapped = profile.getGapped();
+      final int gapped = profile.getNonGapped();
 
       String description = String.valueOf(gapped);
 
index da05a09..0cca5b4 100644 (file)
@@ -1911,7 +1911,8 @@ public abstract class AlignmentViewport implements AlignViewportI,
       consensus = new AlignmentAnnotation("Consensus", "PID",
               new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
       initConsensus(consensus);
-      gapcounts = new AlignmentAnnotation("Gaps", "Number of Gaps",
+      gapcounts = new AlignmentAnnotation("Occupancy",
+              "Number of aligned positions",
               new Annotation[1], 0f, alignment.getHeight(),
               AlignmentAnnotation.BAR_GRAPH);
       initGapCounts(gapcounts);