From: MorellThomas Date: Tue, 5 Dec 2023 10:09:28 +0000 (+0100) Subject: Adapts PCA points to support rectangular selection X-Git-Tag: Release_2_11_4_0~31^2~27 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e6a8ec08206c534b7fdb7a65f04ff9dd6dafeae2;p=jalview.git Adapts PCA points to support rectangular selection --- 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++) {