view plotCoverage.xml @ 0:268ab1ca4091 draft

planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit 0a9265a12a303b54cdaa974e82e87c2ac60962ee-dirty
author bgruening
date Mon, 25 Jan 2016 20:21:48 -0500
parents
children edc6597ff21e
line wrap: on
line source

<tool id="deeptools_plot_coverage" name="plotCoverage" version="@WRAPPER_VERSION@.0">
    <description>plots a histogram of coverage on genomic regions </description>
    <macros>
        <token name="@BINARY@">plotCoverage</token>
        <import>deepTools_macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <command>
<![CDATA[
        #set files=[]
        #set labels=[]

        @multiple_input_bams@

        @BINARY@

            @THREADS@

            --plotFile '$outFileName'
            --bamfiles '#echo "' '".join($files)#'
            --labels '#echo "' '".join($labels)#'
            --plotFileFormat "$outFileFormat"

            #if $outRawCounts:
                --outRawCounts '$outFileRawCounts'
            #end if

            #if $advancedOpt.showAdvancedOpt == "yes":
                --numberOfSamples '$advancedOpt.numberOfSamples'
                $advancedOpt.skipZeros

                #if str($advancedOpt.region).strip() != '':
                    --region '$advancedOpt.region'
                #end if
                --numberOfSamples $advancedOpt.numberOfSamples

                #if $advancedOpt.plotTitle and str($advancedOpt.plotTitle.value) != "":
                    --plotTitle '$advancedOpt.plotTitle'
                #end if
                @ADVANCED_OPTS_READ_PROCESSING@
            #end if

]]>
    </command>
    <inputs>

        <expand macro="multiple_input_bams" />

        <conditional name="advancedOpt">
            <param name="showAdvancedOpt" type="select" label="Show advanced options" >
                <option value="no" selected="true">no</option>
                <option value="yes">yes</option>
            </param>
            <when value="no" />
            <when value="yes">
                <param argument="--numberOfSamples" type="integer" value="100000" min="1"
                   label="Number of samples"
                   help="Number of samples taken from the genome to compute the scaling factors."/>
                <expand macro="region_limit_operation" />
                <expand macro="read_processing_options" />
                <expand macro="skipZeros" />
                <expand macro="plotTitle" />
            </when>
        </conditional>

        <expand macro="input_image_file_format" />
        <param argument="--outRawCounts" type="boolean" label="Save raw counts (coverages) to a file" help=""/>


    </inputs>
    <outputs>
        <expand macro="output_image_file_format_not_nested" />
        <data format="tabular" name="outFileRawCounts" label="${tool.name} on ${on_string}: bin counts">
            <filter>outRawCounts is True</filter>
        </data>
    </outputs>
    <tests>
        <test>
            <param name="bamfiles" value="bowtie2-test1.bam,bowtie2-test1.bam" ftype="bam" />
            <!--param name="outFileFormat" value="png" /-->
            <param name="showAdvancedOpt" value="yes" />
            <param name="plotTitle" value="Test Title from Galaxy" />
            <param name="outRawCounts" value="True" />
            <output name="outFileRawCounts" file="plotCoverage_result1.tabular" ftype="tabular" />
            <output name="outFileName" file="plotCoverage_result1.png" ftype="png" compare="sim_size" delta="100" />
        </test>
    </tests>
    <help>
<![CDATA[
**What it does**

This tools samples 1 million positions in the genome to build
a coverage histogram. Multiple bam files are accepted but all should
correspond to the same genome assembly.


@REFERENCES@
]]>
    </help>
    <expand macro="citations" />
</tool>