Mercurial > repos > xuebing > bed_sort_with_header
comparison bed_sort_with_header.xml @ 1:9ac963d8d5a3 default tip
Uploaded
author | xuebing |
---|---|
date | Sat, 31 Mar 2012 23:24:58 -0400 |
parents | 4f17738e0254 |
children |
comparison
equal
deleted
inserted
replaced
0:4f17738e0254 | 1:9ac963d8d5a3 |
---|---|
3 <command> head -n $skip $input > $output | 3 <command> head -n $skip $input > $output |
4 && tail -n+`expr $skip + 1` $input | sort -k1,1 -k2,2g >> $output | 4 && tail -n+`expr $skip + 1` $input | sort -k1,1 -k2,2g >> $output |
5 </command> | 5 </command> |
6 <inputs> | 6 <inputs> |
7 <param name="input" type="data" format="bed" label="Input interval file"/> | 7 <param name="input" type="data" format="bed" label="Input interval file"/> |
8 <param name="skip" type="integer" value="0" label="top lines to skip" help="output directly, not sorted"/> | 8 <param name="skip" type="integer" value="1" label="top lines to skip" help="output directly, not sorted"/> |
9 </inputs> | 9 </inputs> |
10 <outputs> | 10 <outputs> |
11 <data format="bed" name="output" /> | 11 <data format="bed" name="output" /> |
12 </outputs> | 12 </outputs> |
13 <help> | 13 <help> |