X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSequenceI.java;h=b22e48f8613a26b394ed688078c196cfff88f826;hb=1dc67d212f52a92d7917fc9f4edd47d99b97c149;hp=c1687fe3dbe812899e70ab9d2081c91a6c6c267c;hpb=8e640547def8e151db1fafafe93a2a0bb8078369;p=jalview.git diff --git a/src/jalview/datamodel/SequenceI.java b/src/jalview/datamodel/SequenceI.java index c1687fe..b22e48f 100755 --- a/src/jalview/datamodel/SequenceI.java +++ b/src/jalview/datamodel/SequenceI.java @@ -23,6 +23,7 @@ package jalview.datamodel; import jalview.datamodel.features.SequenceFeaturesI; import java.util.BitSet; +import java.util.Iterator; import java.util.List; import java.util.Vector; @@ -192,13 +193,14 @@ public interface SequenceI extends ASequenceI public int findIndex(int pos); /** - * Returns the sequence position for an alignment position. + * Returns the sequence position for an alignment (column) position. If at a + * gap, returns the position of the next residue to the right. If beyond the + * end of the sequence, returns 1 more than the last residue position. * * @param i * column index in alignment (from 0.. it); + + /** + * Locate the first position in this sequence which is not contained in an + * iterator region. If no such position exists, return 0 + * + * @param it + * iterator over regions + * @return first residue not contained in regions + */ + public int firstResidueOutsideIterator(Iterator it); }