annotate sort-bed.xml @ 0:baeee32175e8 draft default tip

planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
author iuc
date Tue, 08 Aug 2023 10:28:16 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
1 <tool id="bedops-sort-bed" name="bedops sort-bed" version="@TOOL_VERSION@" profile="22.01">
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
2 <macros>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
3 <token name="@TOOL_VERSION@">2.4.41</token>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
4 </macros>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
5 <requirements>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
6 <requirement type="package" version="@TOOL_VERSION@">bedops</requirement>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
7 </requirements>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
8 <command><![CDATA[
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
9 sort-bed
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
10 --max-mem "\${GALAXY_MEMORY_MB:-1024}M"
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
11 --tmpdir "\${_GALAXY_JOB_TMP_DIR:-.}"
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
12 $unique
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
13 $duplicates
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
14 #for file in $inputs:
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
15 '$file'
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
16 #end for
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
17 > '$output'
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
18 ]]></command>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
19 <inputs>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
20 <param name="inputs" type="data" format="bed" multiple="true"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
21 <param argument="--unique" type="boolean" truevalue="--unique" falsevalue="" label="Output only unique elements?"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
22 <param argument="--duplicates" type="boolean" truevalue="--duplicates" falsevalue="" label="Output only duplicate elements?"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
23 </inputs>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
24 <outputs>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
25 <data name="output" format_source="inputs" label="$tool.name: sorted output"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
26 </outputs>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
27 <tests>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
28 <test>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
29 <param name="inputs" value="unsorted.bed" ftype="bed"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
30 <output name="output" value="sorted_simpled.bed"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
31 </test>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
32 <test>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
33 <param name="inputs" value="unsorted.bed" ftype="bed"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
34 <param name="unique" value="true"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
35 <output name="output" value="sorted_unique.bed"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
36 </test>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
37 <test>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
38 <param name="inputs" value="unsorted.bed" ftype="bed"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
39 <param name="duplicates" value="true"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
40 <output name="output" value="sorted_duplicates.bed"/>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
41 </test>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
42 </tests>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
43 <help><![CDATA[
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
44 What this tool does
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
45 ===================
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
46
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
47 The sort-bed utility sorts BED files of any size, even larger than system memory. BED files that are in lexicographic-chromosome order allow BEDOPS utilities to work efficiently with data from any species without software modifications. Further, sorted files can be traversed very quickly.
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
48
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
49 Sorted BED order is defined first by lexicographic chromosome order, then ascending integer start coordinate order, and finally by ascending integer end coordinate order. To make the sort order unambiguous, a lexicographical sort is applied on fourth and subsequent columns, where present in the input BED dataset.
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
50
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
51
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
52 Input
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
53 =====
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
54
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
55 The sort-bed utility requires one or more three-column BED file(s). Support for common headers (such as UCSC BED track headers) is included, although headers will be stripped from the output.
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
56
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
57
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
58 Output
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
59 ======
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
60
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
61 Sort order is defined by a lexicographical sort on chromosome name, a numerical sort on start coordinates, a numerical sort on stop coordinates where there are start matches, and finally a lexicographical sort on the remainder of the BED element (if additional columns are present). Additional options may be specified to print only unique or duplicate elements.
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
62 ]]></help>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
63 <citations>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
64 <citation type="doi">https://doi.org/10.1093/bioinformatics/bts277</citation>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
65 </citations>
baeee32175e8 planemo upload for repository https://bedops.readthedocs.io/ commit e64b305e1ef7a6aa06a654f29701d7b43337c0ca
iuc
parents:
diff changeset
66 </tool>