consensus.hasText = true;
consensus.autoCalculated = true;
- // TODO check if this can done accordingly
- strucConsensus = new AlignmentAnnotation("StrucConsensus", "PID",
- new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
- strucConsensus.hasText = true;
- strucConsensus.autoCalculated = true;
-
+ if (alignment.isNucleotide())
+ {
+ strucConsensus = new AlignmentAnnotation("StrucConsensus", "PID",
+ new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
+ strucConsensus.hasText = true;
+ strucConsensus.autoCalculated = true;
+ }
+
if (Cache.getDefault("SHOW_IDENTITY", true))
{
alignment.addAnnotation(consensus);
// TODO: Make own if for structure
- alignment.addAnnotation(strucConsensus);
+ if (alignment.isNucleotide())
+ {
+ alignment.addAnnotation(strucConsensus);
+ }
}
}