From a04bbb6c032ae6066d5c7f6fa83e6656ab58f6d7 Mon Sep 17 00:00:00 2001 From: James Procter Date: Mon, 27 Feb 2023 17:58:09 +0000 Subject: [PATCH] JAL-4134 TODO: alternative way of performing interactive picking using threshold --- src/jalview/gui/AnnotationPanel.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 3aacb07..84443e7 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -604,6 +604,9 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, else { GraphLine thr = aa[graphStretch].getThreshold(); + + // possible alternative for interactive selection - threshold gives 'ceiling' for forming a cluster + // when a row+column is selected, farthest common ancestor less than thr is used to compute cluster int currentX = getColumnForXPos(evt.getX()); ContactMatrixI matrix = av.getContactMatrix(aa[graphStretch]); if (matrix!=null) -- 1.7.10.2