1
|
1 <tool id="2021_05_features_check_references" name="Features -> checks references" version="0.0.1">
|
|
2
|
|
3 <description> </description>
|
|
4
|
|
5 <requirements>
|
|
6 <requirement type="package" >scilab</requirement>
|
|
7 </requirements>
|
|
8
|
|
9
|
|
10 <stdio>
|
|
11 <exit_code range="1:" level="fatal" />
|
|
12 </stdio>
|
|
13
|
|
14
|
|
15 <command>
|
|
16 <![CDATA[
|
|
17 $__root_dir__/packages/scilab-*/bin/scilab-cli -nb -quit -f ${script_file}
|
|
18 ]]>
|
|
19 </command>
|
|
20
|
|
21
|
|
22 <configfiles>
|
|
23 <configfile name="script_file">
|
|
24 <![CDATA[ exec("$__tool_directory__/src/mz_9_compares_peaks.sci",-1); ...
|
|
25 lasterror(); ...
|
|
26 ... //load "${peaks_list}"; ... // 22avril21
|
|
27 peaks_list=glx_tab2div("${peaks_list}"); ...
|
|
28 ...
|
|
29 load "${peaks_detail}"; ...
|
|
30 x836=glx_tab2div("${peaks_reference}"); ...
|
|
31 diff_mz=${diff_mz}; ...
|
|
32 k=${k}; ...
|
|
33 x_peaks_final=mz_9_compares_peaks(peaks_list,peaks_detail,x836,diff_mz,k); ...
|
|
34 ...
|
|
35 div2tab(x_peaks_final,"${x_peaks_final}"); ...
|
|
36 if ~isempty(lasterror(%f)); ...
|
|
37 write(0,lasterror()); ...
|
|
38 end; ]]>
|
|
39 </configfile>
|
|
40 </configfiles>
|
|
41
|
|
42
|
|
43 <inputs>
|
|
44 <param name="peaks_list" format="tabular" type="data" label="Features list" help="from function EIC->peaks:features" />
|
|
45 <param name="peaks_detail" format="mat" type="data" label="Detailed features" help="from function EIC->peaks:features" />
|
|
46 <param name="peaks_reference" format="tabular" type="data" label="Reference features" help="2columns: mz and RT, with column and line headers" />
|
|
47 <param name="diff_mz" value="0.0050" type="float" label="Threshold for m/z values" />
|
|
48 <param name="k" value="1" type="integer" label="Number of extracted features for each reference feature" help="the closest to the reference peak" />
|
|
49
|
|
50 </inputs>
|
|
51
|
|
52
|
|
53 <outputs>
|
|
54 <data name="x_peaks_final" format="tabular" label="Identified features" />
|
|
55 </outputs>
|
|
56
|
|
57
|
|
58 <tests>
|
|
59
|
|
60 <test>
|
|
61 <param name="peaks_list" value="Peaks_list.tabular"/>
|
|
62 <param name="peaks_detail" value="Peaks_details.mat"/>
|
|
63 <param name="peaks_reference" value="ref_mz_rt.tab"/>
|
|
64 <param name="diff_mz" value="0.0050"/>
|
|
65 <param name="k" value="1"/>
|
|
66 <output name="x_peaks_final">
|
|
67 <assert_contents>
|
|
68 <has_text text="136.0616"/>
|
|
69 <has_text text="229.135"/>
|
|
70 </assert_contents>
|
|
71 </output>
|
|
72 </test>
|
|
73
|
|
74 </tests>
|
|
75
|
|
76
|
|
77 <help>
|
|
78
|
|
79
|
|
80 **Author** Jean-Claude Boulet (INRA).
|
|
81
|
|
82
|
|
83 ---------------------------------------------------
|
|
84
|
|
85 ==================================
|
|
86 FEATURES EXPERIMENTAL VS REFERENCE
|
|
87 ==================================
|
|
88
|
|
89
|
|
90 -----------
|
|
91 Description
|
|
92 -----------
|
|
93
|
|
94 This function checks reference features among experimental features.
|
|
95
|
|
96 -----------
|
|
97 Input files
|
|
98 -----------
|
|
99
|
|
100 **Features list**
|
|
101
|
|
102 The tabular file yielded by the function: EICs -> peaks:features
|
|
103
|
|
104
|
|
105 **Detailed features**
|
|
106
|
|
107 The HDF5-scilab file yielded by the function: EICs -> peaks:features
|
|
108
|
|
109
|
|
110 **Reference features**
|
|
111
|
|
112 A tabular file containing 2 columns: m/z values then retention times
|
|
113
|
|
114 Row labels are the names of the reference features, e.g. chemical compounds
|
|
115
|
|
116
|
|
117
|
|
118 ----------
|
|
119 Parameters
|
|
120 ----------
|
|
121
|
|
122 **Threshold for m/z values**
|
|
123
|
|
124 Observed features are associated to the reference features if 1) the difference in m/z values is under the threshold; 2) the reference RT falls within the range of the observed RTs.
|
|
125
|
|
126 Default: 0.0050
|
|
127
|
|
128 **Number of extracted features for each reference feature**
|
|
129
|
|
130 e.g. if the number is 2, the algorithm will extract the 2 experimental features closest to each reference feature.
|
|
131
|
|
132
|
|
133 ------
|
|
134 Output
|
|
135 ------
|
|
136
|
|
137
|
|
138 **Identified features**
|
|
139
|
|
140 A tabular file with the columns:
|
|
141
|
|
142 - name of the reference feature
|
|
143
|
|
144 - number of the reference feature in the input file: Reference features
|
|
145
|
|
146 - number of the experimental feature in the input files: Features List and Detailed features
|
|
147
|
|
148 - number of identifications= the number of reference features each experimental feature has been attributed to; target = 1
|
|
149
|
|
150 - m/z value of the reference feature
|
|
151
|
|
152 - m/z value of the experimental feature
|
|
153
|
|
154 - difference of m/z values
|
|
155
|
|
156 - RT of the reference feature
|
|
157
|
|
158 - RT of the experimental feature
|
|
159
|
|
160 - difference of RT
|
|
161
|
|
162 - signal of the experimental feature
|
|
163
|
|
164
|
|
165 </help>
|
|
166
|
|
167
|
|
168 <citations>
|
|
169
|
|
170 </citations>
|
|
171
|
|
172
|
|
173 </tool>
|
|
174
|
|
175
|