view matchms_formatter.xml @ 10:1b09315a3f87 draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
author recetox
date Tue, 27 Jun 2023 14:25:59 +0000
parents 966b4134ad12
children ae45992f969e
line wrap: on
line source

<tool id="matchms_formatter" name="matchms scores formatter" version="@TOOL_VERSION@+galaxy0" profile="21.09">
    <description>reformat scores object of matchms to long format table</description>

    <macros>
        <import>macros.xml</import>
        <import>help.xml</import>
    </macros>
    <expand macro="creator"/>
    <edam_operations>
        <edam_operation>operation_0335</edam_operation>
    </edam_operations>
    <expand macro="bio.tools"/>

    <requirements>
        <requirement type="package" version="@TOOL_VERSION@">matchms</requirement>
        <requirement type="package" version="1.1.4">pandas</requirement>
        <requirement type="package" version="8.0.1">click</requirement>
    </requirements>
    
    <environment_variables>
        <environment_variable name="MPLCONFIGDIR">\$_GALAXY_JOB_TMP_DIR</environment_variable>
        <environment_variable name="XDG_CACHE_HOME">\$_GALAXY_JOB_TMP_DIR</environment_variable>
    </environment_variables>

    <command detect_errors="aggressive"><![CDATA[
        sh ${matchms_formatter_cli}
    ]]></command>

    <configfiles>
        <configfile name="matchms_formatter_cli">
            python3 ${__tool_directory__}/formatter.py \
            --sf '$scores' \
            --o '$output'
        </configfile>
    </configfiles>

    <inputs>
        <param label="Scores object" name="scores" type="data" format="json" help="matchms Scores json file." />
    </inputs>
    <outputs>
        <data label="${tool.name} on ${on_string}" name="output" format="tsv"/>
    </outputs>

    <tests>
        <test>
            <param name="scores" value="formatter/fill2_trunc_scores_with_metadata_match.json" ftype="json"/>
            <output name="output" value="formatter/fill2_formatted.tsv" ftype="tsv"
                checksum="md5$4f0d83da381b8a403d807d26a9dd0f34"/>
        </test>
        <test>
            <param name="scores" value="similarity/scores_test4_out.json" ftype="json"/>
            <output name="output" file="formatter/test4_formatted.tsv" ftype="tsv"/>
        </test>
    </tests>

    <help>
        @HELP_formatter@
        @HELP_matchms@
    </help>
</tool>