view nucBed.xml @ 35:b28e0cfa7ba1 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit fe3f54a0d3edb83fcf6752e3b1524c582b4febd5"
author iuc
date Fri, 06 Sep 2019 14:29:59 -0400
parents dde39ba9c031
children 3e38c9b3214f
line wrap: on
line source

<tool id="bedtools_nucbed" name="bedtools NucBed" version="@TOOL_VERSION@">
    <description>profile the nucleotide content of intervals in a FASTA file</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="stdio" />
    <command><![CDATA[
bedtools nuc
$s
$seq
#if str($pattern):
    -pattern '$pattern'
    $C
#end if
-fi '$fasta'
-bed '$input'
> '$output'
    ]]></command>
    <inputs>
        <param name="input" argument="-bed" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file"/>
        <param name="fasta" argument="-fi" type="data" format="fasta" label="FASTA file"/>

        <param argument="-s" type="boolean" truevalue="-s" falsevalue="" checked="false"
            label="Profile the sequence according to strand" />
        <param argument="-seq" type="boolean" truevalue="-seq" falsevalue="" checked="false"
            label="Print the extracted sequence" />
        <param argument="-pattern" type="text" label="Report the number of times a user-defined sequence is observed" help="Case-sensitive by default">
            <validator type="regex" message="Sequence should only contain letters.">^[A-Za-z]*$</validator>
        </param>
        <param argument="-C" type="boolean" truevalue="-C" falsevalue="" checked="false"
            label="Ignore case when matching -pattern"/>
    </inputs>
    <outputs>
        <data name="output" format="tabular" />
    </outputs>
    <tests>
        <test>
            <param name="input" value="nucBed1.bed" ftype="bed" />
            <param name="fasta" value="nucBed1.fasta" ftype="fasta" />
            <output name="output" file="nucBed_result1.bed" ftype="tabular" />
        </test>
        <test>
            <param name="input" value="nucBed1.bed" ftype="bed" />
            <param name="fasta" value="nucBed1.fasta" ftype="fasta" />
            <param name="seq" value="True" />
            <output name="output" file="nucBed_result2.bed" ftype="tabular" />
        </test>
        <test>
            <param name="input" value="nucBed1.bed" ftype="bed" />
            <param name="fasta" value="nucBed1.fasta" ftype="fasta" />
            <param name="seq" value="True" />
            <param name="pattern" value="TAC" />
            <output name="output" file="nucBed_result3.bed" ftype="tabular" />
        </test>
    </tests>
    <help><![CDATA[
**What it does**

Profiles the nucleotide content of intervals in a fasta file.

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