}
else
{
- label = (key = type2id(aa.label.toLowerCase())) + "_cons";
+ key = type2id(aa.label.toLowerCase());
+ if (key == null)
+ {
+ label = aa.label;
+ }
+ else
+ {
+ label = key + "_cons";
+ }
}
-
if (label == null)
{
label = aa.label;
}
+ label = label.replace(" ", "_");
out.append(new Format("%-" + maxid + "s").form("#=GC " + label
+ " "));
String ch = (annot == null) ? ((sequenceI == null) ? "-" : Character
.toString(sequenceI.getCharAt(k)))
: annot.displayCharacter;
- if (key.equals("SS"))
+ if (key != null && key.equals("SS"))
{
if (annot == null)
{