Mercurial > repos > workflow4metabolomics > xcms_plot_raw
annotate xcms_plot_raw.xml @ 0:520448a32548 draft default tip
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
author | workflow4metabolomics |
---|---|
date | Mon, 15 Jul 2024 16:03:26 +0000 |
parents | |
children |
rev | line source |
---|---|
0
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
1 <tool id="xcms_plot_raw" name="xcms plot raw" version="@TOOL_VERSION@+galaxy0" profile="21.09"> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
2 <description>Plot raw data filtered by m/z range and retention time (RT) range</description> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
3 <macros> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
4 <import>macros_xcms_plot.xml</import> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
5 </macros> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
6 <expand macro="bio.tools"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
7 <expand macro="creator"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
8 <requirements> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
9 <requirement type="package" version="@TOOL_VERSION@">bioconductor-xcms</requirement> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
10 </requirements> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
11 <command detect_errors="exit_code"><![CDATA[ |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
12 Rscript -e 'source("${plot_raw}")' |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
13 ]]></command> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
14 <configfiles> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
15 <configfile name="plot_raw"> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
16 library(xcms) |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
17 library(MsExperiment) |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
18 library(Spectra) |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
19 mse = readMsExperiment(file.path('${input}')) |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
20 mz_offset = ${tolerance_ppm} * 1e-6 * ${mz_value} |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
21 rt_offset = ${rt_range} / 2 |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
22 raw = mse |> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
23 filterRt(rt = ${rt} + c(-rt_offset, rt_offset)) |> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
24 filterMzRange(mz = ${mz_value} + c(-mz_offset, mz_offset)) |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
25 png(filename = '${output_filename}') |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
26 par(oma = c(0.5, 2, 0.5, 1)) |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
27 plot(raw) |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
28 dev.off() |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
29 </configfile> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
30 </configfiles> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
31 <inputs> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
32 <expand macro="base_params"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
33 <param type="float" name="rt" label="Retention Time" min="0.0" value="0.0" help="Retention time for the plot"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
34 <param type="float" name="rt_range" value="5.0" min="0.0" label="Retention Time Range" help="Retention time range for the plot"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
35 </inputs> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
36 <outputs> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
37 <data name="output_filename" format="png" label="PLot at m/z=$mz_value and rt=$rt of $input.element_identifier"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
38 </outputs> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
39 <tests> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
40 <test> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
41 <param name="input" value="xcms_plot_raw_testdata.mzML"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
42 <param name="mz_value" value="153.06583"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
43 <param name="tolerance_ppm" value="10"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
44 <param name="rt" value="171.922"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
45 <param name="rt_range" value="0.1"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
46 <output name="output_filename" file="raw_plot.png" compare="sim_size" delta="5000"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
47 </test> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
48 </tests> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
49 <help><![CDATA[ |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
50 This tool plots the raw data filtered by m/z range and retention time (RT) range from an mzML file. |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
51 It uses a default tolerance of 10 ppm and retention time range of 5 s. |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
52 More information and detailed instructions can be found in the tutorial at: https://jorainer.github.io/xcmsTutorials/articles/xcms-preprocessing.html#data-visualization |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
53 ]]></help> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
54 <expand macro="citations"/> |
520448a32548
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/ commit eca29d4347fe2f4802091c4a06715232a6fd9253
workflow4metabolomics
parents:
diff
changeset
|
55 </tool> |