Remove hardcoded HYPHY path. HYPHY should now be a directory under

tool-data (or in our case, a symlink to the real HYPHY dir).
This commit is contained in:
Nate Coraor
2008-04-18 19:01:57 +00:00
parent 68c35bed58
commit 8e46b08fb9
7 changed files with 16 additions and 17 deletions
+1 -5
View File
@@ -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)
return get_filled_temp_filename(contents)
+4 -3
View File
@@ -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())
+1 -1
View File
@@ -3,7 +3,7 @@
<description>Estimation</description>
<command interpreter="python">hyphy_branch_lengths_wrapper.py $input1 $out_file1 "$tree" "$model" "$base_freq" "Global"</command>
<command interpreter="python">hyphy_branch_lengths_wrapper.py $input1 $out_file1 "$tree" "$model" "$base_freq" "Global" ${GALAXY_DATA_INDEX_DIR}</command>
<inputs>
<page>
+4 -3
View File
@@ -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())
+1 -1
View File
@@ -3,7 +3,7 @@
<description>Estimation</description>
<command interpreter="python">hyphy_dnds_wrapper.py $input1 $out_file1 "$tree" "$model" $analysis</command>
<command interpreter="python">hyphy_dnds_wrapper.py $input1 $out_file1 "$tree" "$model" $analysis ${GALAXY_DATA_INDEX_DIR}</command>
<inputs>
<page>
+4 -3
View File
@@ -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())
+1 -1
View File
@@ -3,7 +3,7 @@
<description>Builder</description>
<command interpreter="python">hyphy_nj_tree_wrapper.py $input1 $out_file1 $out_file2 $distance_metric</command>
<command interpreter="python">hyphy_nj_tree_wrapper.py $input1 $out_file1 $out_file2 $distance_metric ${GALAXY_DATA_INDEX_DIR}</command>
<inputs>
<page>