view tools/mytools/makewindow.xml @ 1:cdcb0ce84a1b

author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
line wrap: on
line source

<tool id="makewindow" name="make-window">
  <description>around interval center </description>
  <command interpreter="python"> $input $output $window </command>
     <param name="input" type="data" format="interval" label="Input interval file"/>
     <param name="window" type="integer" value="1000" label="window size (bps)" />
    <data format="input" name="output" />


For each interval in the input file, take the middle point, then extend each side windowsize/2 bps.