<?xml version="1.0"?>
<tool id="roi_report" name="ROI Overview Report">
    <description>ROI Overview Report</description>

    <command interpreter="python">
    roi_report.py --in-file $input --out-file "$out_file" --out-dir "$out_file.files_path"
    </command>

    <!--
      Input Files and Parameters
    -->
    <inputs>
        <param name="input" format="roi" type="data"
               label="ROI file to generate report for."/>
    </inputs>

    <!--
      Output Files
    -->
    <outputs>
        <data name="out_file" format="html" label="${input.name} Report" />
    </outputs>

    <!--
      Recognize errors by return code and not output to stderr.
    -->
    <stdio>
        <exit_code range="1:" level="fatal" />
        <exit_code range=":-1" level="fatal" />
    </stdio>

    <!--
      Tool Help
    -->
    <help>No help yet.</help>
    <!--
      Dependencies
    -->
    <requirements>
        <requirement type="python-module">Cheetah</requirement>
        <requirement type="python-module">matplotlib</requirement>
    </requirements>
</tool>
