comparison xcms_get_mass_eic.xml @ 49:f772a5caa86a

Added more options and better documentation. Added MsClust support for parsing XCMS alignment results. Improved output reports for XCMS wrappers. New tools.
author pieter.lukasse@wur.nl
date Wed, 10 Dec 2014 22:03:27 +0100
parents
children 35f506f30ae4
comparison
equal deleted inserted replaced
48:26b93438f30e 49:f772a5caa86a
1 <tool id="xcms_get_mass_eic" name="XCMS Get EICs" version="0.0.4">
2 <description> Extracts EICs for a given list of masses</description>
3 <requirements>
4 <requirement type="package" version="3.1.1">R_bioc_metams</requirement>
5 </requirements>
6 <command interpreter="Rscript">
7 xcms_get_mass_eic.r
8 $xsetData
9 $rtStart
10 $rtEnd
11 #if $massParameters.massParametersType == "window"
12 $massParameters.mzStart
13 $massParameters.mzEnd
14 -1
15 "."
16 #else
17 -1
18 -1
19 $massParameters.mzList
20 $massParameters.mzTolPpm
21 #end if
22 "$sampleNames"
23 $combineSamples
24 $rtPlotMode
25 $htmlReportFile
26 $htmlReportFile.files_path
27 $outLogFile
28 </command>
29 <inputs>
30
31 <param name="xsetData" type="data" format="rdata" label="xset xcms data file" help="E.g. output data file resulting from METAMS run"/>
32
33
34 <param name="rtStart" type="integer" value="" size="10" label="RT start" help="Start of Retention Time region to plot" />
35 <param name="rtEnd" type="integer" value="" size="10" label="RT end" help="End of Retention Time region to plot" />
36
37 <conditional name="massParameters">
38 <param name="massParametersType" type="select" size="50" label="Give masses as" >
39 <option value="list" selected="true">m/z list</option>
40 <option value="window" >m/z window</option>
41 </param>
42 <when value="list">
43 <param name="mzList" type="text" area="true" size="7x70" label="m/z list"
44 help="Comma or line-separated list of m/z values for which to plot an EIC. One EIC will be plotted for each m/z given here.">
45 <sanitizer>
46 <!-- this translates from line-separated to comma separated list -->
47 <valid/>
48 <mapping initial="none">
49 <add source="&#10;" target=","/>
50 <add source="&#13;" target=""/>
51 </mapping>
52 </sanitizer>
53 </param>
54 <param name="mzTolPpm" type="integer" size="10" value="5" label="m/z tolerance (ppm)" />
55 </when>
56 <when value="window">
57 <param name="mzStart" type="float" value="" size="10" label="m/z start" help="Start of m/z window" />
58 <param name="mzEnd" type="float" value="" size="10" label="m/z end" help="End of m/z window" />
59 </when>
60 </conditional>
61
62
63 <param name="sampleNames" type="text" area="true" size="10x70" label="List of sample names"
64 value="sampleName1,sampleName2,etc"
65 help="Comma or line-separated list of sample names. Here you can specify the subset of samples
66 to use for the EIC plots. NB: if your dataset has many samples, specifying a subset here can significantly speed up the processing time." >
67 <sanitizer>
68 <valid/>
69 <mapping initial="none">
70 <add source="&#10;" target=","/>
71 <add source="&#13;" target=""/>
72 </mapping>
73 </sanitizer>
74 </param>
75
76 <param name="combineSamples" type="select" size="50" label="Combine samples in EIC"
77 help="Combining samples means plot contains the combined EIC of a m/z in the different samples. When NOT combining, each plot
78 only contains the EIC of the m/z in the respectively given sample (the sample name from the sample list in the same position as the
79 m/z in the m/z list.). Tip: use Yes for visualizing EIC of grouped masses (MsClust or CAMERA groups), use No for visualizing EICs of the same mass in
80 the different samples.">
81 <option value="No" selected="true">No</option>
82 <option value="Yes" >Yes</option>
83 </param>
84 <param name="rtPlotMode" type="select" size="50" label="RT plot mode"
85 help="Select whether EIC should be on original or raw Retention Time">
86 <option value="raw" selected="true">Raw</option>
87 <option value="corrected" >Corrected</option>
88 </param>
89 </inputs>
90 <outputs>
91 <data name="outLogFile" format="txt" label="${tool.name} on ${on_string} - log (LOG)" hidden="True"/>
92 <data name="htmlReportFile" format="html" label="${tool.name} on ${on_string} - EIC(s) report (HTML)"/>
93 </outputs>
94 <tests>
95 <test>
96 </test>
97 </tests>
98 <help>
99
100 .. class:: infomark
101
102 This tool will plot EICs for a given list of masses (or a mass window) using XCMS's getEIC method.
103 It produces a HTML report showing the EIC plots, one for each given mass. The figure below shows an example of such an EIC plot.
104
105 .. image:: $PATH_TO_IMAGES/massEIC.png
106
107
108 </help>
109 <citations>
110 <citation type="doi">10.1021/ac051437y</citation> <!-- example
111 see also https://wiki.galaxyproject.org/Admin/Tools/ToolConfigSyntax#A.3Ccitations.3E_tag_set
112 -->
113 </citations>
114 </tool>