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

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

<tool id="metaintv" name="binned-average">
  <description>from bigwig</description>
  <command interpreter="python"> $bwfile $intvfile $nbin $outfile $outplot </command>
      <param name="intvfile" format="bed" type="data" label="BED file (require strand in column 6)"/>
      <param name="bwfile" format="bigwig" type="data" label="BigWig file"/> 
      <param name="nbin" type="integer" value="20" label="number of bins"/>
    <data format="tabular" name="outfile" label="${} on ${on_string}[data]"/>
        <data format="pdf" name="outplot" label="${} on ${on_string}[plot]"/>

.. class:: infomark

Each interval is binned and the average base-resolution score/coverage/density in the bigwig file is added as new columns appended at the end of the original file .


If your original data has the following format:


and you choose to divide each interval into 3 bins and return the mean scores of each bin, your output will look like this: