upstream-extended/iuc/tools/bedtools/sortBed.xml
1<tool id="bedtools_sortbed" name="bedtools SortBED" version="@TOOL_VERSION@+galaxy1" profile="@PROFILE@">
2 <description>order the intervals</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="bio_tools" />
7 <expand macro="requirements" />
8 <expand macro="stdio" />
9 <command><![CDATA[
10sortBed
11-i '$input'
12$option
13@GENOME_FILE@
14> '$output'
15 ]]></command>
16 <inputs>
17 <param name="input" argument="-i" type="data" format="@STD_BEDTOOLS_INPUTS@" label="Sort the following @STD_BEDTOOLS_INPUT_LABEL@ file" />
18 <param name="option" type="select" label="Sort by">
19 <!-- sort -k 1,1 -k2,2 -n a.bed -->
20 <option value="">chromosome, then by start position (asc)</option>
21 <option value="-sizeA">feature size in ascending order.</option>
22 <option value="-sizeD">feature size in descending order.</option>
23 <option value="-chrThenSizeA">chromosome, then by feature size (asc).</option>
24 <option value="-chrThenSizeD">chromosome, then by feature size (desc).</option>
25 <option value="-chrThenScoreA">chromosome, then by score (asc).</option>
26 <option value="-chrThenScoreD">chromosome, then by score (desc).</option>
27 </param>
28 <expand macro="input_conditional_genome_file" optional="true" help="Sort according to the chromosomes declared in a genome file" />
29 </inputs>
30 <outputs>
31 <data name="output" format_source="input" metadata_source="input" label="SortBed on ${input.name}"/>
32 </outputs>
33 <tests>
34 <test>
35 <param name="input" value="sortBed1.bed" ftype="bed" />
36 <param name="option" value="" />
37 <output name="output" file="sortBed_result1.bed" ftype="bed" />
38 </test>
39 <test>
40 <param name="input" value="sortBed2.bed" ftype="bed" />
41 <param name="option" value="" />
42 <output name="output" file="sortBed_result2.bed" ftype="bed" />
43 </test>
44 <test>
45 <param name="input" value="sortBed2.bed" ftype="bed" />
46 <param name="option" value="" />
47 <conditional name="genome_file_opts">
48 <param name="genome_file_opts_selector" value="hist" />
49 <param name="genome" value="mm9.len" ftype="bed" />
50 </conditional>
51 <output name="output" file="sortBed_result3.bed" ftype="bed" />
52 </test>
53 </tests>
54 <help><![CDATA[
55**What it does**
56
57Sorts a feature file by chromosome and other criteria.
58
59
60.. class:: warningmark
61
62It should be noted that sortBed is merely a convenience utility, as the UNIX sort utility
63will sort BED files more quickly while using less memory. For example, UNIX sort will sort a BED file
64by chromosome then by start position in the following manner: sort -k 1,1 -k2,2 -n a.bed
65
66@REFERENCES@
67 ]]></help>
68 <expand macro="citations" />
69</tool>