# HG changeset patch
# User iuc
# Date 1398291951 14400
# Node ID 05aca18fd8dc064f61c2e41bf1a5da3e5befff97
# Parent ab352bb83cb2ed51159c98ac3e79cfbc1f828f4c
Uploaded
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_bdgbroadcall.xml
--- a/macs2_bdgbroadcall.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_bdgbroadcall.xml Wed Apr 23 18:25:51 2014 -0400
@@ -9,14 +9,15 @@
macs2 bdgbroadcall
- --ifile $infile
- --cutoff-peak $cutoffpeak
- --cutoff-link $cutofflink
- --min-length $minlen
- --lvl1-max-gap $LVL1MAXGAP
- --lvl2-max-gap $LVL2MAXGAP
- --ofile "macs2_bdgbroadcall.bdg";
- awk '!/^track name/' "macs2_bdgbroadcall.bdg" > $outfile
+ --ifile "${ infile }"
+ --cutoff-peak "${ cutoffpeak }"
+ --cutoff-link "${ cutofflink }"
+ --min-length "${ minlen }"
+ --lvl1-max-gap "${ LVL1MAXGAP }"
+ --lvl2-max-gap "${ LVL2MAXGAP }"
+ --ofile "macs2_bdgbroadcall.bdg"
+ &&
+ awk '!/^track name/' "macs2_bdgbroadcall.bdg" > "${ outfile }"
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_bdgcmp.xml
--- a/macs2_bdgcmp.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_bdgcmp.xml Wed Apr 23 18:25:51 2014 -0400
@@ -7,14 +7,14 @@
macs2 bdgcmp
- -t $infile_treatment
- -c $infile_control
+ -t "${ infile_treatment }"
+ -c "${ infile_control }"
- -m $bdgcmp_options.bdgcmp_options_selector
+ -m "${ bdgcmp_options.bdgcmp_options_selector }"
#if str($bdgcmp_options.bdgcmp_options_selector) in ['FE', 'logFE', 'logLR']:
- -p $bdgcmp_options.pseudocount
+ -p "${ bdgcmp_options.pseudocount }"
#end if
- --ofile $outfile
+ -o "${ outfile }"
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_bdgdiff.xml
--- a/macs2_bdgdiff.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_bdgdiff.xml Wed Apr 23 18:25:51 2014 -0400
@@ -7,15 +7,15 @@
macs2 bdgdiff
- --t1 $infile_pileup_cond1
- --t2 $infile_pileup_cond2
- --c1 $infile_control_cond1
- --c2 $infile_control_cond2
- --cutoff $cutoff
- --min-len $minlen
- --depth1 $depth1
- --depth2 $depth2
- --max-gap $maxgap
+ --t1 "${ infile_pileup_cond1 }"
+ --t2 "${ infile_pileup_cond2 }"
+ --c1 "${ infile_control_cond1 }"
+ --c2 "${ infile_control_cond2 }"
+ --cutoff "${ cutoff }"
+ --min-len "${ minlen }"
+ --depth1 "${ depth1 }"
+ --depth2 "${ depth2 }"
+ --max-gap "${ maxgap }"
--o-prefix MACS2
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_bdgpeakcall.xml
--- a/macs2_bdgpeakcall.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_bdgpeakcall.xml Wed Apr 23 18:25:51 2014 -0400
@@ -9,14 +9,15 @@
macs2 bdgpeakcall
- --ifile $infile
- --cutoff $cutoff
- --min-length $minlen
- --max-gap $maxgap
- $callsummits
- $notrackline
- --ofile "macs2_bdgpeakcall.bdg";
- awk '!/^track name/' "macs2_bdgpeakcall.bdg" > $outfile
+ --ifile "${ infile }"
+ --cutoff "${ cutoff }"
+ --min-length "${ minlen }"
+ --max-gap "${ maxgap }"
+ ${ callsummits }
+ ${ notrackline }
+ --ofile "macs2_bdgpeakcall.bdg"
+ &&
+ awk '!/^track name/' "macs2_bdgpeakcall.bdg" > "${ outfile }"
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_callpeak.xml
--- a/macs2_callpeak.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_callpeak.xml Wed Apr 23 18:25:51 2014 -0400
@@ -12,17 +12,17 @@
#import os
#set $temp_stderr = 'macs2_stderr'
- macs2 callpeak
+ (macs2 callpeak
--name "MACS2"
- -t #echo ' '.join( map(str, $input_treatment_file) )#
+ -t ${ ' '.join( map( lambda x:'"%s"' % ( x ), $input_treatment_file ) ) }
- #if ' '.join( map(str, $input_control_file) ) != 'None':
- -c #echo ' '.join( map(str, $input_control_file) )#
+ #if str( $input_control_file ) != 'None':
+ -t ${ ' '.join( map( lambda x:'"%s"' % ( x ), $input_control_file ) ) }
#end if
#for $ifile in $input_treatment_file:
- --format='$ifile.ext.upper()'
+ --format='${ ifile.ext.upper() }'
#end for
@effective_genome_size@
@@ -35,7 +35,7 @@
$advanced_options.call_summits
#if $advanced_options.broad_options.broad_options_selector == 'broad':
--broad
- --broad-cutoff='$advanced_options.broad_options.broad_cutoff'
+ --broad-cutoff='${ advanced_options.broad_options.broad_cutoff }'
#end if
#end if
@@ -46,44 +46,48 @@
## cutoff selection
#if str( $cutoff_options.cutoff_options_selector ) == 'qvalue':
- --qvalue $cutoff_options.qvalue
+ --qvalue "${ cutoff_options.qvalue }"
#elif str( $cutoff_options.cutoff_options_selector ) == 'pvalue':
#if str($cutoff_options.pvalue).strip() != '':
- --pvalue $cutoff_options.pvalue
+ --pvalue "${ cutoff_options.pvalue }"
#end if
#else:
- --foldenrichment $cutoff_options.foldenrichment
+ --foldenrichment "${ cutoff_options.foldenrichment }"
#end if
## model options
#if $nomodel_type.nomodel_type_selector == 'nomodel':
--nomodel
##--shiftsize '$nomodel_type.shiftsize'
- --extsize '$nomodel_type.extsize'
+ --extsize '${ nomodel_type.extsize }'
#end if
- 2> $temp_stderr;
-
+ 2> $temp_stderr)
#if 'peaks_bed' in str($outputs).split(','):
- awk '$2-=1' MACS2_peaks.xls | awk '!/^#/' | awk -v OFS='\t' '$1=$1' | tail -n+3 > $output_bed;
+ &&
+ awk '$2-=1' MACS2_peaks.xls | awk '!/^#/' | awk -v OFS='\t' '$1=$1' | tail -n+3 > "${ output_bed }"
#end if
## run R to create pdf from model script
#if 'pdf' in str($outputs).split(','):
- Rscript MACS2_model.r > MACS2_model.r.log;
+ &&
+ Rscript MACS2_model.r > MACS2_model.r.log
#end if
#if 'html' in str($outputs).split(','):
## if output files exists, move them to the extra_files_path and create a html result page linking to them
+ &&
+ (
count=`ls -1 MACS2* 2>/dev/null | wc -l`;
if [ \$count != 0 ];
then
- mkdir $output_extra_files.extra_files_path;
- cp MACS2* $output_extra_files.extra_files_path;
- python \$MACS2_SCRIPT_PATH/dir2html.py $output_extra_files.extra_files_path $temp_stderr > $output_extra_files;
+ mkdir "${ output_extra_files.extra_files_path }";
+ cp MACS2* "${ output_extra_files.extra_files_path }";
+ python "\$MACS2_SCRIPT_PATH/dir2html.py" "${ output_extra_files.extra_files_path }" $temp_stderr > "${ output_extra_files }";
fi;
+ )
#end if
-
+ &&
cat $temp_stderr 2>&1
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_filterdup.xml
--- a/macs2_filterdup.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_filterdup.xml Wed Apr 23 18:25:51 2014 -0400
@@ -7,17 +7,17 @@
macs2 filterdup
- -i $infile
- -o $outfile
+ -i "${ infile }"
+ -o "${ outfile }"
- --format '$infile.extension.upper()'
+ --format '${ infile.extension.upper() }'
@effective_genome_size@
@tag_size@
- --pvalue $pvalue
+ --pvalue "${ pvalue }"
#if str( $keep_dup_options.keep_dup_options_selector ) == "user":
- --keep-dup $keep_dup_options.user_keepdup
+ --keep-dup "${ keep_dup_options.user_keepdup }"
#else
- --keep-dup $keep_dup_options.keep_dup_options_selector
+ --keep-dup "${ keep_dup_options.keep_dup_options_selector }"
#end if
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_macros.xml
--- a/macs2_macros.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_macros.xml Wed Apr 23 18:25:51 2014 -0400
@@ -11,10 +11,10 @@
-
-
-
-
+
+
+
+
@@ -25,9 +25,9 @@
#if $effective_genome_size_options.effective_genome_size_options_selector == 'user_defined':
- --gsize $effective_genome_size_options.gsize
+ --gsize "${ effective_genome_size_options.gsize }"
#else:
- --gsize $effective_genome_size_options.effective_genome_size_options_selector
+ --gsize "${ effective_genome_size_options.effective_genome_size_options_selector }"
#end if
@@ -45,7 +45,7 @@
#if $tsize == -1.0:
- --tsize $tsize
+ --tsize "${ tsize }"
#end if
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_predictd.xml
--- a/macs2_predictd.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_predictd.xml Wed Apr 23 18:25:51 2014 -0400
@@ -10,18 +10,20 @@
macs2 predictd
- -i #echo ' '.join( map( str, $infiles) )#
+ -i ${ ' '.join( map( lambda x:'"%s"' % ( x ), $infiles ) ) }
@tag_size@
@effective_genome_size@
- --bw $band_width
- --mfold $mfoldlo $mfoldhi
+ --bw "${ band_width }"
+ --mfold "${ mfoldlo }" "${ mfoldhi }"
## remove the timepoint and strip the output
2>&1 | awk -F: '{print $4}' | awk '{$1=$1}1'
- > $outfile;
+ > "${ outfile }"
+
+ &&
- Rscript predictd;
+ Rscript predictd
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_randsample.xml
--- a/macs2_randsample.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_randsample.xml Wed Apr 23 18:25:51 2014 -0400
@@ -7,16 +7,16 @@
macs2 randsample
- -t $infile
- -o $outfile
+ -t "${ infile }"
+ -o "${ outfile }"
- --format '$infile.extension.upper()'
+ --format '${ infile.extension.upper() }'
@tag_size@
#if $method_options.method_options_selector == 'percentage':
- --percentage $method_options.percentage
+ --percentage "${ method_options.percentage }"
#else:
- --number $method_options.number
+ --number "${ method_options.number }"
#end if
diff -r ab352bb83cb2 -r 05aca18fd8dc macs2_refinepeak.xml
--- a/macs2_refinepeak.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/macs2_refinepeak.xml Wed Apr 23 18:25:51 2014 -0400
@@ -7,12 +7,12 @@
macs2 refinepeak
- -b $bed_infile
- -i $infile
- --format '$infile.extension.upper()'
- --cutoff $cutoff
- --window-size $winsize
- --ofile $outfile
+ -b "${ bed_infile }"
+ -i "${ infile }"
+ --format '${ infile.extension.upper() }'
+ --cutoff "${ cutoff }"
+ --window-size "${ winsize }"
+ --ofile "${ outfile }"
diff -r ab352bb83cb2 -r 05aca18fd8dc tool_dependencies.xml
--- a/tool_dependencies.xml Sat Feb 15 15:50:45 2014 -0500
+++ b/tool_dependencies.xml Wed Apr 23 18:25:51 2014 -0400
@@ -7,7 +7,7 @@
-
+
@@ -35,8 +35,11 @@
$INSTALL_DIR/lib/python
+
- export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python &&
+ export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python &&
+ export CFLAGS=-Qunused-arguments &&
+ export CPPFLAGS=-Qunused-arguments &&
python setup.py install --install-lib $INSTALL_DIR/lib/python --install-scripts $INSTALL_DIR/bin