From b35cda14fd0e4963446fdd78ab01b576b457c417 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Tue, 28 Nov 2017 18:06:57 +0000 Subject: [PATCH] JAL-2844 added offset to x coord to make it equal 0 at the root node --- src/jalview/ext/archaeopteryx/JalviewBinding.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/ext/archaeopteryx/JalviewBinding.java b/src/jalview/ext/archaeopteryx/JalviewBinding.java index e382364..07d45c5 100644 --- a/src/jalview/ext/archaeopteryx/JalviewBinding.java +++ b/src/jalview/ext/archaeopteryx/JalviewBinding.java @@ -241,7 +241,8 @@ public final class JalviewBinding // // System.out.println(relativeTreeWidth); - double threshold = x / longestBranch; + float xRoot = tree.getRoot().getXcoord(); + double threshold = ((double) x - xRoot) / longestBranch; System.out.println(threshold); List foundNodes = getNodesAboveThreshold(threshold, longestBranch, tree.getRoot()); -- 1.7.10.2