consensus.hasText = true;
consensus.autoCalculated = true;
- if (alignment.isNucleotide())
+ if (alignment.isNucleotide() && alignment.hasRNAStructure())
{
strucConsensus = new AlignmentAnnotation("StrucConsensus", "PID",
new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
{
alignment.addAnnotation(consensus);
// TODO: Make own if for structure
- if (alignment.isNucleotide())
+ if (alignment.isNucleotide() && alignment.hasRNAStructure())
{
alignment.addAnnotation(strucConsensus);
}