AlignmentAnnotation[] aa = alignViewport.getAlignment()
.getAlignmentAnnotation();
AlignmentAnnotation rnaStruc = null;
+ // select rna struct to use for calculation
for (int i = 0; i < aa.length; i++)
{
if (aa[i].getRNAStruc() != null)
break;
}
}
-
+ // check to see if its valid
+
+ if (rnaStruc==null || !rnaStruc.isValidStruc())
+ {
+ calcMan.workerComplete(this);
+ return;
+ }
+
jalview.analysis.StructureFrequency.calculate(alignment.getSequencesArray(), 0,
alignment.getWidth(), hStrucConsensus, true, rnaStruc);
alignViewport.setRnaStructureConsensusHash(hStrucConsensus);