view retip_apply.xml @ 3:cb939f736490 draft

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/retip commit 880667785eed143b5d777010c79a12a53a00af4f"
author recetox
date Fri, 09 Oct 2020 08:54:34 +0000
parents 679229b50d4d
children c550dae786fd
line wrap: on
line source

<tool id="retip_apply" name="Retip prediction" version="@TOOL_VERSION@+galaxy2">
    <description>is retention time predictor for Metabolomics</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <command detect_errors="exit_code"><![CDATA[
            #if $input_smiles.is_of_type('tabular')
               /run.sh spell.R '$descr_train' '$model_h5' '$input_smiles' 'output_file'
            #else
               /run.sh spell_h5.R '$descr_train' '$model_h5' '$input_smiles' 'output_file'
            #end if
      ]]>
    </command>
    <inputs>
        <param name="descr_train" label="Select Descriptors.h5 Dataset" type="data" format="h5" optional="false"/>
        <param name="model_h5" label="Select Model.h5 Dataset" type="data" format="h5" optional="false"/>
        <param format="tabular,h5" name="input_smiles" type="data" label="Select Input Smiles tsv or h5 Dataset"
               optional="false"/>
    </inputs>
    <outputs>
        <data format_source="input_smiles" name="output1" label="Predicted RT" from_work_dir="output_file"/>
    </outputs>
    <tests>
        <test expect_num_outputs="1">
            <param name="descr_train" value="descriptors.h5"/>
            <param name="model_h5" value="model.h5"/>
            <param name="input_smiles" value="input.tsv"/>
            <output name="output1" file="output.tsv" ftype="tabular" compare="sim_size" delta="50"/>
        </test>
        <test expect_num_outputs="1">
            <param name="descr_train" value="descriptors.h5"/>
            <param name="model_h5" value="model.h5"/>
            <param name="input_smiles" value="input.h5"/>
            <output name="output1" file="output.h5" ftype="h5" compare="sim_size" delta="50"/>
        </test>
    </tests>
    <help><![CDATA[
.. class:: infomark

This tool is used for **Retention Time Prediction** on a whole database.

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