-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathReadFids_xml.xml
211 lines (149 loc) · 6.31 KB
/
ReadFids_xml.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<tool id="NMR_Read" name="NMR_Read" version="@WRAPPER_VERSION@">
<description> Read Bruker NMR raw files</description>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="requirements" />
<expand macro="stdio"/>
<command>
## Wrapper
Rscript $__tool_directory__/ReadFids_wrapper.R
## File input
fidzipfile $fidzipfile
## Title line
title_line $title_line
## Subdirectories
subdirectories $subdirectories
## Use subdirectories names as FID names?
dirs_names $dirs_names
## Outputs
dataMatrix $dataMatrix
sampleMetadata $sampleMetadata
logOut $logOut
graphOut $graphOut
</command>
<inputs>
<param name="fidzipfile" type="data" format="no_unzip.zip,zip" label="Bruker FID file" />
<param name="title_line" label="Specify the line in the title file to recover the FID names (usually in pdata/1/title)" type="integer" value="1" size="100" help="Default value is line 1"/>
<param name="subdirectories" label="Presence of subdirectories?" type="select" help="Select 'FALSE' when there is no subdirectories, 'TRUE' if there are subdirectories">
<option value="FALSE"> FALSE </option>
<option value="TRUE"> TRUE </option>
</param>
<param name="dirs_names" label="Use (sub)directories names as FID names?" type="select" help="Select 'TRUE' to use the subdirectories names as the FID names (instead of looking in the title file)">
<option value="FALSE"> FALSE </option>
<option value="TRUE"> TRUE </option>
</param>
</inputs>
<outputs>
<data format="tabular" name="dataMatrix" label="${tool.name}_dataMatrix" />
<data format="tabular" name="sampleMetadata" label="${tool.name}_sampleMetadata" />
<data format="txt" name="logOut" label="${tool.name}_log" />
<data format="pdf" name="graphOut" label="${tool.name}_graph" />
</outputs>
<tests>
<test>
<param name="fidzipfile" value="MTBLS1.zip" ftype="zip" />
<param name="title_line" value="1" />
<param name="subdirectories" value="TRUE" />
<param name="dirs_names" value="TRUE" />
<output name="dataMatrix" value="NMR_ReadFids_dataMatrix.tabular" />
</test>
</tests>
<help>
@HELP_AUTHORS@
=============
NMR Read
=============
-----------
Description
-----------
Nuclear Magnetic Resonance Bruker files reading (from the PEPS-NMR R package (https://github.com/ManonMartin/PEPSNMR))
-----------------
Workflow position
-----------------
**Upstream tools**
========================= ================= =======
Name output file format
========================= ================= =======
NA NA NA
========================= ================= =======
**Downstream tools**
+-----------------------+--------------------------+--------+
| Name | Output file | Format |
+=======================+==========================+========+
|NMR_Preprocessing | dataMatrix | Tabular|
+-----------------------+--------------------------+--------+
|NMR_Preprocessing | sampleMetadata | Tabular|
+-----------------------+--------------------------+--------+
|NMR_Preprocessing | NMR_Read_log | TXT |
+-----------------------+--------------------------+--------+
|NMR_Preprocessing | NMR_Read_graph | PDF |
+-----------------------+--------------------------+--------+
|NMR_Alignement | dataMatrix | Tabular|
+-----------------------+--------------------------+--------+
|NMR_Bucketing | dataMatrix | Tabular|
+-----------------------+--------------------------+--------+
|Normalization | dataMatrix | Tabular|
+-----------------------+--------------------------+--------+
|Univariate | variableMetadata | Tabular|
+-----------------------+--------------------------+--------+
|Multivariate | sampleMetadata | Tabular|
+-----------------------+--------------------------+--------+
| | variableMetadata | Tabular|
+-----------------------+--------------------------+--------+
-----------
Input files
-----------
+---------------------------+-----------------+
| Parameter : num + label | Format |
+===========================+=================+
| 1 : Choose your inputs | zip |
+---------------------------+-----------------+
**Choose your inputs**
| Zip file (recommended) of FID Bruker files: you can put a zip file containing your FID Bruker files: myinputs.zip.
----------
Parameters
----------
FID Title line
| Line in the acqus file to find the FID title (name)
|
subdirectories
| Organization of individual's files
| TRUE: will search inside subdirectories for FIDs and will merge them to have unique FID and info matrices.
|
dirs_names
| Use the (sub)directories names as FID names?
|
------------
Output files
------------
NMR_Read_dataMatrix
| tabular output
| Data matrix with n rows (samples) and p columns (time) containing the raw FIDs.
|
NMR_Read_sampleMetadata
| tabular output
| Data matrix with n rows (samples) containing the acquisition parameters for each sample.
|
NMR_Read_log
| Text output
| Contains warnings
|
NMR_Read_graph
| pdf output
| line plots of FID
|
Creating the zip file
-----------------------
.. class:: warningmark you must use the 7Zip software (http://www.7-zip.org/) to zip under Windows.
Must contain at least the following files for every sample: fid, acqu and acqus
.. image:: ./static/images/ReadFids.png
**Possible structure and parameters values:**
(1) use title file and presence of sub-directories: set the FID Title line, subdirectories = TRUE, dirs_names = FALSE
(2) use title file and no sub-directories: set the FID Title line, subdirectories = FALSE, dirs_names = FALSE
(3) don't use title file and presence of sub-directories: subdirectories = TRUE, dirs_names = TRUE
(4) don't use title file and no sub-directories: subdirectories = FALSE, dirs_names = TRUE
@HELP_CHANGELOG@
</help>
<expand macro="citation" />
</tool>