view mfassignr_isofiltr.xml @ 0:c12a49b04ca0 draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 1ff446e70246c4f538a8636d2bcdad11d9d342d6
author recetox
date Wed, 07 Aug 2024 14:27:51 +0000
parents
children 079ae9aa6ed5
line wrap: on
line source

<tool id="mfassignr_isofiltr" name="MFAssignR IsoFiltR" version="@TOOL_VERSION@+galaxy0">
    <description>
        IsoFiltR separates likely isotopic masses from monoisotopic masses in a mass list.
    </description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="creator" />
    <expand macro="refs" />

    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
        Rscript
            -e 'source("${mfassignr_isofiltr}")'
    ]]>
    </command>
    <configfiles>
        <configfile name="mfassignr_isofiltr"><![CDATA[
            peaks <- read.table("$peaks", header=TRUE, sep="\t")
            result <- MFAssignR::IsoFiltR(
                peaks = peaks,
                SN = $SN,
                Carbrat = $Carbrat,
                Sulfrat = $Sulfrat,
                Sulferr = $Sulferr,
                Carberr = $Carberr
            )
            
            write.table(result[["Mono"]], file="$mono_out", sep="\t", row.names=FALSE)
            write.table(result[["Iso"]], file="$iso_out", sep="\t", row.names=FALSE)
        ]]></configfile>
    </configfiles>
    <inputs>
        <expand macro="isofiltr_param"/>
    </inputs>
    <outputs>
        <data name="mono_out" format="tabular" label="Monoisotopic Masses"/>
        <data name="iso_out" format="tabular" label="Isotopic Masses"/>
    </outputs>
    <tests>
        <test>
            <param name="peaks" value="QC1_1_POS_500.tabular" ftype="tabular"/>
            <output name="mono_out" file="isofiltr_output1.tabular" ftype="tabular"/>
            <output name="iso_out" file="isofiltr_output2.tabular" ftype="tabular"/>
        </test>
    </tests>
    <help>
        IsoFiltR identifies and separates likely isotopic masses from monoisotopic masses in a mass list. 
        This should be done prior to formula assignment to reduce incorrect formula assignments.
        
        The input is a table containing abundance and peak mass in the following format:

        +--------------------+-------------------+------------------------+
        | mz                 | area              | rt                     |
        +====================+===================+========================+
        | 110.03486266079899 | 3410926.862054969 | 190.03735922916195     |
        +--------------------+-------------------+------------------------+
        | 110.05988136843429 | 7658687.858       | 241.17645551084158     |
        +--------------------+-------------------+------------------------+
        | ...                | ...               | ...                    |
        +--------------------+-------------------+------------------------+
    </help>
    <expand macro="citations"/>
</tool>