# HG changeset patch # User iuc # Date 1390494692 18000 # Node ID ac24388a0fda77ab6816d32638b8492eb3b9d4cc # Parent 6f4e56ea7568e22e90fe8a8cb4cfb072722f5f5e Uploaded diff -r 6f4e56ea7568 -r ac24388a0fda macs2_callpeak.xml --- a/macs2_callpeak.xml Thu Jan 23 07:56:46 2014 -0500 +++ b/macs2_callpeak.xml Thu Jan 23 11:31:32 2014 -0500 @@ -2,6 +2,7 @@ Call peaks from alignment results R_3_0_1 + MACS2_SCRIPT_PATH @@ -9,6 +10,7 @@ macs2_macros.xml + #import os #set $temp_stderr = 'macs2_stderr' macs2 callpeak @@ -62,10 +64,9 @@ ## TODO ## run R to create pdf from model script - ##if os.path.exists( os.path.join( tmp_dir, "MACS2_model.r" ) ): - ## cmdline = 'Rscript "MACS2_model.r" > "MACS2_model.r.log"' ) - ## proc = subprocess.Popen( args=cmdline, shell=True, cwd=tmp_dir ) - ## proc.wait() + #if os.path.exists( os.getcwd(), "MACS2_model.r" ) ): + Rscript "MACS2_model.r" > "MACS2_model.r.log"; + #end if ## move bed out to proper output file @@ -89,10 +90,9 @@ ##parse xls files to interval files as needed ##TODO is in working dir #if 'peaks_interval' in str($outputs).split(','): - #set $file = os.path.join( $tmp_dir, 'MACS2_peaks.xls' ) - #if os.path.exists( $file ): + #if os.path.exists( 'MACS2_peaks.xls' ): echo '#peaks file' > $output_xls_to_interval_peaks_file; - awk '$2-=1' $file >> $output_xls_to_interval_peaks_file; + awk '$2-=1' MACS2_peaks.xls >> $output_xls_to_interval_peaks_file; ##xls_to_interval( create_peak_xls_file, output_xls_to_interval_peaks_file, header = 'peaks file' ) #end if #end if @@ -104,7 +104,7 @@ then mkdir $output_extra_files.extra_files_path; mv MACS2* $output_extra_files.extra_files_path; - python /home/bag/projects/github/galaxytools/macs2/dir2html.py $output_extra_files.extra_files_path $temp_stderr > $output_extra_files; + python \$MACS2_SCRIPT_PATH/dir2html.py $output_extra_files.extra_files_path $temp_stderr > $output_extra_files; fi; #end if @@ -152,6 +152,7 @@ + @@ -195,6 +196,9 @@ 'summits' in outputs + + 'pdf' in outputs + 'peaks_interval' in outputs diff -r 6f4e56ea7568 -r ac24388a0fda tool_dependencies.xml --- a/tool_dependencies.xml Thu Jan 23 07:56:46 2014 -0500 +++ b/tool_dependencies.xml Thu Jan 23 11:31:32 2014 -0500 @@ -9,6 +9,9 @@ + + $REPOSITORY_INSTALL_DIR +