comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:c12a49b04ca0
1 <tool id="mfassignr_isofiltr" name="MFAssignR IsoFiltR" version="@TOOL_VERSION@+galaxy0">
2 <description>
3 IsoFiltR separates likely isotopic masses from monoisotopic masses in a mass list.
4 </description>
5 <macros>
6 <import>macros.xml</import>
7 </macros>
8 <expand macro="creator" />
9 <expand macro="refs" />
10
11 <expand macro="requirements" />
12 <command detect_errors="exit_code"><![CDATA[
13 Rscript
14 -e 'source("${mfassignr_isofiltr}")'
15 ]]>
16 </command>
17 <configfiles>
18 <configfile name="mfassignr_isofiltr"><![CDATA[
19 peaks <- read.table("$peaks", header=TRUE, sep="\t")
20 result <- MFAssignR::IsoFiltR(
21 peaks = peaks,
22 SN = $SN,
23 Carbrat = $Carbrat,
24 Sulfrat = $Sulfrat,
25 Sulferr = $Sulferr,
26 Carberr = $Carberr
27 )
28
29 write.table(result[["Mono"]], file="$mono_out", sep="\t", row.names=FALSE)
30 write.table(result[["Iso"]], file="$iso_out", sep="\t", row.names=FALSE)
31 ]]></configfile>
32 </configfiles>
33 <inputs>
34 <expand macro="isofiltr_param"/>
35 </inputs>
36 <outputs>
37 <data name="mono_out" format="tabular" label="Monoisotopic Masses"/>
38 <data name="iso_out" format="tabular" label="Isotopic Masses"/>
39 </outputs>
40 <tests>
41 <test>
42 <param name="peaks" value="QC1_1_POS_500.tabular" ftype="tabular"/>
43 <output name="mono_out" file="isofiltr_output1.tabular" ftype="tabular"/>
44 <output name="iso_out" file="isofiltr_output2.tabular" ftype="tabular"/>
45 </test>
46 </tests>
47 <help>
48 IsoFiltR identifies and separates likely isotopic masses from monoisotopic masses in a mass list.
49 This should be done prior to formula assignment to reduce incorrect formula assignments.
50
51 The input is a table containing abundance and peak mass in the following format:
52
53 +--------------------+-------------------+------------------------+
54 | mz | area | rt |
55 +====================+===================+========================+
56 | 110.03486266079899 | 3410926.862054969 | 190.03735922916195 |
57 +--------------------+-------------------+------------------------+
58 | 110.05988136843429 | 7658687.858 | 241.17645551084158 |
59 +--------------------+-------------------+------------------------+
60 | ... | ... | ... |
61 +--------------------+-------------------+------------------------+
62 </help>
63 <expand macro="citations"/>
64 </tool>