X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FSequenceAnnotationReport.java;fp=src%2Fjalview%2Fio%2FSequenceAnnotationReport.java;h=dca53e1cb913df6fdcc2e8d8fffe801fbc94000d;hb=49db0dff1da16c3355b43a41498c1fc93ef47e91;hp=6936686b81ae8c5ba6606dc8b4ce5fdebd3f9e15;hpb=304e64fb34b32659be1bbfd39fb4e15b2f79586e;p=jalview.git diff --git a/src/jalview/io/SequenceAnnotationReport.java b/src/jalview/io/SequenceAnnotationReport.java index 6936686..dca53e1 100644 --- a/src/jalview/io/SequenceAnnotationReport.java +++ b/src/jalview/io/SequenceAnnotationReport.java @@ -490,20 +490,27 @@ public class SequenceAnnotationReport ds = ds.getDatasetSequence(); } + /* * add any annotation scores */ AlignmentAnnotation[] anns = ds.getAnnotation(); - for (int i = 0; anns != null && i < anns.length; i++) - { - AlignmentAnnotation aa = anns[i]; - if (aa != null && aa.hasScore() && aa.sequenceRef != null) + if (anns!=null && anns.length>0) { + boolean first=true; + for (int i = 0; anns != null && i < anns.length; i++) { - sb.append("
").append(aa.label).append(": ") - .append(aa.getScore()); + AlignmentAnnotation aa = anns[i]; + if (aa != null && aa.hasScore() && aa.sequenceRef != null) + { + if (first) { + sb.append("
").append("Annotation Scores
"); + first=false; + } + sb.append("
").append(aa.label).append(": ") + .append(aa.getScore()); + } } } - if (showDbRefs) { maxWidth = Math.max(maxWidth, appendDbRefs(sb, ds, summary)); @@ -537,8 +544,8 @@ public class SequenceAnnotationReport sb.append(bitScore); maxWidth = Math.max(maxWidth, eValue.length()); maxWidth = Math.max(maxWidth, bitScore.length()); + sb.append("
"); } - sb.append("
"); sb.append(""); return maxWidth;