# HG changeset patch
# User bgruening
# Date 1390577751 18000
# Node ID 836578426f441e5775c86d294e9313924df54322
# Parent ac24388a0fda77ab6816d32638b8492eb3b9d4cc
Uploaded
diff -r ac24388a0fda -r 836578426f44 macs2_callpeak.xml
--- a/macs2_callpeak.xml Thu Jan 23 11:31:32 2014 -0500
+++ b/macs2_callpeak.xml Fri Jan 24 10:35:51 2014 -0500
@@ -3,7 +3,6 @@
R_3_0_1
MACS2_SCRIPT_PATH
-
@@ -29,7 +28,7 @@
--bw='$band_width'
- ##advanced options
+ ## advanced options
#if str( $advanced_options.advanced_options_selector ) == 'on':
--mfold $advanced_options.mfoldlo $advanced_options.mfoldhi
$advanced_options.nolambda
@@ -44,57 +43,28 @@
--mfold 10 30
#end if
- $bdg
+ ## With --bdg two additional output files will be generated.
+ #if 'bdg' in str($outputs).split(','):
+ --bdg
+ #end if
- ##pq value select options
+ ## pq value select options
#if str( $pq_options.pq_options_selector ) == 'qvalue':
--qvalue $pq_options.qvalue
#else:
--pvalue $pq_options.pvalue
#end if
- ##model options
+ ## model options
#if str( $nomodel_type.nomodel_type_selector ) == 'nomodel':
--nomodel --shiftsize='$nomodel_type.shiftsize'
#end if
2> $temp_stderr;
- #######################################################
- ## move files generated by callpeak command
- ## TODO
## run R to create pdf from model script
- #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
- ##set $file = os.path.join( $tmp_dir, "%s_peaks.bed" % $experiment_name )
- ##if os.path.exists( $file ):
- ## mv $file $output_bed_file
- ##end if
-
- ## OICR peak_xls file
- ##set $file = os.path.join( $tmp_dir, "%s_peaks.xls" % $experiment_name )
- ##if os.path.exists( $file ):
- ## mv $file output_peaks $output_peaks_file
- ##end if
-
- ### peaks.encodepeaks (narrowpeaks) file
- ##set $file = os.path.join ( $tmp_dir, "%s_peaks.encodePeak" % $experiment_name )
- ##if os.path.exists( $file ):
- ## mv $file $output_narrowpeaks_file
-
-
- ##parse xls files to interval files as needed
- ##TODO is in working dir
- #if 'peaks_interval' in str($outputs).split(','):
- #if os.path.exists( 'MACS2_peaks.xls' ):
- echo '#peaks 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
+ #if 'pdf' in str($outputs).split(','):
+ Rscript MACS2_model.r > MACS2_model.r.log;
#end if
#if 'html' in str($outputs).split(','):
@@ -103,7 +73,7 @@
if [ \$count != 0 ];
then
mkdir $output_extra_files.extra_files_path;
- mv MACS2* $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
@@ -119,7 +89,6 @@
-
@@ -146,13 +115,11 @@
+
+
+
-
-
-
-
-
-
+
@@ -188,10 +155,12 @@
'narrow' in outputs
- 'broad' in outputs
-
-
- 'gapped' in outputs
+
+ ((
+ advanced_options['advanced_options_selector'] == "on" and
+ advanced_options['broad_options']['broad_options_selector'] == "--broad"
+ ))
+
'summits' in outputs
@@ -199,8 +168,11 @@
'pdf' in outputs
-
- 'peaks_interval' in outputs
+
+ 'bdg' in outputs
+
+
+ 'bdg' in outputs
'html' in outputs
@@ -225,6 +197,9 @@
**Peak Calling**: Main MACS2 Function to Call peaks from alignment results.
+If you choose "Scores in bedGraph files" MACS will output the fragment pileup, control lambda, -log10-pvalue and -log10-qvalue scores in bedGraph files.
+
+
**Compare .bdg files**: Deduct noise by comparing two signal tracks in bedGraph.
diff -r ac24388a0fda -r 836578426f44 macs2_macros.xml
--- a/macs2_macros.xml Thu Jan 23 11:31:32 2014 -0500
+++ b/macs2_macros.xml Fri Jan 24 10:35:51 2014 -0500
@@ -1,7 +1,7 @@
- macs2
+ macs2
numpy
diff -r ac24388a0fda -r 836578426f44 macs2_predict.xml
--- a/macs2_predict.xml Thu Jan 23 11:31:32 2014 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-
- Predict 'd' or fragment size from alignment results
-
- R_3_0_1
-
-
-
- macs2_macros.xml
-
-
- macs2 predictd
- -i #echo ','.join($infiles)#
- --tsize $tsize
- @effective_genome_size@
- --bw $band_width
- --mfold $advanced_options.mfoldlo $advanced_options.mfoldhi
- > $outfile;
-
- Rscript predicted_model.R > $outfile_image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-**What it does**
-
-bdgdiff from macs2
-
-
-Note that pair-end data is not supposed to work with this command.
-
-
-@citation@
-
-
diff -r ac24388a0fda -r 836578426f44 macs2_predictd.xml
--- a/macs2_predictd.xml Thu Jan 23 11:31:32 2014 -0500
+++ b/macs2_predictd.xml Fri Jan 24 10:35:51 2014 -0500
@@ -1,5 +1,5 @@
-
- d or fragment size from alignment results
+
+ Predict 'd' or fragment size from alignment results
R_3_0_1
@@ -8,24 +8,19 @@
macs2_macros.xml
- macs2 predict
- -i #echo ','.join($infiles)#
+ macs2 predictd
+ -i #echo ','.join( map( str, $infiles) )#
--tsize $tsize
@effective_genome_size@
--bw $band_width
- --mfold $advanced_options.mfoldlo $advanced_options.mfoldhi
+ --mfold $mfoldlo $mfoldhi
> $outfile;
Rscript predicted_model.R > $outfile_image
-
+
-
-
-
-
-
+
@@ -55,12 +50,6 @@
Note that pair-end data is not supposed to work with this command.
-------
-
-**Citation**
-
-For the underlying tool, please cite Zhang Y, Liu T, Meyer CA, Eeckhoute J, Johnson DS, Bernstein BE, Nusbaum C, Myers RM, Brown M, Li W, Liu XS. Model-based analysis of ChIP-Seq (MACS). Genome Biol. 2008;9(9):R137.
-
-Integration of MACS2 with Galaxy performed by Ziru Zhou ( ziruzhou@gmail.com ). Please send your comments/questions to modENCODE DCC at help@modencode.org.
+@citation@
diff -r ac24388a0fda -r 836578426f44 tool_dependencies.xml
--- a/tool_dependencies.xml Thu Jan 23 11:31:32 2014 -0500
+++ b/tool_dependencies.xml Fri Jan 24 10:35:51 2014 -0500
@@ -12,10 +12,14 @@
$REPOSITORY_INSTALL_DIR
-
+
+
- https://pypi.python.org/packages/source/M/MACS2/MACS2-2.0.10.07132012.tar.gz
+ git clone --recursive https://github.com/taoliu/MACS.git
+ git checkout 7ccb571d2f2dcb5be1d75f323b1d17a59b926deb
+ git submodule update --recursive
+