annotate secimtools/mzrt_match.xml @ 0:b54326490b4d draft

Upload 21.3.4.2 release
author malex
date Mon, 08 Mar 2021 20:55:03 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
1 <tool id="secimtools_mzrt_match" name="Mass to Charge Ratio - Retention Time (m/z - RT) Matching" version="@WRAPPER_VERSION@">
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
2 <description>across 2 files.</description>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
3 <macros>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
4 <import>macros.xml</import>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
5 </macros>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
6 <expand macro="requirements" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
8 mzrt_match.py
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
9 --anno1 $anno1
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
10 --anno2 $anno2
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
11 --uniqID1 $uniqID1
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
12 --uniqID2 $uniqID2
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
13 --mzID1 $mzID1
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
14 --mzID2 $mzID2
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
15 --rtID1 $rtID1
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
16 --rtID2 $rtID2
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
17 --all $all
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
18 --matched $matched
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
19 --unmatched1 $unmatched1
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
20 --unmatched2 $unmatched2
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
21 --summary $summary
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
22 --figure $figure
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
23 --mzcut $mz
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
24 --rtcut $rt
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
25 --name1 $name1
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
26 --name2 $name2
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
27 ]]></command>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
28 <inputs>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
29 <param name="anno1" type="data" format="tabular" label="File 1" help="Input dataset 1 in tab-separated wide format. If not tab separated see TIP below."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
30 <param name="anno2" type="data" format="tabular" label="File 2" help="Input dataset 2 in tab-separated wide format. If not tab separated see TIP below."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
31 <param name="uniqID1" type="text" size="30" value="" optional="false" label="Unique IDs for File 1" help="Name of the column in dataset 1 containing unique IDs."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
32 <param name="uniqID2" type="text" size="30" value="" optional="false" label="Unique IDs for File 2" help="Name of the column in dataset 2 containing unique IDs."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
33 <param name="mzID1" type="text" size="30" value="" optional="false" label="Mass/Charge column for File 1" help="Name of the column in dataset 1 containing m/z ratios."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
34 <param name="mzID2" type="text" size="30" value="" optional="false" label="Mass/Charge column for File 2" help="Name of the column in dataset 2 containing m/z ratios."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
35 <param name="rtID1" type="text" size="30" value="" optional="false" label="Retention Time column for File 1" help="Name of the column in dataset 1 containing RTs."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
36 <param name="rtID2" type="text" size="30" value="" optional="false" label="Retention Time column for File 2" help="Name of the column in dataset 2 containing RTs."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
37 <param name="mz" type="text" size="30" value="0.005" optional="true" label="Mass/Charge window" help="Window width for the m/z ratio (Default = 0.005)."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
38 <param name="rt" type="text" size="30" value="0.15" optional="true" label="Retention Time window" help="Window width for RT (Default = 0.15)."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
39 <param name="name1" type="text" size="30" value="F1" optional="true" label="Dataset 1 name" help="Short name for dataset 1 (By default F1)."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
40 <param name="name2" type="text" size="30" value="F2" optional="true" label="Dataset 2 name" help="Short name for dataset 2 (By default F2)."/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
41 </inputs>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
42 <outputs>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
43 <data format="tabular" name="all" label="${tool.name} on ${on_string}: All"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
44 <data format="tabular" name="matched" label="${tool.name} on ${on_string}: Matches"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
45 <data format="tabular" name="unmatched1" label="${tool.name} on ${on_string}: Unmatched 1"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
46 <data format="tabular" name="unmatched2" label="${tool.name} on ${on_string}: Unmatched 2"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
47 <data format="tabular" name="summary" label="${tool.name} on ${on_string}: Summary"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
48 <data format="pdf" name="figure" label="${tool.name} on ${on_string}: Venn"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
49 </outputs>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
50 <tests>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
51 <test>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
52 <param name="anno1" value="TEST0000_mzrt_first.tsv"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
53 <param name="anno2" value="TEST0000_mzrt_second.tsv"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
54 <param name="uniqID1" value="rowID_first"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
55 <param name="uniqID2" value="rowID_second"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
56 <param name="mzID1" value="MZ_first" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
57 <param name="mzID2" value="MZ_second" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
58 <param name="rtID1" value="RT_first" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
59 <param name="rtID2" value="RT_second" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
60 <output name="all" file="TEST0000_mzrt_match_all.tsv" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
61 <output name="matched" file="TEST0000_mzrt_match_matched.tsv" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
62 <output name="unmatched1" file="TEST0000_mzrt_match_unmatched_first.tsv" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
63 <output name="unmatched2" file="TEST0000_mzrt_match_unmatched_second.tsv" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
64 <output name="summary" file="TEST0000_mzrt_match_summary.tsv" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
65 <output name="figure" file="TEST0000_mzrt_match_figure.pdf" compare="sim_size" delta="10000" />
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
66 </test>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
67 </tests>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
68 <help><![CDATA[
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
69
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
70 @TIP_AND_WARNING@
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
71
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
72 **Tool Description**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
73
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
74 **NOTE:** This tool is primarily intended for matching mass spectrometry data processed using different parameter settings.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
75
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
76 Each metabolite (feature) is characterized by a mass to charge (m/z) ratio and retention time (RT).
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
77 After raw metabolomics data are processed (such as in mzMine), features are given internal identifers that are often different for every run or set of parameters, making it very difficult to impossible to directly compare results across different parameter setting using the internal identifiers.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
78 However, it is possible to link internal identifiers using the m/z ratio and RT for each feature since changing parameter settings are predicted to result in only minor variations in m/z ratio and RT.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
79 This tool matches two mass spectroscopy (MS) datasets generated using different parameter settings in mzMine.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
80
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
81 Each file should contain at least three columns:
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
82
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
83 (1) the m/z ratio,
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
84 (2) the RT and
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
85 (3) the internal identifier (feature ID).
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
86
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
87 A feature matches across datasets if the m/z ratio and RT values in both MS datasets fall within a user defined window surrounding the m/z ratio (m/z window) and RT (RT window).
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
88 The size of the windows can be specified by the user - the final window width is 2 times the specified value.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
89
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
90 **NOTE:** Since this is a 'many to many' merge where matching occurs within windows around the m/z ratio and the RT, a single internal identifier in one dataset may match many identifiers in the other dataset.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
91
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
92 **NOTE:** While initially designed for MS data, this tool could also be used for other types of data where there is a need to match unique identifiers across datasets using values in 2 columns.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
93 A detection window set to zero (0) would provide an exact match
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
94
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
95
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
96 --------------------------------------------------------------------------------
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
97
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
98 **Input**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
99
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
100 - Two input datasets are required.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
101
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
102 @MZRTFILE@
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
103
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
104 **Unique Feature ID for File 1**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
105
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
106 - Name of the column in annotation file 1 containing unique IDs.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
107
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
108 **Unique Feature ID for File 2**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
109
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
110 - Name of the column in annotation file 2 containing unique IDs.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
111
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
112 **Mass/Charge for File 1**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
113
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
114 - Name of the column in annotation file 1 containing m/z ratios.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
115
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
116 **Mass/Charge for File 2**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
117
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
118 - Name of the column in annotation file 2 containing m/z ratios.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
119
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
120 **Retention Time for File 1**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
121
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
122 - Name of the column on you annotation file 1 containing RTs.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
123
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
124 **Retention Time for File 2**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
125
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
126 - Name of the column on you annotation file 2 containing RTs.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
127
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
128 **Mass/Charge window value**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
129
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
130 - Window value for the m/z ratio (Default = 0.005).
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
131
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
132 **Retention Time window value**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
133
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
134 - Window value for the RT (Default = 0.15).
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
135
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
136 **File Name 1**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
137
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
138 - A short name to idenfiy your dataset 1.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
139
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
140 **File Name 2**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
141
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
142 - A short name to idenfiy your dataset 2.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
143
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
144
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
145 --------------------------------------------------------------------------------
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
146
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
147 **Output**
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
148
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
149 This tool outputs six files:
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
150
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
151 (1) a TSV All peak combinations file that contains all combinations of possible­features between File 1 and File 2.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
152 (2) a TSV Matched peak combinations file that contains only the features that match between File 1 and File 2.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
153 (3) a TSV Unmatched peak combinations in file1 that contains the features in File 1 that do not have a match in File 2.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
154 (4) a TSV Unmatched peak combinations in file2 that contains the features in File 2 that do not have a match in File 1.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
155 (5) a PDF file containing a set of 3 Venn diagrams to visualize matching between File 1 and File 2.
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
156
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
157
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
158 ]]></help>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
159 <expand macro="citations"/>
b54326490b4d Upload 21.3.4.2 release
malex
parents:
diff changeset
160 </tool>