Mercurial > repos > lecorguille > xcms_fillpeaks
annotate abims_xcms_fillPeaks.xml @ 5:cd351af95d14 draft
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
author | lecorguille |
---|---|
date | Mon, 25 Apr 2016 11:15:12 -0400 |
parents | 2edfa5e1f719 |
children | 465623d2f6fa |
rev | line source |
---|---|
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
1 <tool id="abims_xcms_fillPeaks" name="xcms.fillPeaks" version="2.0.6"> |
0 | 2 |
3 <description>Integrate the signal in the region of that peak group not represented and create a new peak</description> | |
4 | |
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
5 <macros> |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
6 <import>macros.xml</import> |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
7 </macros> |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
8 |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
9 <expand macro="requirements"/> |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
10 <expand macro="stdio"/> |
0 | 11 |
3 | 12 <command><![CDATA[ |
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
13 @COMMAND_XCMS_SCRIPT@ |
3 | 14 xfunction fillPeaks |
15 image $image | |
16 | |
17 xsetRdataOutput $xsetRData | |
18 | |
19 method $method | |
20 | |
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
21 #if $zip_file: |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
22 zipfile $zip_file |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
23 #end if |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
24 @COMMAND_LOG_EXIT@ |
3 | 25 |
26 ]]></command> | |
0 | 27 |
28 <inputs> | |
29 <param name="image" type="data" format="rdata.xcms.group,rdata" label="xset RData file" help="output file from another function xcms (group)" /> | |
30 <param name="method" type="select" label="Filling method" help="[method] See the help section below"> | |
31 <option value="chrom" selected="true">chrom</option> | |
32 <option value="MSW" >MSW</option> | |
33 </param> | |
3 | 34 <!-- To pass planemo test --> |
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
35 <param name="zip_file" type="data" format="no_unzip.zip,zip" label="Zip file" help="Use only if you get a message which say that your original zip file have been deleted on the server." /> |
0 | 36 </inputs> |
37 | |
38 <outputs> | |
39 <data name="xsetRData" format="rdata.xcms.fillpeaks" label="${image.name[:-6]}.fillPeaks.RData" /> | |
3 | 40 <data name="log" format="txt" label="xset.log.txt" hidden="true" /> |
0 | 41 </outputs> |
42 | |
43 <tests> | |
5
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
44 <!--<test> |
0 | 45 <param name="image" value="xset.group.retcor.group.RData"/> |
46 <param name="method" value="chrom"/> | |
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
47 <param name="zip_file" value="sacuri_dir_root.zip" ftype="zip" /> |
3 | 48 <output name="log"> |
49 <assert_contents> | |
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
50 <has_text text="object with 4 samples" /> |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
51 <has_text text="Time range: 0.2-1140.1 seconds (0-19 minutes)" /> |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
52 <has_text text="Mass range: 50.0021-999.9863 m/z" /> |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
53 <has_text text="Peaks: 199718 (about 49930 per sample)" /> |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
54 <has_text text="Peak Groups: 48958" /> |
3 | 55 <has_text text="Sample classes: bio, blank" /> |
56 </assert_contents> | |
57 </output> | |
5
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
58 </test>--> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
59 <test> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
60 <param name="image" value="faahKO.xset.group.retcor.group.RData"/> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
61 <param name="method" value="chrom"/> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
62 <param name="zip_file" value="faahKO_reduce.zip" ftype="zip" /> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
63 <output name="log"> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
64 <assert_contents> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
65 <has_text text="object with 4 samples" /> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
66 <has_text text="Time range: 2506-4484 seconds (41.8-74.7 minutes)" /> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
67 <has_text text="Mass range: 200.1-600 m/z" /> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
68 <has_text text="Peaks: 32720 (about 8180 per sample)" /> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
69 <has_text text="Peak Groups: 8157" /> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
70 <has_text text="Sample classes: KO, WT" /> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
71 </assert_contents> |
cd351af95d14
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 727b4a74b8e424af622dc0e2b0c910cdd020cd29
lecorguille
parents:
4
diff
changeset
|
72 </output> |
0 | 73 </test> |
74 </tests> | |
75 | |
3 | 76 <help><![CDATA[ |
0 | 77 |
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
78 @HELP_AUTHORS@ |
0 | 79 |
80 ============== | |
81 Xcms.fillPeaks | |
82 ============== | |
83 | |
84 ----------- | |
85 Description | |
86 ----------- | |
87 | |
88 For each sample, identify peak groups where that sample is not | |
89 represented. For each of those peak groups, integrate the signal | |
90 in the region of that peak group and create a new peak. | |
91 | |
92 According to the type of raw-data there are 2 | |
93 different methods available. for filling gcms/lcms data the method | |
94 "chrom" integrates raw-data in the chromatographic domain, whereas | |
95 "MSW" is used for peaklists without retention-time information | |
96 like those from direct-infusion spectra. | |
97 | |
98 | |
99 | |
100 ----------------- | |
101 Workflow position | |
102 ----------------- | |
103 | |
104 | |
105 **Upstream tools** | |
106 | |
107 ========================= ================= ================== ========== | |
108 Name output file format parameter | |
109 ========================= ================= ================== ========== | |
110 xcms.group xset.group.RData rdata.xcms.group RData file | |
111 ========================= ================= ================== ========== | |
112 | |
113 | |
114 **Downstream tools** | |
115 | |
116 +---------------------------+------------------+-----------------------+ | |
117 | Name | Output file | Format | | |
118 +===========================+==================+=======================+ | |
119 |xcms.diffreport | xset.retcor.RData| rdata.xcms.fillpeaks | | |
120 +---------------------------+------------------+-----------------------+ | |
121 |xcms.annotateDiffreport | xset.retcor.RData| rdata.xcms.fillpeaks | | |
122 +---------------------------+------------------+-----------------------+ | |
123 | |
124 The output file **xset.fillpeaks** is an RData file. You can continue your analysis using it in **xcms.diffreport** or **xcms.annotateDiffreport** tool as an next step of the workflow. | |
125 | |
126 | |
127 **General schema of the metabolomic workflow** | |
128 | |
129 .. image:: xcms_fillpeaks_workflow.png | |
130 | |
131 | |
132 | |
133 ----------- | |
134 Input files | |
135 ----------- | |
136 | |
137 +---------------------------+-----------------------+ | |
138 | Parameter : num + label | Format | | |
139 +===========================+=======================+ | |
140 | 1 : RData file | rdata.xcms.group | | |
141 +---------------------------+-----------------------+ | |
142 | |
143 | |
144 ---------- | |
145 Parameters | |
146 ---------- | |
147 | |
148 | |
149 Method | |
150 ------ | |
151 | |
152 **chrom** | |
153 | |
154 | This method produces intensity values for those missing samples by integrating raw data in peak group region. In a given group, the start and ending retention time points for integration are defined by the median start and end points of the other detected peaks. The start and end m/z values are similarly determined. Intensities can be still be zero, which is a rather unusual intensity for a peak. This is the case if e.g. the raw data was threshholded, and the integration area contains no actual raw intensities, or if one sample is miscalibrated, such the raw data points are (just) outside the integration area. | |
155 | Importantly, if retention time correction data is available, the alignment information is used to more precisely integrate the propper region of the raw data. If the corrected retention time is beyond the end of the raw data, the value will be not-a-number (NaN). | |
156 | |
157 **MSW** | |
158 | |
159 | "MSW" is used for peaklists without retention-time information like those from direct-infusion spectra. | |
160 | |
161 ------------ | |
162 Output files | |
163 ------------ | |
164 | |
165 xset.fillPeaks.RData : rdata.xcms.fillpeaks format | |
166 | |
167 | Rdata file that will be used in the **xcms.diffreport** or **xcms.annotateDiffreport** step of the workflow. | |
168 | |
169 ------ | |
170 | |
171 .. class:: infomark | |
172 | |
173 The output file is an group.RData file. You can continue your analysis using it in **xcms.diffreport** or **xcms.annotateDiffreport** tool. | |
174 | |
175 | |
176 --------------------------------------------------- | |
177 | |
178 --------------- | |
179 Working example | |
180 --------------- | |
181 | |
182 Input files | |
183 ----------- | |
184 | |
185 | RData file -> **xset.retcor.RData** | |
186 | |
187 Parameters | |
188 ---------- | |
189 | |
190 | method -> **chrom** | |
191 | |
192 | |
193 Output files | |
194 ------------ | |
195 | |
196 | **xset.fillPeaks.RData: RData file** | |
197 | |
198 | |
3 | 199 --------------------------------------------------- |
200 | |
201 Changelog/News | |
202 -------------- | |
203 | |
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
204 **Version 2.0.6 - 04/04/2016** |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
205 |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
206 - TEST: refactoring to pass planemo test using conda dependencies |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
207 |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
208 |
3 | 209 **Version 2.0.5 - 10/02/2016** |
210 | |
211 - BUGFIX: better management of errors. Datasets remained green although the process failed | |
212 | |
213 - UPDATE: refactoring of internal management of inputs/outputs | |
214 | |
215 - UPDATE: refactoring to feed the new report tool | |
2 | 216 |
217 | |
3 | 218 **Version 2.0.2 - 02/06/2015** |
219 | |
220 - IMPROVEMENT: new datatype/dataset formats (rdata.xcms.raw, rdata.xcms.group, rdata.xcms.retcor ...) will facilitate the sequence of tools and so avoid incompatibility errors. | |
221 | |
222 - IMPROVEMENT: parameter labels have changed to facilitate their reading. | |
223 | |
224 | |
225 ]]></help> | |
0 | 226 |
4
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
227 |
2edfa5e1f719
planemo upload for repository https://github.com/workflow4metabolomics/xcms commit 83b80dcd96b379518c2e4ace992affc889d32ca6
lecorguille
parents:
3
diff
changeset
|
228 <expand macro="citation" /> |
0 | 229 |
230 | |
231 </tool> |