{
initConservation();
initQuality();
+ initSSConsensus();
}
else
{
MessageManager.getString("label.consensus_descr"),
new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
- secondaryStructureConsensus = new AlignmentAnnotation(
- MessageManager.getString("label.ssconsensus_label"),
- MessageManager.getString("label.ssconsensus_descr"),
- new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
initConsensus(consensus);
- initSSConsensus(secondaryStructureConsensus);
initGapCounts();
initComplementConsensus();
}
}
}
- private void initSSConsensus(AlignmentAnnotation aa)
+ private void initSSConsensus()
{
- aa.hasText = true;
- aa.autoCalculated = true;
-
- if (showSSConsensus)
+ if (!alignment.isNucleotide() && showSSConsensus)
{
- alignment.addAnnotation(aa);
+ if (secondaryStructureConsensus == null)
+ {
+ secondaryStructureConsensus = new AlignmentAnnotation(
+ MessageManager.getString("label.ssconsensus_label"),
+ MessageManager.getString("label.ssconsensus_descr"),
+ new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
+
+ secondaryStructureConsensus.hasText = true;
+ secondaryStructureConsensus.autoCalculated = true;
+ }
+ alignment.addAnnotation(secondaryStructureConsensus);
}
}