From b3bc0dc473562a2a8570d79465eb225da8859bf7 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 27 Mar 2017 14:25:59 +0100 Subject: [PATCH] JAL-2468 change score model in PCAModel when switching peptide/nucleotide --- src/jalview/appletgui/PCAPanel.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jalview/appletgui/PCAPanel.java b/src/jalview/appletgui/PCAPanel.java index c832305..2d77c59 100644 --- a/src/jalview/appletgui/PCAPanel.java +++ b/src/jalview/appletgui/PCAPanel.java @@ -216,6 +216,9 @@ public class PCAPanel extends EmbmenuFrame implements Runnable, if (!pcaModel.isNucleotide()) { pcaModel.setNucleotide(true); + ScoreModelI scoreModel = ScoreModels.getInstance().getDefaultModel( + false); + pcaModel.setScoreModel(scoreModel); new Thread(this).start(); } } @@ -224,6 +227,9 @@ public class PCAPanel extends EmbmenuFrame implements Runnable, if (pcaModel.isNucleotide()) { pcaModel.setNucleotide(false); + ScoreModelI scoreModel = ScoreModels.getInstance().getDefaultModel( + true); + pcaModel.setScoreModel(scoreModel); new Thread(this).start(); } } -- 1.7.10.2