<tool id="IntervalStats" name="Compute window statistics" version="1.0.0">
  <description>on data in a Wiggle file</description>
  <command interpreter="sh">
    galaxyToolRunner.sh ngs.IntervalStats -l $windows -o $output
      #for $input in $inputs
        ${input.file}
      #end for
  </command>
  <inputs>
      <repeat name="inputs" title="BigWig file">
        <param name="file" type="data" format="bigwig,wig" />
      </repeat>
      <param format="bed,bedgraph,gff" name="windows" type="data" label="List of intervals" />
      <!-- TODO: Implement other statistics
      <param name="stat" type="select" optional="true" label="For each window, compute the">
        <option value="mean">Mean</option>
        <option value="median">Median</option>
        <option value="max">Max</option>
        <option value="min">Min</option>
      </param> -->
  </inputs>
  <outputs>
      <data format="tabular" name="output" />
  </outputs>
  
<help>
.. class:: warningmark

This tool requires Wiggle/BigWig input data.
</help>
</tool>
