2
|
1 <tool id="2021_05_eics_check_references" name="EICs -> checks reference mz" version="0.0.1">
|
|
2
|
|
3 <description> for 5 determined thresholds for m/z </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> <![CDATA[
|
|
16 $__root_dir__/packages/scilab-*/bin/scilab-cli -nb -quit -f ${script_file}
|
|
17 ]]>
|
|
18 </command>
|
|
19
|
|
20
|
|
21 <configfiles>
|
|
22 <configfile name="script_file"> <![CDATA[ exec("$__tool_directory__/src/mz_0_publi_features4_galaxy.sci",-1); ...
|
|
23 exec("$__tool_directory__/src/mz_6bis_durbin_watson.sci",-1); ...
|
|
24 lasterror(); ...
|
|
25 ...
|
|
26 x_in=glx_tab2div("${xtrmz4}"); ... // 20avril21
|
|
27 [x_bilan,x_synthese,x_tr_mz4]=mz_0_publi_features4_galaxy("${mzref}",x_in, ${electron}); ...
|
|
28 ... //[x_bilan,x_synthese,x_tr_mz4]=mz_0_publi_features4_galaxy("${mzref}", "${xtrmz4}", ${electron}); ...
|
|
29 ...
|
|
30 div2tab(x_bilan, "${xbilan}"); ...
|
|
31 save("${xsynthese}","x_synthese"); ...
|
|
32 save("${x_tr_mz_trouves}","x_tr_mz4"); ...
|
|
33 if ~isempty(lasterror(%f)); ...
|
|
34 write(0,lasterror()); ...
|
|
35 end; ]]>
|
|
36 </configfile>
|
|
37 </configfiles>
|
|
38
|
|
39
|
|
40 <inputs>
|
|
41 <param name="mzref" format="tabular" type="data" label="Reference m/z values" />
|
|
42 <param name="xtrmz4" format="tabular" type="data" label="EICs-mean" />
|
|
43 <param name="electron" size="5" value="0" type="integer" label="Electron mass" help="1=correction of the reference m/z values; 0=no correction" />
|
|
44 </inputs>
|
|
45
|
|
46
|
|
47 <outputs>
|
|
48 <data name="xbilan" format="tabular" label="m/z check-summary" />
|
|
49 <data name="xsynthese" format="mat" label="m/z check-details" />
|
|
50 <data name="x_tr_mz_trouves" format="mat" label="m/z check-matrix" />
|
|
51 </outputs>
|
|
52
|
|
53
|
|
54 <tests>
|
|
55
|
|
56 <test>
|
|
57 <param name="mzref" value="ref_mz.tab"/>
|
|
58 <param name="xtrmz4" value="EICs-merged.tab"/>
|
|
59 <output name="xbilan">
|
|
60 <assert_contents>
|
|
61 <has_text text="0.00034"/>
|
|
62 <has_text text="0.352"/>
|
|
63 </assert_contents>
|
|
64 </output>
|
|
65 </test>
|
|
66
|
|
67 </tests>
|
|
68 <help>
|
|
69
|
|
70
|
|
71 **Author** Jean-Claude Boulet (INRA).
|
|
72
|
|
73
|
|
74 ---------------------------------------------------
|
|
75
|
|
76 =======================================================================
|
|
77 CHECK REFERENCE MZ VALUES AMONG THE EICS-MEAN YIELDED BY THE PROCESSING
|
|
78 =======================================================================
|
|
79
|
|
80 -----------
|
|
81 Description
|
|
82 -----------
|
|
83
|
|
84 A matrix of EICs has been yielded by the function: MS-centroid -> EICs-individual or by the function: several EICs-shared -> one EICs-mean.
|
|
85
|
|
86 The m/z values of these EICs are compared to reference m/z values for 5 pre-determined threshold values for m/z: 0.0005 / 0.0010 / 0.0030 / 0.0050 / 0.0100.
|
|
87
|
|
88 This function is focused on the m/z values, it does not take into account the retention times.
|
|
89
|
|
90
|
|
91
|
|
92 ------
|
|
93 Inputs
|
|
94 ------
|
|
95
|
|
96 **reference m/z values**
|
|
97
|
|
98 A tabular file, to the div format (first columns and rows = labels):
|
|
99
|
|
100 - the first column corresponds to names of chemical compounds;
|
|
101
|
|
102 - the second column contains the exact (reference) m/z values.
|
|
103
|
|
104
|
|
105 **EICs-mean or individual**
|
|
106
|
|
107 A tabular matrix of (RT x m/z); lines are retention times and columns are EICs.
|
|
108
|
|
109
|
|
110 ----------
|
|
111 Parameters
|
|
112 ----------
|
|
113
|
|
114 **correction of the electron mass**
|
|
115
|
|
116 A correction can be applied to the reference m/z values.
|
|
117
|
|
118 - 0: no correction;
|
|
119
|
|
120 - 1: correction = subtraction of 0.00055 in the positive mode.
|
|
121
|
|
122
|
|
123
|
|
124 ------
|
|
125 Output
|
|
126 ------
|
|
127
|
|
128 **summary**
|
|
129
|
|
130 The main results
|
|
131
|
|
132
|
|
133 **details**
|
|
134
|
|
135 A .mat file
|
|
136
|
|
137
|
|
138 **extracted EICs**
|
|
139
|
|
140 An EIC is associated to a reference m/z value if the absolute difference of (EIC minus reference) is under a threshold.
|
|
141
|
|
142 Five threshold values have been pre-determined: 0.0005 / 0.0010 / 0.0030 / 0.0050 / 0.0100
|
|
143
|
|
144 This output contains a list of 5 data, each containing the EICs identified as reference m/z values according to a threshold.
|
|
145
|
|
146 </help>
|
|
147
|
|
148
|
|
149 <citations>
|
|
150
|
|
151 </citations>
|
|
152
|
|
153
|
|
154 </tool>
|