X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fdatamodel%2FMappableContactMatrixI.java;h=97624289881e1821967ee01d768f9b5ac171c9e9;hb=0ccaf35f7e6a5cc62d4f433b39d574d0aa4b2d26;hp=b8a9779ed88c286b632bb050b17756b22a5f4896;hpb=f1b52d06899b84108b558431e81b71f187844ffa;p=jalview.git diff --git a/src/jalview/ws/datamodel/MappableContactMatrixI.java b/src/jalview/ws/datamodel/MappableContactMatrixI.java index b8a9779..9762428 100644 --- a/src/jalview/ws/datamodel/MappableContactMatrixI.java +++ b/src/jalview/ws/datamodel/MappableContactMatrixI.java @@ -51,7 +51,7 @@ public interface MappableContactMatrixI extends ContactMatrixI MapList getMapFor(SequenceI sequenceRef); /** - * Locate a position in the mapped sequence for a column in the matrix - use + * Locate a position in the mapped sequence for a single column in the matrix. * this to resolve positions corresponding to column clusters * * @param localFrame @@ -61,4 +61,16 @@ public interface MappableContactMatrixI extends ContactMatrixI * @return sequence position(s) corresponding to column in contact matrix */ int[] getMappedPositionsFor(SequenceI localFrame, int column); + + /** + * Locate a position in the mapped sequence for a contiguous range of columns in the matrix + * use this to resolve positions corresponding to column clusters + * + * @param localFrame + * - sequence derivced from reference sequence + * @param column + * - matrix row/column + * @return sequence position(s) corresponding to column in contact matrix + */ + int[] getMappedPositionsFor(SequenceI localFrame, int from, int to); }