<?xml version="1.0"?>
<tool id="roi_pca" name="ROI PCA Computation">
    <description>Compute PCA-based metric for records in an ROI file.</description>
    
    <command interpreter="Rscript">
    roi_pca.Rscript -i $input -o $output
    </command>

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

    <!--
      Output Files
    -->
    <outputs>
        <data name="output" format="roi" label="${input.name} + PCA" />
    </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>
</tool>
