From e884b363198bc0254c21ac75ee12ba45099b88c0 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 4 Nov 2004 17:58:04 +0000 Subject: [PATCH] Only 4 or more sequences allowed for PCA --- src/jalview/gui/PCAPanel.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/jalview/gui/PCAPanel.java b/src/jalview/gui/PCAPanel.java index 97df517..7875567 100755 --- a/src/jalview/gui/PCAPanel.java +++ b/src/jalview/gui/PCAPanel.java @@ -23,6 +23,14 @@ public class PCAPanel extends GPCAPanel implements Runnable public PCAPanel(AlignViewport av, SequenceI[] s) { this.av = av; + if(av.getSelection().size()>3) + { + s = new Sequence[av.getSelection().size()]; + for(int i=0; i