From 071b0e962611ba9a4692a1af9d2f10fdf1f694ea Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 21 Apr 2014 17:27:19 +0100 Subject: [PATCH] JAL-1473 define defaults for DNA/Protein PCA calculation --- src/jalview/gui/PCAPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/PCAPanel.java b/src/jalview/gui/PCAPanel.java index 38fd74d..ccc4697 100644 --- a/src/jalview/gui/PCAPanel.java +++ b/src/jalview/gui/PCAPanel.java @@ -28,7 +28,6 @@ import javax.swing.*; import jalview.datamodel.*; import jalview.jbgui.*; import jalview.schemes.ResidueProperties; -import jalview.schemes.ScoreMatrix; import jalview.util.MessageManager; import jalview.viewmodel.PCAModel; @@ -206,6 +205,7 @@ public class PCAPanel extends GPCAPanel implements Runnable, if (!pcaModel.isNucleotide()) { pcaModel.setNucleotide(true); + pcaModel.setScore_matrix("DNA"); Thread worker = new Thread(this); worker.start(); } @@ -219,6 +219,7 @@ public class PCAPanel extends GPCAPanel implements Runnable, if (pcaModel.isNucleotide()) { pcaModel.setNucleotide(false); + pcaModel.setScore_matrix("BLOSUM62"); Thread worker = new Thread(this); worker.start(); } -- 1.7.10.2