view tagBed.xml @ 32:4f7a5ccd2ae9 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit fc3616bd1463afef9681cd7c431ac29f79e37e74
author iuc
date Tue, 11 Dec 2018 14:01:26 -0500
parents 95a3b2c25bd1
children dde39ba9c031
line wrap: on
line source

<tool id="bedtools_tagbed" name="bedtools TagBed" version="@WRAPPER_VERSION@">
    <description>tag BAM alignments based on overlaps with interval files</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="stdio" />
    <command>
<![CDATA[
        #set files = '" "'.join( [ str( $file ) for $file in $inputB ] )
        bedtools tag
        -i "${inputA}"
        -files "${files}"
        -f $overlap
        $strand
        -tag "${tag}"
        $field
        > "${output}"
]]>
    </command>
    <inputs>
        <param name="inputA" format="bam" type="data" label="BAM file"/>
        <param name="inputB" format="@STD_BEDTOOLS_INPUTS@" multiple="True" type="data" label="@STD_BEDTOOLS_INPUT_LABEL@ file" />
        <expand macro="strand2" />
        <expand macro="overlap" />
        <param name="tag" type="text" value="YB" label="Specify the tag to use" />
        <param name="field" type="select" label="Field from the annotation files to populate tags?">
            <option value="-labels" selected="True">Labels</option>
            <option value="-scores">Scores</option>
            <option value="-names">Names</option>
            <option value="-labels -intervals">Intervals</option>
        </param>
    </inputs>
    <outputs>
        <data format="bam" name="output"/>
    </outputs>
    <tests>
        <test>
            <param name="inputA" value="srma_in3.bam" ftype="bam" />
            <param name="inputB" value="tagBed1.bed" ftype="bed" />
            <param name="field" value="-names" />
            <output name="output" file="tagBed_result1.bam" ftype="bam" />
        </test>
    </tests>
    <help>
<![CDATA[
**What it does**

Annotates a BAM file based on overlaps with multiple @STD_BEDTOOLS_INPUT_LABEL@ files on the intervals in an input bam file

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