From 9f327c52e2dc32b445f87c1852b7f5ffa0196870 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Thu, 26 Oct 2017 16:20:25 +0100 Subject: [PATCH] TreeBuilder now stores the used ScoreModel and ScoreParams --- src/jalview/analysis/TreeBuilder.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/jalview/analysis/TreeBuilder.java b/src/jalview/analysis/TreeBuilder.java index 36a8caf..31fc4b5 100644 --- a/src/jalview/analysis/TreeBuilder.java +++ b/src/jalview/analysis/TreeBuilder.java @@ -73,6 +73,10 @@ public abstract class TreeBuilder Vector node; + protected ScoreModelI scoreModel; + + protected SimilarityParamsI scoreParams; + private AlignmentView seqStrings; // redundant? (see seqData) /** @@ -295,7 +299,11 @@ public abstract class TreeBuilder */ protected void computeTree(ScoreModelI sm, SimilarityParamsI scoreOptions) { - distances = sm.findDistances(seqData, scoreOptions); + + this.scoreModel = sm; + this.scoreParams = scoreOptions; + + distances = scoreModel.findDistances(seqData, scoreParams); makeLeaves(); -- 1.7.10.2