annotate bed_sort_with_header.xml @ 0:4f17738e0254

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