view encyclopedia_fasta_to_prosit_csv.xml @ 2:b2ae586dc13b draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/encyclopedia/tools/encyclopedia commit 0bb79ebbaf73fe6e902f6ef20cc9c9741063bf34
author galaxyp
date Tue, 17 May 2022 14:54:48 +0000
parents 469da8c03202
children
line wrap: on
line source

<tool id="encyclopedia_fasta_to_prosit_csv" name="ConvertFastaToPrositCSV" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5">
    <description>Create Prosit CSV Input From a Protein FASTA</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
        EncyclopeDIA -convert -fastatoprositcsv
        -i '$i'
        -numberOfThreadsUsed "\${GALAXY_SLOTS:-4}"
        -minCharge $minCharge
        -maxCharge $maxCharge
        -defaultCharge $defaultCharge
        -maxMissedCleavage $maxMissedCleavage
        -minMz $minMz
        -maxMz $maxMz
        -defaultNCE $defaultNCE
        #if $enzyme
            -enzyme '$enzyme'
        #end if
        -o '$output'
    ]]></command>
    <inputs>
        <param argument="-i" type="data" format="fasta" label="Protein Fasta database"/>
        <param argument="-minCharge" type="integer" value="2" min="1" max="6" label="minCharge"/>
        <param argument="-maxCharge" type="integer" value="3" min="1" max="6" label="maxCharge"/>
        <param argument="-defaultCharge" type="integer" value="3" min="1" max="4" label="defaultCharge"/>
        <param argument="-maxMissedCleavage" type="integer" value="1" min="0" max="3" label="maxMissedCleavage"/>
        <param argument="-minMz" type="float" value="396.4" min="150.0" max="1600.0" label="minMz"/>
        <param argument="-maxMz" type="float" value="1002.7" min="150.0" max="1600.0" label="maxMz"/>
        <param argument="-defaultNCE" type="integer" value="33" min="25" max="40" label="Normalized Collision Energy"/>
        <param argument="-enzyme" type="select" optional="true" label="Digestion Enzyme">
            <option value="Trypsin">Trypsin</option>
            <option value="Lys-C">Lys-C</option>
            <option value="Lys-N">Lys-N</option>
            <option value="Arg-C">Arg-C</option>
            <option value="Glu-C">Glu-C</option>
            <option value="CNBr">CNBr</option>
            <option value="Chymotrypsin">Chymotrypsin</option>
            <option value="Pepsin A">Pepsin A</option>
            <option value="No Enzyme">No Enzyme</option>
        </param>
    </inputs>
    <outputs>
        <data name="output" format="csv" label="${i.name} Prosit_input.csv"/>
    </outputs>
    <tests>
        <test>
            <param name="i" ftype="fasta" value="YeastProteinFasta5.fasta"/>
            <output name="output" ftype="csv">
                <assert_contents>
                    <has_text text="collision_energy"/>
                    <has_text text="EDFFTVFDSLLR"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
        Create Prosit CSV From FASTA
    ]]></help>
    <expand macro="citations" />
</tool>