view mz_to_sqlite.xml @ 5:8190f6083c0d draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mz_to_sqlite commit 24561502a9bed97f351af6a0438aa82414a351ab"
author galaxyp
date Sat, 30 Oct 2021 13:06:22 +0000
parents f5c632894818
children 705821bf30d2
line wrap: on
line source

<tool id="mz_to_sqlite" name="mz to sqlite" version="2.1.1+galaxy0">
    <description>Extract mzIdentML and associated proteomics datasets into a SQLite DB</description>
    <requirements>
        <requirement type="package" version="2.1.1">mztosqlite</requirement>
    </requirements>
    <stdio>
        <exit_code range="1:" level="fatal" description="Error Running mz_to_sqlite" />
    </stdio>
    <command>
        <![CDATA[
mz_to_sqlite
     -numthreads "\${GALAXY_SLOTS:-4}"
     -dbname 'sqlite.db'
     -mzid '$mzinput'
     #if len($scanfiles) > 0:
     #set $files = " ".join(["'"+ a.strip() + "'" for a in str($scanfiles).split(',')])
     -scanfiles $files
     #set $dfiles = [a for a in $scanfiles]
     -scanFilesDisplayName 
          #for $f in $dfiles
          '$f.display_name'  
          #end for
     #end if
     #if len($searchdbs) > 0:
     #set $dbFiles =  " ".join(["'"+ a.strip() + "'" for a in str($searchdbs).split(',')])
     -fasta $dbFiles
     #end if
]]>
    </command>
    <inputs>
        <param name="mzinput" type="data" format="mzid" label="Proteomics Identification files" />
        <param name="scanfiles" type="data" format="mgf" multiple="true" optional="true" label="Proteomics Spectrum files" />
        <param name="searchdbs" type="data" format="fasta,uniprotxml" multiple="true" optional="true" label="Proteomics Search Database Fasta" help="These can provide sequences and length for proteins if not already present in the mzIdentML input" />
    </inputs>
    <outputs>
        <data format="mz.sqlite" name="sqlite_db" label="${tool.name} on ${on_string}" from_work_dir="sqlite.db" />
    </outputs>
    <tests>
        <test>
            <param name="mzinput" value="test_id.mzid" ftype="mzid"></param>
            <param name="scanfiles" value="test.mgf" ftype="mgf"></param>
            <param name="searchdbs" value="test.fasta" ftype="fasta"></param>
            <output name="sqlite_db" file="sqlite.db" />
        </test>
    </tests>
    <help>
        <![CDATA[
** mz_to_sqlite  converts proteomics file formats to a SQLite database**

]]>
    </help>
    <citations></citations>
</tool>