}
an.setLabel(aa[i].label);
- if (!Float.isNaN(aa[i].score))
+ if (aa[i].hasScore())
{
an.setScore(aa[i].getScore());
}
for (int aa = 0; aa < ae.length && aa < anot.length; aa++)
{
-
anot[ae[aa].getPosition()] = new jalview.datamodel.Annotation(
ae[aa].getDisplayCharacter(),
ae[aa].getDescription(),
- ae[aa].getSecondaryStructure()==null ? ' ' :
+ (ae[aa].getSecondaryStructure()==null || ae[aa].getSecondaryStructure().length() == 0) ? ' ' :
ae[aa].getSecondaryStructure().charAt(0),
ae[aa].getValue()