Mercurial > repos > computational-metabolomics > mspurity_createmsp
comparison createMSP.xml @ 0:35898942bfbb draft
"planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc-dirty"
author | computational-metabolomics |
---|---|
date | Wed, 27 Nov 2019 14:20:07 -0500 |
parents | |
children | 2e8e367c4937 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:35898942bfbb |
---|---|
1 <tool id="mspurity_createmsp" name="msPurity.createMSP" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@"> | |
2 <description>Create MSP files from msPurity processed data</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"> | |
7 </expand> | |
8 <command detect_errors="exit_code"><![CDATA[ | |
9 Rscript '$__tool_directory__/createMSP.R' | |
10 --rdata_input '$rdata_input' | |
11 --method '$method' | |
12 | |
13 #if $metadata_cond.metadata_select == "true" | |
14 --metadata '$metadata_cond.metadata' | |
15 --metadata_cols '$metadata_cond.metadata_cols' | |
16 --metadata_cols_filter '$metadata_cond.metadata_cols_filter' | |
17 | |
18 #end if | |
19 | |
20 #if $xcms_group_cond.xcms_group_select == "true" | |
21 --xcms_groupids '$xcms_group_cond.xcms_groupids' | |
22 #end if | |
23 | |
24 $filter | |
25 $adduct_split | |
26 | |
27 --msp_schema $msp_schema | |
28 --intensity_ra $intensity_ra | |
29 --include_adducts $include_adducts | |
30 | |
31 --out_dir '.' | |
32 ]]></command> | |
33 <inputs> | |
34 <param argument="--rdata_input" type="data" format="rdata" label="msPurity purityA dataset" | |
35 help="RData file containing the purityA object following frag4feature and/or averageFragmentation"/> | |
36 <param argument="--method" type="select" label="How to choose fragmentation spectra (if precursor was fragmented in >1 scans per XCMS group feature)" | |
37 help="'Average all' will use the averaged MS/MS spectra of the XCMS grouped feature, ignoring inter and intra file relationships, | |
38 'Average' (intra)' will use the intra file (within file) averaged MS/MS spectra of the XCMS grouped feature, | |
39 'Average (inter)' will use the inter file (across file) MS/MS averaged spectra, | |
40 'All scans' will export all matching MS/MS spectra to XCMS grouped features, | |
41 'Max intensity' will choose the most MS/MS spectra with the most intense precursor ion for each XCMS grouped feature" | |
42 > | |
43 <option value="av_all" selected="true">Average (all)</option> | |
44 <option value="av_intra">Average (intra)</option> | |
45 <option value="av_inter">Average (inter)</option> | |
46 <option value="all">All scans</option> | |
47 <option value="max" >Max intensity</option> | |
48 </param> | |
49 | |
50 <conditional name="metadata_cond"> | |
51 <param name="metadata_select" type="boolean" label="Use additional metadata?" /> | |
52 <when value="true"> | |
53 <param argument="--metadata" type="data" label="Metadata for each feature" format="tsv,tabular" | |
54 help="Metadata for each grouped XCMS feature, e.g. could be the adduct calculated from CAMERA "/> | |
55 | |
56 <param argument="--metadata_cols_filter" type="text" label="Metadata columns to use" value="" | |
57 help="Comma separated string of column names where the corresponding values in the metadata will be used"/> | |
58 | |
59 <param argument="--metadata_cols" type="text" label="Metadata columns for MSP spectra name" value="" | |
60 help="Comma separated string of column names where the corresponding values in the metadata will be used | |
61 for MSP spectra name"/> | |
62 | |
63 </when> | |
64 <when value="false"> | |
65 </when> | |
66 </conditional> | |
67 | |
68 <conditional name="xcms_group_cond"> | |
69 <param name="xcms_group_select" type="boolean" label="Select XCMS groups?" help="if set to no, all XCMS group features will be used" /> | |
70 <when value="true"> | |
71 <param argument="--xcms_groupids" type="text" label="XCMS peak group ids" value="" | |
72 help="Comma separated string of XCMS group ids to export MSP spectra for. If blank all XCMS peak groups will be used"/> | |
73 </when> | |
74 <when value="false"> | |
75 </when> | |
76 </conditional> | |
77 | |
78 <param argument="--intensity_ra" type="select" label="Include intensity, relative abundanace or both in the MSP file"> | |
79 <option value="intensity_ra" selected="true">Both intensity and relative abundance</option> | |
80 <option value="intensity">Intensity only</option> | |
81 <option value="ra">Relative abundance only</option> | |
82 </param> | |
83 | |
84 <param argument="--msp_schema" type="select" label="MSP schema to use for files"> | |
85 <option value="massbank" selected="true">MassBank (Europe)</option> | |
86 <option value="mona">MoNA</option> | |
87 | |
88 </param> | |
89 | |
90 <param argument="--filter" type="boolean" checked="true" truevalue="--filter" falsevalue="" | |
91 label="Filter peaks that have been flagged in prior processing steps" help="" /> | |
92 | |
93 | |
94 <param argument="--include_adducts" type="select" label="Always include the following adduct descriptions in the MSP file" | |
95 help="Additional adducts to include, can be useful for downstream processing" multiple="true"> | |
96 <option value="[M+H]+">[M+H]+</option> | |
97 <option value="[M+Na]+">[M+Na]+</option> | |
98 <option value="[M+NH4]+">[M+NH4]+</option> | |
99 <option value="[M+K]+" >[M+K]+</option> | |
100 <option value="[M+CH3OH+H]+">[M+CH3OH+H]+</option> | |
101 <option value="[M+ACN+H]+">[M+ACN+H]+</option> | |
102 <option value="[M+ACN+Na]+">[M+ACN+Na]+</option> | |
103 <option value="[M+2ACN+H]+">[M+2ACN+H]+</option> | |
104 <option value="[M-H]-">[M-H]-</option> | |
105 <option value="[M+HCOO]-" >[M+HCOO]-</option> | |
106 <option value="[M+CH3COO]-" >[M+CH3COO]-</option> | |
107 <option value="[M-H+CH3COOH]-" >[M-H+CH3COOH]-</option> | |
108 </param> | |
109 <param argument="--adduct_split" type="boolean" checked="true" label="Create MSP spectra for each adduct?" | |
110 help="Useful if the MSP file will be used for further annotation" truevalue="--adduct_split" falsevalue="" /> | |
111 | |
112 </inputs> | |
113 <outputs> | |
114 <data name="createMSP_output" format="msp" from_work_dir="lcmsms_spectra.msp" label="${tool.name} on ${on_string}: msp"/> | |
115 </outputs> | |
116 <tests> | |
117 | |
118 <test> | |
119 <!-- 3) Test all average with metadata --> | |
120 <param name="method" value="av_all"/> | |
121 <param name="rdata_input" value="averageFragSpectra_output_all.RData"/> | |
122 <param name="metadata_cond|metadata_select" value="true"/> | |
123 <param name="metadata_cond|metadata" value="createMSP_input_metadata.tsv"/> | |
124 <param name="xcms_group_cond|xcms_group_select" value="true"/> | |
125 <param name="xcms_group_cond|xcms_groupids" value="8,12"/> | |
126 <param name="metadata_cond|adduct_split" value="true"/> | |
127 <output name="createMSP_output" file="createMSP_output_av_all_metadata.msp"/> | |
128 </test> | |
129 | |
130 </tests> | |
131 <help><![CDATA[ | |
132 ------------------------------ | |
133 Create MSP Files from msPurity | |
134 ------------------------------ | |
135 | |
136 Description | |
137 ----------- | |
138 | |
139 | This tool will extract the MSMS spectra data from an msPurity-frag4feature object into a file with MSP data format. | |
140 | |
141 | |
142 | |
143 | |
144 Developers and contributors | |
145 --------------------------- | |
146 | |
147 - **Jordi Capellades (j.capellades.to@gmail.com) - Universitat Rovira i Virgili (SP)** | |
148 - **Andris Jankevics (a.jankevics@bham.ac.uk) - University of Birmingham (UK)** | |
149 - **Thomas N. Lawson (t.n.lawson@bham.ac.uk) - University of Birmingham (UK)** | |
150 - **Ralf Weber (r.j.weber@bham.ac.uk) - University of Birmingham (UK)** | |
151 | |
152 ]]></help> | |
153 | |
154 <expand macro="citations" /> | |
155 | |
156 </tool> |