view sortBed.xml @ 29:6bb3cd018203 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 69394918e7a50dad3ae578e932cbac27b96e0d3b
author iuc
date Tue, 24 Jul 2018 11:49:55 -0400
parents 95a3b2c25bd1
children 4f7a5ccd2ae9
line wrap: on
line source

<tool id="bedtools_sortbed" name="SortBED" version="@WRAPPER_VERSION@.0">
    <description>order the intervals</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="stdio" />
    <command>
<![CDATA[
        sortBed
            -i '$input'
            $option
            > '$output'
]]>
    </command>
    <inputs>
        <param format="@STD_BEDTOOLS_INPUTS@" name="input" type="data" label="Sort the following @STD_BEDTOOLS_INPUT_LABEL@ file"/>
        <param name="option" type="select" label="Sort by">
            <!-- sort -k 1,1 -k2,2 -n a.bed -->
            <option value="">chromosome, then by start position (asc)</option>
            <option value="-sizeA">feature size in ascending order.</option>
            <option value="-sizeD">feature size in descending order.</option>
            <option value="-chrThenSizeA">chromosome, then by feature size (asc).</option>
            <option value="-chrThenSizeD">chromosome, then by feature size (desc).</option>
            <option value="-chrThenScoreA">chromosome, then by score (asc).</option>
            <option value="-chrThenScoreD">chromosome, then by score (desc).</option>
        </param>
    </inputs>
    <outputs>
        <data format_source="input" name="output" metadata_source="input" label="SortBed on ${input.name}"/>
    </outputs>
    <tests>
        <test>
            <param name="input" value="sortBed1.bed" ftype="bed" />
            <param name="option" value="" />
            <output name="output" file="sortBed_result1.bed" ftype="bed" />
        </test>
    </tests>
    <help>
<![CDATA[
**What it does**

Sorts a feature file by chromosome and other criteria.


.. class:: warningmark

It should be noted that sortBed is merely a convenience utility, as the UNIX sort utility
will sort BED files more quickly while using less memory. For example, UNIX sort will sort a BED file
by chromosome then by start position in the following manner: sort -k 1,1 -k2,2 -n a.bed

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