Merge branch 'features/JAL-2446NCList' into
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 5 Jun 2017 07:57:27 +0000 (08:57 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 5 Jun 2017 07:57:27 +0000 (08:57 +0100)
features/JAL-2574findFeaturesByColumn

Conflicts:
src/jalview/datamodel/SequenceI.java

1  2 
src/jalview/datamodel/Sequence.java
src/jalview/datamodel/SequenceI.java
src/jalview/workers/ColumnCounterSetWorker.java
test/jalview/datamodel/SequenceTest.java

Simple merge
@@@ -486,18 -511,21 +487,25 @@@ public interface SequenceI extends ASeq
    public List<DBRefEntry> getPrimaryDBRefs();
  
    /**
 -   * Returns a (possibly empty) list of sequence features that overlap the range
 -   * from-to (inclusive), optionally restricted to one or more specified feature
 -   * types
 +   * Returns a (possibly empty) list of sequence features that overlap the given
 +   * alignment column range, optionally restricted to one or more specified
 +   * feature types. If the range is all gaps, then features which enclose it are
 +   * included (but not contact features).
     * 
 -   * @param from
 -   * @param to
 +   * @param fromCol
 +   *          start column of range inclusive (1..)
 +   * @param toCol
 +   *          end column of range inclusive (1..)
     * @param types
 +   *          optional feature types to restrict results to
     * @return
     */
 -  List<SequenceFeature> findFeatures(int from, int to, String... types);
 +  List<SequenceFeature> findFeatures(int fromCol, int toCol, String... types);
+   
+   /**
+    * 
+    * @return BitSet corresponding to index [0,length) where Comparison.isGap()
+    *         returns true.
+    */
+   BitSet getInsertionsAsBits();
  }