# HG changeset patch # User modencode-dcc # Date 1358537495 18000 # Node ID 522a47128d55cb048b95e374d69373cbd7e5bd5a # Parent 8599f64d8f3bbd2bdce5ac8427895d201203d52f Uploaded diff -r 8599f64d8f3b -r 522a47128d55 macs2_wrapper.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macs2_wrapper.xml Fri Jan 18 14:31:35 2013 -0500 @@ -0,0 +1,233 @@ + + + macs2 + macs2 + + + Model-based Analysis of ChIP-Seq + macs2_wrapper.py $options_file $outputs_file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + major_command['major_command_selector'] == 'callpeak' + + + major_command['major_command_selector'] == 'callpeak' + + + major_command['major_command_selector'] == 'callpeak' + + + major_command['major_command_selector'] == 'callpeak' + + + major_command['xls_to_interval'] is True + major_command['major_command_selector'] == 'callpeak' + + + major_command['xls_to_interval'] is True + major_command['input_control_file1'] is not None + major_command['major_command_selector'] == 'callpeak' + + + + major_command['major_command_selector'] == 'bdgcmp' + + + + + <% +import simplejson +%> +##======================================================================================= +#set $__outputs = { 'command':str( $major_command.major_command_selector ) } +#if str( $major_command.major_command_selector ) == 'callpeak': + #set $__outputs['output_bed_file'] = str( $output_bed_file ) + #set $__outputs['output_extra_file'] = str( $output_extra_files ) + #set $__outputs['output_extra_file_path'] = str( $output_extra_files.files_path ) + #set $__outputs['output_peaks_file'] = str( $output_peaks_file ) + #set $__outputs['output_narrowpeaks_file'] = str( $output_narrowpeaks_file ) + #set $__outputs['output_xls_to_interval_peaks_file'] = str( $output_xls_to_interval_peaks_file ) + #set $__outputs['output_xls_to_interval_negative_peaks_file'] = str( $output_xls_to_interval_negative_peaks_file ) +#end if +##======================================================================================= +#if str( $major_command.major_command_selector ) == 'bdgcmp': + #set $__outputs['output_bdgcmp_file'] = str( $output_bdgcmp_file ) +#end if + +${ simplejson.dumps( __outputs ) } + + <% +import simplejson +%> +##======================================================================================= +#set $__options = { 'experiment_name':str( $experiment_name ) } +##treatment/tag input files and format +#set $__options['input_chipseq'] = [ str( $major_command.input_chipseq_file1 ) ] +#set $__options['format'] = $major_command.input_chipseq_file1.extension.upper() + +##control/input files +#set $__options['input_control'] = [] +#if str( $major_command.input_control_file1 ) != 'None': + #set $_hole = __options['input_control'].append( str( $major_command.input_control_file1 ) ) +#end if + +#if str( $major_command.major_command_selector ) == 'callpeak': + #set $__options['command'] = str( "callpeak" ) + #set $__options['gsize'] = int( $major_command.gsize ) + #set $__options['bw'] = str( $major_command.bw ) + #set $__options['bdg'] = str( $major_command.bdg ) + #set $__options['xls_to_interval'] = str( $major_command.xls_to_interval ) + + ##advanced options + #if str( $major_command.advanced_options.advanced_options_selector ) == 'on': + #set $__options['mfoldlo'] = int( $major_command.advanced_options.mfoldlo ) + #set $__options['mfoldhi'] = int( $major_command.advanced_options.mfoldhi ) + #set $__options['nolambda'] = str( $major_command.advanced_options.nolambda ) + #else: + #set $__options['mfoldlo'] = int( "10" ) + #set $__options['mfoldhi'] = int( "30" ) + #set $__options['nolambda'] = str( "" ) + #end if + + ##enable xls file options + ##if str( $major_command.xls_to_interval ) == 'create': + ##set $__options['xls_to_interval'] = { 'peaks_file': str( $output_xls_to_interval_peaks_file ), 'negative_peaks_file': str( $output_xls_to_interval_negative_peaks_file ) } + ##end if + + ##pq value select options + #if str( $major_command.pq_options.pq_options_selector ) == 'qvalue': + #set $__options['qvalue'] = str( $major_command.pq_options.qvalue ) + #else: + #set $__options['pvalue'] = str( $major_command.pq_options.pvalue ) + #end if + + ##model options + #if str( $major_command.nomodel_type.nomodel_type_selector ) == 'nomodel': + #set $__options['nomodel'] = str( $major_command.nomodel_type.shiftsize ) + #end if +#end if +##======================================================================================= +#if str( $major_command.major_command_selector ) == 'bdgcmp': + #set $__options['command'] = str( "bdgcmp" ) + #set $__options['pseudocount'] = float( str( $major_command.pseudocount ) ) + #set $__options['m'] = str( $major_command.bdgcmp_options.bdgcmp_options_selector ) +#end if +##======================================================================================= + +${ simplejson.dumps( __options ) } + + + + + + +**What it does** + +With the improvement of sequencing techniques, chromatin immunoprecipitation followed by high throughput sequencing (ChIP-Seq) +is getting popular to study genome-wide protein-DNA interactions. To address the lack of powerful ChIP-Seq analysis method, we present a novel algorithm, named Model-based Analysis of ChIP-Seq (MACS), for +identifying transcript factor binding sites. MACS captures the influence of genome complexity to evaluate the significance of enriched ChIP regions, and MACS improves the spatial resolution of +binding sites through combining the information of both sequencing tag position and orientation. MACS can be easily used for ChIP-Seq data alone, or with control sample with the increase of specificity. + +View the original MACS2 documentation: https://github.com/taoliu/MACS/blob/master/README + +------ + +**Usage** + +**Peak Calling**: Main MACS2 Function to Call peaks from alignment results. + +**Compare .bdg files**: Deduct noise by comparing two signal tracks in bedGraph. + + +------ + +**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. + + \ No newline at end of file