X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FFormatAdapter.java;h=3cbd73b7dcddc0c75b007f6c899988a808d09b03;hb=ce886100c1eae01eac7d59c961e694f4493d4bcb;hp=24c9109151b16dc22e68ae2d5b6e914d341a8389;hpb=8cf069b967632cb55cc1a7e4799e677b0fa36101;p=jalview.git diff --git a/src/jalview/io/FormatAdapter.java b/src/jalview/io/FormatAdapter.java index 24c9109..3cbd73b 100755 --- a/src/jalview/io/FormatAdapter.java +++ b/src/jalview/io/FormatAdapter.java @@ -119,6 +119,13 @@ public class FormatAdapter afile.addJVSuffix( jalview.bin.Cache.getDefault("PFAM_JVSUFFIX", true)); } + /* amsa is not supported by this function - it requires an alignment rather than a sequence vector + else if (format.equalsIgnoreCase("AMSA")) + { + afile = new AMSAFile(); + afile.addJVSuffix( + jalview.bin.Cache.getDefault("AMSA_JVSUFFIX", true)); + }*/ afile.setSeqs(seqs); @@ -141,7 +148,11 @@ public class FormatAdapter } public String formatSequences(String format, AlignmentI alignment, String[] omitHidden, ColumnSelection colSel) { - return formatSequences(format, alignment, omitHidden, getCacheSuffixDefault(format), colSel); + return formatSequences(format, alignment, omitHidden, getCacheSuffixDefault(format), colSel, null); + } + public String formatSequences(String format, AlignmentI alignment, String[] omitHidden, ColumnSelection colSel, SequenceGroup sgp) + { + return formatSequences(format, alignment, omitHidden, getCacheSuffixDefault(format), colSel, sgp); } /** * hack function to replace seuqences with visible sequence strings before generating a @@ -154,7 +165,12 @@ public class FormatAdapter */ public String formatSequences(String format, AlignmentI alignment, String[] omitHidden, boolean suffix, ColumnSelection colSel) { - AlignFile afile = null; + return formatSequences(format, alignment, omitHidden, suffix, colSel, null); + } + + public String formatSequences(String format, AlignmentI alignment, String[] omitHidden, boolean suffix, + ColumnSelection colSel, jalview.datamodel.SequenceGroup selgp) + { if (omitHidden!=null) { // @@ -163,7 +179,12 @@ public class FormatAdapter for (int i=0; i