From e6a8ec08206c534b7fdb7a65f04ff9dd6dafeae2 Mon Sep 17 00:00:00 2001 From: MorellThomas Date: Tue, 5 Dec 2023 11:09:28 +0100 Subject: [PATCH] Adapts PCA points to support rectangular selection --- src/jalview/viewmodel/PCAModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/viewmodel/PCAModel.java b/src/jalview/viewmodel/PCAModel.java index 1693294..71bef00 100644 --- a/src/jalview/viewmodel/PCAModel.java +++ b/src/jalview/viewmodel/PCAModel.java @@ -101,7 +101,7 @@ public class PCAModel top = height - 1; points = new Vector<>(); - Point[] scores = pca.getComponents(top - 1, top - 2, top - 3, 100); + Point[] scores = pca.getComponents(top - 1, top - 2, top - 3, 1); for (int i = 0; i < height; i++) { @@ -153,7 +153,7 @@ public class PCAModel public void updateRcView(int dim1, int dim2, int dim3) { // note: actual indices for components are dim1-1, etc (patch for JAL-1123) - Point[] scores = pca.getComponents(dim1 - 1, dim2 - 1, dim3 - 1, 100); + Point[] scores = pca.getComponents(dim1 - 1, dim2 - 1, dim3 - 1, 1); for (int i = 0; i < pca.getHeight(); i++) { -- 1.7.10.2