view presto_parselog.xml @ 4:7f93403bc705 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/presto commit 1beb51cefbe9e6edc8930c7ae0421f28e7bb93c8
author iuc
date Fri, 04 Oct 2024 09:03:18 +0000
parents fd8f1ac582bd
children
line wrap: on
line source

<tool id="presto_parselog" name="pRESTO ParseLog" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>Create tabular report from pRESTO log file</description>
    <macros>
        <import>presto_macros.xml</import>
    </macros>
    <expand macro="bio_tools"/>
    
    <expand macro="requirements"/>
    
    <version_command>ParseLog.py --version</version_command>
    <command detect_errors="exit_code"><![CDATA[
        ParseLog.py 
          -l '$log_file'
          -f $fields
          --outdir=.
          --outname=tmp
    ]]></command>

    <inputs>
        <param argument="-l" name="log_file" type="data" format="txt" label="pRESTO log file" help="Detailed log file generated from a pRESTO tool."/>
        <param argument="-f" name="fields" type="text" label="Field(s)" help="Space-separated list of fields to extract.">
            <expand macro="text-regex-validator"/>
        </param>
    </inputs>

    <outputs>
        <data name="output" format="tsv" from_work_dir="tmp_table.tab"/>
    </outputs>
    
    <tests>
        <test>
            <param  name="log_file" value="presto_parselog_test_in.txt"/>
            <param  name="fields" value="ID QUALITY"/>
            <output name="output" file="presto_parselog_test_out.txt" sort="true"/>
        </test>
    </tests>
    
    <help><![CDATA[
Creates tab-separated tabular reports from pRESTO detailed log files.

See the `pRESTO online help <@PRESTO_BASE_URL@/en/stable>`_ for more information.

@HELP_NOTE@
    ]]></help>
    <expand macro="citations" />
</tool>