X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FFormatAdapter.java;h=a71d6450449f74bd06bb5dbbce7ae687bfc91e39;hb=f7c96b0eada06e354b66a186f272aeb3ff872a90;hp=3c741f4303ff7c9a7e3ab1fd61af7c4ad7bed41f;hpb=65b3877f9041a45bfbb7cbc1dd444a8cf87c9f3d;p=jalview.git diff --git a/src/jalview/io/FormatAdapter.java b/src/jalview/io/FormatAdapter.java index 3c741f4..a71d645 100755 --- a/src/jalview/io/FormatAdapter.java +++ b/src/jalview/io/FormatAdapter.java @@ -1,5 +1,5 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5) + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6) * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle * * This file is part of Jalview. @@ -36,7 +36,7 @@ public class FormatAdapter extends AppletFormatAdapter } /** - * create sequences with each seuqence string replaced with the one given in + * create sequences with each sequence string replaced with the one given in * omitHiddenCOlumns * * @param seqs @@ -194,9 +194,10 @@ public class FormatAdapter extends AppletFormatAdapter { if (omitHidden != null) { - // - Alignment alv = new Alignment(replaceStrings(alignment - .getSequencesArray(), omitHidden)); + // TODO consider using AlignmentView to prune to visible region + // TODO prune sequence annotation and groups to visible region + Alignment alv = new Alignment(replaceStrings( + alignment.getSequencesArray(), omitHidden)); AlignmentAnnotation[] ala = alignment.getAlignmentAnnotation(); if (ala != null) { @@ -205,8 +206,8 @@ public class FormatAdapter extends AppletFormatAdapter AlignmentAnnotation na = new AlignmentAnnotation(ala[i]); if (selgp != null) { - colSel.makeVisibleAnnotation(selgp.getStartRes(), selgp - .getEndRes(), na); + colSel.makeVisibleAnnotation(selgp.getStartRes(), + selgp.getEndRes(), na); } else {