JAL-674 make RNAML-extracted secondary structure lines consistent with those from...
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 26 Nov 2014 14:48:28 +0000 (14:48 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 26 Nov 2014 14:48:28 +0000 (14:48 +0000)
src/jalview/io/RnamlFile.java

index 9f0c8d5..c075fda 100644 (file)
@@ -167,8 +167,11 @@ public class RnamlFile extends AlignFile
                         annot[k]).charAt(0), 0f);
       }
 
-      AlignmentAnnotation align = new AlignmentAnnotation("Sec. str.",
-              current.getID(), ann);
+      AlignmentAnnotation align = new AlignmentAnnotation(
+              "Secondary Structure",
+              current.getID().trim().length() > 0 ? "Secondary Structure for "
+                      + current.getID()
+                      : "", ann);
 
       seqs[i].addAlignmentAnnotation(align);
       seqs[i].setRNA(result.get(i));