From 9d35459dd5bc7805b0e52e11f50040143243fdea Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 18 Jan 2015 15:29:57 +0000 Subject: [PATCH] JAL-1628 ColumnSelection method to hide insertions for a given sequence --- src/jalview/datamodel/ColumnSelection.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/jalview/datamodel/ColumnSelection.java b/src/jalview/datamodel/ColumnSelection.java index f414d13..f5f792c 100644 --- a/src/jalview/datamodel/ColumnSelection.java +++ b/src/jalview/datamodel/ColumnSelection.java @@ -1265,4 +1265,19 @@ public class ColumnSelection } } } + + /** + * mark the columns corresponding to gap characters as hidden in the column + * selection + * + * @param sr + */ + public void hideInsertionsFor(SequenceI sr) + { + List inserts = sr.getInsertions(); + for (int[] r : inserts) + { + hideColumns(r[0], r[1]); + } + } } -- 1.7.10.2