annotate bedsort.xml @ 11:b7f1d9f8f3bc

Uploaded
author xuebing
date Sat, 10 Mar 2012 07:59:27 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
1 <tool id="bedsort" name="sort">
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
2 <description>a interval file by chr and start</description>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
3 <command> head -n $skip $input > $output
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
4 &amp;&amp; tail -n+`expr $skip + 1` $input | sort -k1,1 -k2,2g >> $output
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
5 </command>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
6 <inputs>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
7 <param name="input" type="data" format="bed" label="Input interval file"/>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
8 <param name="skip" type="integer" value="0" label="top lines to skip" help="output directly, not sorted"/>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
9 </inputs>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
10 <outputs>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
11 <data format="bed" name="output" />
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
12 </outputs>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
13 <help>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
14
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
15 **Description**
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
16
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
17 Unix command used::
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
18
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
19 head -n $skip $input > $output
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
20 tail -n+`expr $skip + 1` $input | sort -k1,1 -k2,2g >> $output
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
21
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
22 </help>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
23 </tool>