annotate mytools/bedsort.xml @ 7:f0dc65e7f6c0

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