annotate tools/mytools/bedsort.xml @ 1:cdcb0ce84a1b

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