comparison 2018_07_mz_hdf5_to_dat.xml @ 0:4082283be00c draft

Uploaded
author jcb-mpl
date Mon, 26 Apr 2021 14:53:35 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4082283be00c
1 <tool id="2021_05_hdf5_to_dat" name="MS .h5 -> MS .dat " version="0.0.1">
2
3 <description> from an Orbitrap MS </description>
4
5
6 <requirements>
7 <requirement type="package" >scilab</requirement>
8 </requirements>
9
10
11 <stdio>
12 <exit_code range="1:" level="fatal" />
13 </stdio>
14
15
16 <command> <![CDATA[
17 if [ -d $__root_dir__/packages/scilab-6.1.0 ]; then $__root_dir__/packages/scilab-6.1.0/bin/scilab-cli -nb -quit -f $* < ${script_file}; else scilab-cli -nb -quit -f $* < ${script_file}; fi
18 ]]>
19 </command>
20
21
22 <configfiles>
23 <configfile name="script_file">
24 <![CDATA[ exec("$__tool_directory__/src/mz_hdf5tosci.sci",-1); ...
25 if ~isdef('pls') then ...
26 atomsSystemUpdate(); ...
27 atomsInstall('FACT'); ...
28 atomsLoad('FACT'); ...
29 end; ...
30 lasterror(); ...
31 res=mz_hdf5tosci("${filein}"); ...
32 save("${res}",'res'); ...
33 if ~isempty(lasterror(%f)) then ...
34 write(0,lasterror()); ...
35 end ]]>
36 </configfile>
37 </configfiles>
38
39
40 <inputs>
41 <param name="filein" format="h5" type="data" label="Mass spectrum, .h5 format" />
42 </inputs>
43
44
45 <outputs>
46
47 <data name="res" format="mat" label="${filein.name}.dat" />
48
49 </outputs>
50
51
52 <tests>
53 <test>
54 <param name="filein" value="VI2016_AC_4Areduit_1.h5"/>
55 <output name="res" file="VI2016_AC_4Areduit_1.dat" compare="sim_size" delta="500" />
56 </test>
57 </tests>
58
59 <help>
60
61
62 **Author** Jean-Claude Boulet (INRAE).
63
64
65 ---------------------------------------------------
66
67 =================
68 MS .h5 -> MS .dat
69 =================
70
71 -----------
72 Description
73 -----------
74
75 This function converts an Orbitrap HDF5 mass spectrum into a Scilab mass spectrum
76
77 -----
78 Input
79 -----
80
81 **an .h5 hrms**
82
83 Previously, Orbitrap devices yielded .raw files.
84
85 MSconvert selected MS1 and performed the conversion .raw -> .md5
86
87 Then HDF5View performed the conversion .md5 -> .h5
88 which is the format of the input file.
89
90
91 -------
92 Outputs
93 -------
94
95 **a .dat mass spectrum**
96
97 This is an HDF5 file whose structure is specific to Scilab.
98
99 It contains two fields:
100
101 - time: the retention times, a vector;
102
103 - mzdata: a list containing a MS1 spectrum (m/z + signals) for each retention time.
104
105
106 </help>
107
108 <citations>
109
110 </citations>
111
112
113
114 </tool>