X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fdatamodel%2FMappableContactMatrixI.java;fp=src%2Fjalview%2Fws%2Fdatamodel%2FMappableContactMatrixI.java;h=4abaa5deb5b99123ad0da1333347aad6f13ea08a;hb=9e40070f757fc662aba39ba6314be4937276ead4;hp=0000000000000000000000000000000000000000;hpb=54d087d5f1e550d0d17882b1e594683146ca7e6a;p=jalview.git diff --git a/src/jalview/ws/datamodel/MappableContactMatrixI.java b/src/jalview/ws/datamodel/MappableContactMatrixI.java new file mode 100644 index 0000000..4abaa5d --- /dev/null +++ b/src/jalview/ws/datamodel/MappableContactMatrixI.java @@ -0,0 +1,31 @@ +package jalview.ws.datamodel; + +import jalview.datamodel.ContactListI; +import jalview.datamodel.ContactMatrixI; +import jalview.datamodel.Mapping; +import jalview.datamodel.SequenceI; + +public interface MappableContactMatrixI extends ContactMatrixI +{ + + boolean hasReferenceSeq(); + + SequenceI getReferenceSeq(); + /** + * remaps the matrix to a new reference sequence + * @param dsq + * @param sqmpping - mapping from current reference to new reference - 1:1 only + * @return new ContactMatrixI instance with updated mapping + */ + MappableContactMatrixI liftOver(SequenceI dsq, Mapping sqmpping); + + /** + * like ContactMatrixI.getContactList(int column) but + * @param localFrame - sequence or other object that this contact matrix is associated with + * @param column - position in localFrame + * @return ContactListI that returns contacts w.r.t. localFrame + */ + + ContactListI getMappableContactList(SequenceI localFrame, int column); + +}