From: amwaterhouse Date: Wed, 2 May 2007 13:02:47 +0000 (+0000) Subject: AMSA input set padgaps true X-Git-Tag: Release_2_3~78 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4e93b3351cecb6f07f401832fc1658d180c8008d;p=jalview.git AMSA input set padgaps true --- diff --git a/src/jalview/io/FastaFile.java b/src/jalview/io/FastaFile.java index c69b8ce..8de469d 100755 --- a/src/jalview/io/FastaFile.java +++ b/src/jalview/io/FastaFile.java @@ -158,6 +158,24 @@ public class FastaFile } /** + * called by AppletFormatAdapter to generate + * an annotated alignment, rather than bare + * sequences. + * @param al + */ + public void addAnnotations(Alignment al) + { + addProperties(al); + for (int i = 0; i < annotations.size(); i++) + { + AlignmentAnnotation aa = (AlignmentAnnotation) annotations.elementAt(i); + aa.setPadGaps(true, al.getGapCharacter()); + al.addAnnotation( aa ); + } + } + + + /** * DOCUMENT ME! * * @param s DOCUMENT ME!