raise a warning if column annotation gets truncated.
authorjprocter <Jim Procter>
Thu, 11 Mar 2010 17:04:54 +0000 (17:04 +0000)
committerjprocter <Jim Procter>
Thu, 11 Mar 2010 17:04:54 +0000 (17:04 +0000)
src/jalview/io/AMSAFile.java

index 20cf745..1fcda43 100644 (file)
@@ -86,7 +86,11 @@ public class AMSAFile extends jalview.io.FastaFile
             {
               ch = aa.annotations[k].displayCharacter;
             }
-
+            if (ch.length()>1)
+            {
+              this.warningMessage="Truncated column annotation to first letter.";
+              ch = ch.substring(0,1);
+            }
             out.append(ch);
 
           }