view bamPEFragmentSize.xml @ 31:7889d260cc37 draft default tip

planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit 3bc1d1c6f4e28ac7ff8df79fe4e3f00a195938e6-dirty
author bgruening
date Wed, 21 Oct 2015 02:50:24 -0400
parents 5231f398d784
children
line wrap: on
line source

<tool id="deeptools_bamPEFragmentSize" name="bamPEFragmentSize" version="@WRAPPER_VERSION@.0">
    <description>Given a BAM file it samples several regions to estimate the paired-end fragment length</description>
    <macros>
        <token name="@BINARY@">bamPEFragmentSize</token>
        <import>deepTools_macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command>
<![CDATA[
        bamPEFragmentSize
            @THREADS@
            -bai ${bamInput.metadata.bam_index}
            #if $histogram:
                --histogram ./hist.png
            #end if
            '$bamInput'
            > $outfile
]]>
    </command>
    <inputs>
        <param name="bamInput" format="bam" type="data" label="BAM file"
            help="The BAM file must be sorted."/>
        <param name="histogram" type="boolean" truevalue="--histogram" falsevalue=""
            label="Get the distribion of fragment length as histogram"
            help="(--histogram)"/>
    </inputs>
    <outputs>
        <data name="outfile" format="txt"/>
        <data name="histogram_outfile" from_work_dir="hist.png" format="png">
            <filter>histogram is True</filter>
        </data>
    </outputs>
    <tests>
        <test>
            <param name="bamInput" value="bowtie2-test1.bam" ftype="bam" />
            <param name="histogram" value="True" />
            <output name="outfile" file="bamPEFragmentSize_result1.txt" ftype="txt" />
            <output name="histogram_outfile" file="bamPEFragmentSize_histogram_result1.png" ftype="png" compare="sim_size" />
        </test>
    </tests>
    <help>
<![CDATA[
**What it does**

Given a BAM file it samples several regions to estimate the paird-end fragment length.

-----

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