view biotransformer.xml @ 3:e5fcba090b10 draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/biotransformer commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
author recetox
date Thu, 12 Oct 2023 13:24:26 +0000
parents 90dc951da294
children 6cd2a9e6ac49
line wrap: on
line source

<tool id="biotransformer" name="BioTransformer" version="@TOOL_VERSION@+galaxy2" profile="21.09">
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="creator"/>
    <xrefs>
        <xref type="bio.tools">biotransformer</xref>
    </xrefs>
    <requirements>
        <requirement type="package" version="3.0_20230403">biotransformer</requirement>
        <requirement type="package" version="3.1.1">openbabel</requirement>
        <requirement type="package" version="1.1.1">pandas</requirement>
    </requirements>
    <command detect_errors="aggressive"><![CDATA[
        python3 '${__tool_directory__}/wrapper_biotransformer.py'
         -k $k
         -b $b
         -s $steps
         -t $tolerance
         -a
         -icsv $input_file
         -ocsv $output_file
         -ocsvDup $output_file2
         -ocsvDup2 $output_file3
          ]]>
    </command>
    <inputs>
        <param name="k" type="select" value="pred"
               label="The task to be permed [pred=prediction, cid=compound identification].">
            <option value="pred" selected="true">pred</option>
            <option value="cid">cid</option>
        </param>
        <param name="b" type="select" value="ecbased" label="The type of description.">
            <option value="ecbased" selected="true">EC-based</option>
            <option value="cyp450">CYP450</option>
            <option value="phaseII">Phase II</option>
            <option value="hgut">Human gut microbial</option>
            <option value="superbio">Human super transformer 1 (superbio)</option>
            <option value="allHuman">Human super transformer 2 (allHuman)</option>
            <option value="envimicro">Environmental microbial</option>
        </param>
        <param name="steps" type="integer" value="1" label=" The number of steps for the prediction."/>
        <param name="tolerance" type="float" value="0.01" label="Mass tolerance for metabolite identification."/>
        <param name="input_file" type="data" format="csv" label="Input CSV file."/>
    </inputs>

    <outputs>
        <data format="tsv" name="output_file" label="BioTransformer on ${on_string}"/>
        <data format="tsv" name="output_file2" label="BioTransformer with filter on ${on_string}"/>
        <data format="tsv" name="output_file3" label="BioTransformer with super filter on ${on_string}"/>
    </outputs>

    <tests>
        <test>
            <param name="k" value="pred"/>
            <param name="b" value="allHuman"/>
            <param name="steps" value="1"/>
            <param name="tolerance" value="0.01"/>
            <param name="input_file" value="smiles.csv"/>
            <output name="output_file">
                <assert_contents>
                    <has_size value="8600" delta="300"/>
                    <has_n_lines n="225" delta="10"/>
                </assert_contents>
            </output>
            <output name="output_file2">
                <assert_contents>
                    <has_size value="8600" delta="300"/>
                    <has_n_lines n="225" delta="10"/>
                </assert_contents>
            </output>
            <output name="output_file3">
                <assert_contents>
                    <has_size value="7400" delta="300"/>
                    <has_n_lines n="186" delta="10"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    <help>
        <![CDATA[
            @HELP@
        ]]>
    </help>
    <citations>
        <citation type="doi">https://doi.org/10.1186/s13321-018-0324-5</citation>
    </citations>
</tool>