+ private AlignmentAnnotation makeAnnotation(SequenceI seq, StringBuffer sb)
+ {
+ Annotation[] anots = new Annotation[sb.length()];
+ char cb;
+ for (int i = 0; i < anots.length; i++)
+ {
+ char cn = sb.charAt(i);
+ if (cn != ' ')
+ {
+ anots[i] = new Annotation("" + cn, null, ' ', Float.NaN);
+ }
+ }
+ AlignmentAnnotation aa = new AlignmentAnnotation(seq.getName()
+ .substring(2), seq.getDescription(), anots);
+ return aa;
+ }
+