Next changeset 1:9ac963d8d5a3 (2012-03-31) |
Commit message:
Uploaded |
added:
bed_sort_with_header.xml |
b |
diff -r 000000000000 -r 4f17738e0254 bed_sort_with_header.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bed_sort_with_header.xml Sat Mar 31 14:03:03 2012 -0400 |
b |
@@ -0,0 +1,23 @@ +<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> |