view randomBed.xml @ 41:7ab85ac5f64b draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 500a03281ea704abc7a16d9af63d67dbdcc5cd0b"
author iuc
date Thu, 04 Nov 2021 11:36:55 +0000
parents 3e38c9b3214f
children 07e8b80f278c
line wrap: on
line source

<tool id="bedtools_randombed" name="bedtools RandomBed" version="@TOOL_VERSION@" profile="@PROFILE@">
    <description>generate random intervals in a genome</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="bio_tools" />
    <expand macro="requirements" />
    <expand macro="stdio" />
    <command><![CDATA[
bedtools random
-g @GENOME_FILE@
-l $length
-n $intervals
#if str($seed.seed_choose) == "True":
    -seed $seed.seed
#end if
> '$output'
    ]]></command>
    <inputs>
        <expand macro="input_conditional_genome_file" />
        <param name="length" argument="-l" type="integer" value="100" label="The length of the intervals to generate" />
        <param name="intervals" argument="-n" type="integer" value="1000000" label="The number of intervals to generate" />
        <expand macro="seed" />
    </inputs>
    <outputs>
        <data name="output" format="bed" />
    </outputs>
    <tests>
        <test>
            <param name="genome_file_opts_selector" value="hist" />
            <param name="genome" value="mm9_chr1.len" ftype="tabular" />
            <param name="seed_choose" value="False" />
            <param name="length" value="5" />
            <param name="intervals" value="3" />
            <output name="output">
                <assert_contents>
                    <has_text_matching expression="chr1" />
                    <has_n_columns n="6" />
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
**What it does**

bedtools random will generate a random set of intervals in BED6 format. One can specify both the number (-n) and the size (-l) of the intervals that should be generated.

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