From: gmungoc Date: Mon, 27 Mar 2017 13:25:59 +0000 (+0100) Subject: JAL-2468 change score model in PCAModel when switching X-Git-Tag: Release_2_10_2~3^2~105^2~2^2~45 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b3bc0dc473562a2a8570d79465eb225da8859bf7;p=jalview.git JAL-2468 change score model in PCAModel when switching peptide/nucleotide --- 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(); } }