<tool id="hcluster_sg_parser" name="hcluster_sg_parser" version="0.1.1" force_history_refresh="True">
    <description>Converts hcluster_sg 3-column output into lists of ids</description>
    <command>
<![CDATA[
perl $__tool_directory__/hcluster_sg_parser.pl
$inputFile
]]>
    </command>
    <inputs>
        <param name="inputFile" type="data" format="tabular" label="hcluster output file in 3-column format" help="3-columns format: cluster_id cluster-size cluster-members" />
    </inputs>
    <outputs>
        <collection name="ids_lists" type="list" label="${tool.name} on ${on_string}">
            <discover_datasets pattern="(?P&lt;designation&gt;.+)_output\.txt" format="txt" />
        </collection>
    </outputs>
    <tests>
        <test>
            <param name="inputFile" ftype="tabular" value="hcluster_sg.tabular" />
            <output_collection name="ids_lists" type="list">
                <element name="0" file="0_output.txt" />
                <element name="1" file="1_output.txt" />
                <element name="2" file="2_output.txt" />
                <element name="3" file="3_output.txt" />
            </output_collection>
        </test>
    </tests>
    <help>
<![CDATA[
Simple wrapper for hcluster_sg output parser.
]]>
    </help>
    <citations>
    </citations>
</tool>

<tool id="hcluster_sg_parser" name="hcluster_sg_parser" version="0.1.1" force_history_refresh="True">
    <description>Converts hcluster_sg 3-column output into lists of ids</description>
    <command>
<![CDATA[
perl $__tool_directory__/hcluster_sg_parser.pl
$inputFile
]]>
    </command>
    <inputs>
        <param name="inputFile" type="data" format="tabular" label="hcluster output file in 3-column format" help="3-columns format: cluster_id cluster-size cluster-members" />
    </inputs>
    <outputs>
        <collection name="ids_lists" type="list" label="${tool.name} on ${on_string}">
            <discover_datasets pattern="(?P&lt;designation&gt;.+)_output\.txt" ext="txt" />
        </collection>
    </outputs>
    <tests>
        <test>
            <param name="inputFile" ftype="tabular" value="hcluster_sg.tabular" />
            <output_collection name="ids_lists" type="list">
                <element name="0" file="0_output.txt" ftype="txt" />
                <element name="1" file="1_output.txt" ftype="txt" />
                <element name="2" file="2_output.txt" ftype="txt" />
                <element name="3" file="3_output.txt" ftype="txt" />
            </output_collection>
        </test>
    </tests>
    <help>
<![CDATA[
Simple wrapper for hcluster_sg output parser.
]]>
    </help>
    <citations>
    </citations>
</tool>

Fix collection datasets output format.
Fix collection datasets output format.
