// check Alignment annotation
AlignmentAnnotation[] aa_new = al_input.getAlignmentAnnotation();
AlignmentAnnotation[] aa_original = al.getAlignmentAnnotation();
+ boolean expectProteinSS = !al.isNucleotide();
+ assertTrue(
+ "Alignments not both "
+ + (al.isNucleotide() ? "nucleotide" : "protein"),
+ al_input.isNucleotide() == al.isNucleotide());
// note - at moment we do not distinguish between alignment without any
// annotation rows and alignment with no annotation row vector
assertEqualSecondaryStructure(
"Different alignment annotation at position " + i,
aa_original[i], aa_new[i], allowNullAnnotation);
+ if (aa_original[i].hasIcons)
+ {
+ assertTrue(
+ "Secondary structure expected to be "
+ + (expectProteinSS ? "protein" : "nucleotide"),
+ expectProteinSS == !aa_original[i].isRNA());
+ }
// compare graphGroup or graph properties - needed to verify JAL-1299
assertEquals("Graph type not identical.", aa_original[i].graph,
aa_new[i].graph);