Mercurial > repos > xuebing > bed_sort_with_header
view bed_sort_with_header.xml @ 0:4f17738e0254
Uploaded
author | xuebing |
---|---|
date | Sat, 31 Mar 2012 14:03:03 -0400 |
parents | |
children | 9ac963d8d5a3 |
line wrap: on
line source
<tool id="bed_sort_with_header" name="bed_sort_with_header"> <description>sort intervals with header lines</description> <command> head -n $skip $input > $output && tail -n+`expr $skip + 1` $input | sort -k1,1 -k2,2g >> $output </command> <inputs> <param name="input" type="data" format="bed" label="Input interval file"/> <param name="skip" type="integer" value="0" label="top lines to skip" help="output directly, not sorted"/> </inputs> <outputs> <data format="bed" name="output" /> </outputs> <help> **Description** Unix command used:: head -n $skip $input > $output tail -n+`expr $skip + 1` $input | sort -k1,1 -k2,2g >> $output </help> </tool>