comparison ReadFids_xml.xml @ 2:5e64657b4fe5 draft

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