# HG changeset patch
# User mini
# Date 1411734627 -7200
# Node ID 3e8541ece3c76e9fb7af10682ef516edb0714593
# Parent 87568e5a7d4fcbeb23f6b8411fd211f63c3fa15b
trying to fix environment variable 0.0.1
diff -r 87568e5a7d4f -r 3e8541ece3c7 strelka.xml
--- a/strelka.xml Fri Sep 26 13:24:13 2014 +0200
+++ b/strelka.xml Fri Sep 26 14:30:27 2014 +0200
@@ -2,6 +2,7 @@
Strelka good interface but no dependencies
+ SCRIPT_PATH
samtools
vcftools
@@ -35,6 +36,7 @@
--extraStrelkaArguments $configuration.extra_arguments.extraStrelkaArguments
#end if
#end if
+ --scriptPath \$SCRIPT_PATH
diff -r 87568e5a7d4f -r 3e8541ece3c7 strelka_wrapper.py
--- a/strelka_wrapper.py Fri Sep 26 13:24:13 2014 +0200
+++ b/strelka_wrapper.py Fri Sep 26 14:30:27 2014 +0200
@@ -26,7 +26,7 @@
conf_file = open(config_path, "w")
conf_file.write("[user]\n")
for option in args:
- if not option in ["tumorBam", "normalBam", "refFile", "configFile"] and args[option]!=None:
+ if not option in ["tumorBam", "normalBam", "refFile", "configFile", "scriptPath"] and args[option]!=None:
conf_file.write("%s=%s\n" % (option, args[option]))
conf_file.close()
@@ -64,17 +64,6 @@
def __main__():
#Parse Command Line OPTPARSE DEPRECIATED USE ARGPARSE INSTEAD
#MKTEMP DEPRECIATED USE MKDTlizations#EMP INSTEAD
-
- root_dir= "/home/galaxyusr/data/galaxy_dist/tools/strelka2"
- expected_dir="for_tests"
- job_dir=os.getcwd()
- analysis_dir=job_dir + "/StrelkaAnalysis"
- config_script=root_dir + "/configureStrelkaWorkflow.pl"
- tmp_dir = "tmp" #tempfile.mkdtemp( prefix='tmp-strelkaAnalysis-' )
- config_ini = "%s/config.ini" % (tmp_dir)
-
- print("root_dir: " + root_dir + "\njob_dir :" + job_dir + "\nanalysis_dir :" + analysis_dir + "\nconfig_script :" + config_script + "\ntmp_dir :" + tmp_dir + "\nconfig_ini :" + config_ini)
-
#manage parsing
parser = argparse.ArgumentParser()
parser.add_argument( '-t', '--tumorBam', help='path to tumor bam file', required = False )
@@ -101,8 +90,20 @@
parser.add_argument( '--extraStrelkaArguments', help='path to tumor bam file', required = False )
parser.add_argument( '--isSkipDepthFilters', help='path to tumor bam file', required = False )
parser.add_argument( '--maxInputDepth', help='path to tumor bam file', required = False )
+ parser.add_argument( '--scriptPath', help='path to tumor bam file', required = False )
args = parser.parse_args()
+ root_dir= SCRIPT_PATH
+ expected_dir="for_tests"
+ job_dir=os.getcwd()
+ analysis_dir=job_dir + "/StrelkaAnalysis"
+ config_script=root_dir + "/configureStrelkaWorkflow.pl"
+ tmp_dir = "tmp" #tempfile.mkdtemp( prefix='tmp-strelkaAnalysis-' )
+ config_ini = "%s/config.ini" % (tmp_dir)
+
+ print("root_dir: " + root_dir + "\njob_dir :" + job_dir + "\nanalysis_dir :" + analysis_dir + "\nconfig_script :" + config_script + "\ntmp_dir :" + tmp_dir + "\nconfig_ini :" + config_ini)
+
+
#verifying eveything's ok
if not os.path.isfile(config_script):
sys.exit("ERROR: The strelka workflow must be built prior to running. See installation instructions in '$root_dir/README'")
diff -r 87568e5a7d4f -r 3e8541ece3c7 tool_dependencies.xml
--- a/tool_dependencies.xml Fri Sep 26 13:24:13 2014 +0200
+++ b/tool_dependencies.xml Fri Sep 26 14:30:27 2014 +0200
@@ -1,5 +1,8 @@
+
+ $REPOSITORY_INSTALL_DIR
+
diff -r 87568e5a7d4f -r 3e8541ece3c7 tralalalala