annotate sortBed.xml @ 0:b8348686a0b9 draft

Imported from capsule None
author iuc
date Tue, 04 Nov 2014 01:45:04 -0500
parents
children 82aac94b06c3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
1 <tool id="bedtools_sortbed" name="Sort BED files" version="@WRAPPER_VERSION@.0">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
2 <description></description>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
3 <macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
4 <import>macros.xml</import>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
5 </macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
6 <expand macro="requirements" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
7 <expand macro="stdio" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
8 <command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
9 sortBed -i $input $option &gt; $output
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
10 </command>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
11 <inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
12 <param format="bed" name="input" type="data" label="Sort the following BED file"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
13 <param name="option" type="select" label="Sort by">
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
14 <!-- sort -k 1,1 -k2,2 -n a.bed -->
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
15 <option value="">chromosome, then by start position (asc)</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
16 <option value="-sizeA">feature size in ascending order.</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
17 <option value="-sizeD">feature size in descending order.</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
18 <option value="-chrThenSizeA">chromosome, then by feature size (asc).</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
19 <option value="-chrThenSizeD">chromosome, then by feature size (desc).</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
20 <option value="-chrThenScoreA">chromosome, then by score (asc).</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
21 <option value="-chrThenScoreD">chromosome, then by score (desc).</option>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
22 </param>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
23 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
24
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
25 <outputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
26 <data format="bed" name="output" metadata_source="input" label="${input.name} (as BED)"/>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
27 </outputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
28
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
29 <help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
30
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
31 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
32
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
33 Sorts a feature file by chromosome and other criteria.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
34
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
35
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
36 .. class:: warningmark
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
37
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
38 It should be noted that sortBed is merely a convenience utility, as the UNIX sort utility
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
39 will sort BED files more quickly while using less memory. For example, UNIX sort will sort a BED file
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
40 by chromosome then by start position in the following manner: sort -k 1,1 -k2,2 -n a.bed
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
41
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
42 @REFERENCES@
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
43
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
44 </help>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
45 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
46 </tool>