annotate mytools/bedsort.xml @ 0:39217fa39ff2

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