view retip_apply.xml @ 7:a93b84244cb7 draft

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/retip commit 05cda7b2c60d0bb3d05ae22edf1c15dca6714432"
author recetox
date Mon, 08 Mar 2021 15:34:26 +0000
parents c550dae786fd
children eaccaebf11cb
line wrap: on
line source

<tool id="retip_apply" name="Retip prediction" version="@TOOL_VERSION@+galaxy3">
    <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_tsv.R --desc '$descr_train' --model '$model_h5' --inp '$input_smiles' --out 'output_file' --bad 'bad_file'
            #else
               /run.sh spell_h5.R --desc '$descr_train' --model '$model_h5' --inp '$input_smiles' --out 'output_file' --bad 'bad_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"/>
	<param name="smiles_col" type="text" label="Name of input column with SMILES" optional="true" value="qsar_smiles"/>
	<param name="name_col" type="text" label="Name of input column with some unique identifier" optional="true" value="recetox_cid"/>
    </inputs>
    <outputs>
        <data format_source="input_smiles" name="output_good" label="Predicted RT" from_work_dir="output_file"/>
        <data format_source="input_smiles" name="output_bad" label="Failed RT prediction" from_work_dir="bad_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="output_good" 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="output_good" 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>