diff --git a/lib/galaxy/tools/util/hyphy_util.py b/lib/galaxy/tools/util/hyphy_util.py
index b7ea388a48b..dfb7a9fcf43 100644
--- a/lib/galaxy/tools/util/hyphy_util.py
+++ b/lib/galaxy/tools/util/hyphy_util.py
@@ -11,10 +11,6 @@ def get_filled_temp_filename(contents):
fh.close()
return filename
-#Hard Coded hyphy path, this will need to be the same across the cluster
-HYPHY_PATH = "/home/universe/linux-i686/HYPHY"
-HYPHY_EXECUTABLE = os.path.join(HYPHY_PATH,"HYPHY")
-
NJ_tree_shared_ibf = """
COUNT_GAPS_IN_FREQUENCIES = 0;
methodIndex = 1;
@@ -1026,4 +1022,4 @@ _genomeScreenOptions ["3"] = "%s";
ExecuteAFile ("%s", _genomeScreenOptions);
""" % (input_filename, output_filename1, output_filename2, distance_metric, NJ_tree_filename)
- return get_filled_temp_filename(contents)
\ No newline at end of file
+ return get_filled_temp_filename(contents)
diff --git a/tools/hyphy/hyphy_branch_lengths_wrapper.py b/tools/hyphy/hyphy_branch_lengths_wrapper.py
index 36873739ab1..7e1126db542 100644
--- a/tools/hyphy/hyphy_branch_lengths_wrapper.py
+++ b/tools/hyphy/hyphy_branch_lengths_wrapper.py
@@ -4,9 +4,10 @@ import os, sys
from galaxy import eggs
from galaxy.tools.util import hyphy_util
-#Retrieve hard coded hyphy path, this will need to be the same across the cluster
-HYPHY_PATH = hyphy_util.HYPHY_PATH
-HYPHY_EXECUTABLE = hyphy_util.HYPHY_EXECUTABLE
+#Retrieve hyphy path, this will need to be the same across the cluster
+tool_data = sys.argv.pop()
+HYPHY_PATH = os.path.join( tool_data, "HYPHY" )
+HYPHY_EXECUTABLE = os.path.join( HYPHY_PATH, "HYPHY" )
#Read command line arguments
input_filename = os.path.abspath(sys.argv[1].strip())
diff --git a/tools/hyphy/hyphy_branch_lengths_wrapper.xml b/tools/hyphy/hyphy_branch_lengths_wrapper.xml
index f4619320abf..397fd195e39 100644
--- a/tools/hyphy/hyphy_branch_lengths_wrapper.xml
+++ b/tools/hyphy/hyphy_branch_lengths_wrapper.xml
@@ -3,7 +3,7 @@
Estimation
- hyphy_branch_lengths_wrapper.py $input1 $out_file1 "$tree" "$model" "$base_freq" "Global"
+ hyphy_branch_lengths_wrapper.py $input1 $out_file1 "$tree" "$model" "$base_freq" "Global" ${GALAXY_DATA_INDEX_DIR}
diff --git a/tools/hyphy/hyphy_dnds_wrapper.py b/tools/hyphy/hyphy_dnds_wrapper.py
index c574424fc82..f0d861f6d09 100644
--- a/tools/hyphy/hyphy_dnds_wrapper.py
+++ b/tools/hyphy/hyphy_dnds_wrapper.py
@@ -4,9 +4,10 @@ import os, sys
from galaxy import eggs
from galaxy.tools.util import hyphy_util
-#Retrieve hard coded hyphy path, this will need to be the same across the cluster
-HYPHY_PATH = hyphy_util.HYPHY_PATH
-HYPHY_EXECUTABLE = hyphy_util.HYPHY_EXECUTABLE
+#Retrieve hyphy path, this will need to be the same across the cluster
+tool_data = sys.argv.pop()
+HYPHY_PATH = os.path.join( tool_data, "HYPHY" )
+HYPHY_EXECUTABLE = os.path.join( HYPHY_PATH, "HYPHY" )
#Read command line arguments
input_filename = os.path.abspath(sys.argv[1].strip())
diff --git a/tools/hyphy/hyphy_dnds_wrapper.xml b/tools/hyphy/hyphy_dnds_wrapper.xml
index f4bd163d372..f9c537682cd 100644
--- a/tools/hyphy/hyphy_dnds_wrapper.xml
+++ b/tools/hyphy/hyphy_dnds_wrapper.xml
@@ -3,7 +3,7 @@
Estimation
- hyphy_dnds_wrapper.py $input1 $out_file1 "$tree" "$model" $analysis
+ hyphy_dnds_wrapper.py $input1 $out_file1 "$tree" "$model" $analysis ${GALAXY_DATA_INDEX_DIR}
diff --git a/tools/hyphy/hyphy_nj_tree_wrapper.py b/tools/hyphy/hyphy_nj_tree_wrapper.py
index f1f4e08e69d..7769066decb 100644
--- a/tools/hyphy/hyphy_nj_tree_wrapper.py
+++ b/tools/hyphy/hyphy_nj_tree_wrapper.py
@@ -4,9 +4,10 @@ import os, sys
from galaxy import eggs
from galaxy.tools.util import hyphy_util
-#Retrieve hard coded hyphy path, this will need to be the same across the cluster
-HYPHY_PATH = hyphy_util.HYPHY_PATH
-HYPHY_EXECUTABLE = hyphy_util.HYPHY_EXECUTABLE
+#Retrieve hyphy path, this will need to be the same across the cluster
+tool_data = sys.argv.pop()
+HYPHY_PATH = os.path.join( tool_data, "HYPHY" )
+HYPHY_EXECUTABLE = os.path.join( HYPHY_PATH, "HYPHY" )
#Read command line arguments
input_filename = os.path.abspath(sys.argv[1].strip())
diff --git a/tools/hyphy/hyphy_nj_tree_wrapper.xml b/tools/hyphy/hyphy_nj_tree_wrapper.xml
index 77099e9fe59..c8cf22e1e5a 100644
--- a/tools/hyphy/hyphy_nj_tree_wrapper.xml
+++ b/tools/hyphy/hyphy_nj_tree_wrapper.xml
@@ -3,7 +3,7 @@
Builder
- hyphy_nj_tree_wrapper.py $input1 $out_file1 $out_file2 $distance_metric
+ hyphy_nj_tree_wrapper.py $input1 $out_file1 $out_file2 $distance_metric ${GALAXY_DATA_INDEX_DIR}