view encyclopedia_library_to_blib.xml @ 5:5c680d71a2d0 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/encyclopedia/tools/encyclopedia commit 880d327a6dce00616a0b0b58bcabcea7b58358cc"
author jjohnson
date Wed, 19 Aug 2020 08:36:49 -0400
parents 4850741d1dff
children
line wrap: on
line source

<tool id="encyclopedia_library_to_blib" name="ConvertLibraryToBlib" version="@VERSION@.0" python_template_version="3.5">
    <description>Convert EncyclopeDIA Library to BLIB for Skyline</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="aggressive"><![CDATA[
        EncyclopeDIA -convert -libtoblib
        -i '$i'
        -o '$output'
        #if $istest == 'yes'
        && sqlite3 -readonly '$output' 'SELECT distinct peptideSeq FROM RefSpectra;' > '$test_output'
        #end if
    ]]></command>
    <inputs>
        <param argument="-i" type="data" format="elib,dlib" label="Library: Chromatagram .ELIB or Spectrum .DLIB"/>
        <param name="istest" type="hidden" value="no"/>
    </inputs>
    <outputs>
        <data name="output" format="blib" label="${i.name} blib"/>
        <data name="test_output" format="txt" >
            <filter>istest == 'yes'</filter>
        </data>
    </outputs>
    <tests>
        <test>
            <param name="i" ftype="dlib" value="PrositLib.dlib"/>
            <param name="istest" value="yes"/>
            <output name="test_output" ftype="txt">
                <assert_contents>
                    <has_text text="AGGVLHDDENLWSFGK"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
        Convert EncyclopeDIA Library to BLIB for Skyline.
    ]]></help>
    <expand macro="citations" />
</tool>