comparison vkmz.xml @ 0:0b8ddf650752 draft

planemo upload for repository https://github.com/HegemanLab/VKMZ commit 7c299d22bdce251ce599cd34df76919d297a7007-dirty
author eslerm
date Wed, 02 May 2018 18:31:06 -0400
parents
children d4a9e43aca74
comparison
equal deleted inserted replaced
-1:000000000000 0:0b8ddf650752
1 <tool id="VKMZ" name="VKMZ" version="1.0">
2
3 <description>metabolomics formula prediction and van Krevelen diagram generation</description>
4
5 <requirements>
6 <requirement type="package" version="2.7">python</requirement>
7 <requirement type="package">pandas</requirement>
8 <requirement type="package">plotly</requirement>
9 </requirements>
10
11 <stdio>
12 <exit_code range="1:" level="fatal" />
13 </stdio>
14
15 <command detect_errors="aggressive"><![CDATA[
16 python $__tool_directory__/vkmz.py
17 #if str( $mode.mode_selector ) == "xcms":
18 xcms
19 --data-matrix $mode.datamatrix
20 --sample-metadata $mode.samplemetadata
21 --variable-metadata $mode.variablemetadata
22 #elif str( $mode.mode_selector ) == "tsv":
23 tsv
24 --input $mode.input
25 #end if
26 #if $no_adjustment=="True":
27 --no-adjustment
28 #end if
29 --output vkmz
30 --error $prediction.error
31 --database $prediction.database_type.database
32 --size $diagram.size
33 --size-algorithm $diagram.sizealgorithm
34 --directory $__tool_directory__/
35 ]]></command>
36
37 <inputs>
38 <conditional name="mode">
39 <param name="mode_selector" type="select" label="Input data type">
40 <option value="xcms">xcms</option>
41 <option value="tsv">tsv</option>
42 </param>
43 <when value="xcms">
44 <param name="datamatrix" label="XCMS Data Matrix" type="data" format="tabular" help="Select XCMS data matrix" />
45 <param name="samplemetadata" label="XCMS Sample Metadata" type="data" format="tabular" help="Select XCMS sample metadata" />
46 <param name="variablemetadata" label="XCMS Variable Metadata" type="data" format="tabular" help="Select XCMS variable metadata" />
47 </when>
48 <when value="tsv">
49 <param name="input" label="Tabular input" type="data" format="tabular" help="Select tabular data" />
50 </when>
51 </conditional>
52 <param name="no_adjustment" label="Turn off mass adjustment" type="boolean" truevalue="True" help="Turn off polarity based mass adjustment. No adjustment should always be selected if reprocessing data generated by VKMZ." />
53 <section name="prediction" title="Prediction Options" expanded="true">
54 <param name="error" label="Mass Error (PPM)" type="float" value="3.0" min="0" help="Set according to mass spectrometer's mass error in parts-per-million" />
55 <conditional name="database_type">
56 <param name="database_type_selector" type="select" label="Database Type">
57 <option value="heuristic">Heuristically Generated</option>
58 <option value="custom">Custom</option>
59 </param>
60 <when value="heuristic">
61 <param name="database" label="Database" type="select" help="Select heuriestically generated database">
62 <option value="databases/bmrb-light.tsv">Monoisotopic</option>
63 <option value="databases/bmrb-heavy_carbon.tsv">C13 Labeled</option>
64 <option value="databases/bmrb-heavy_nitrogen.tsv">N15 Labeled</option>
65 <option value="databases/bmrb-heavy.tsv">C13 and C15 Labeled</option>
66 </param>
67 </when>
68 <when value="custom">
69 <param name="database" label="Database" type="data" format="tabular" help="Select a custom tabular database" />
70 </when>
71 </conditional>
72 </section>
73 <section name="diagram" title="Diagram Options" expanded="true">
74 <param name="size" label="Minimum Maker Size" type="integer" value="5" min="0" help="Set the base size of diagram's markers" />
75 <param name="sizealgorithm" label="Marker Size Algorithm" type="select" help="Select algorithm to change marker sizes. 1.) Set all markers to the base size, 2.) Marker sizes are relative to feature's log intensity">
76 <option value="0">Uniform</option>
77 <option value="1">Relative Log Intensity</option>
78 </param>
79 </section>
80 </inputs>
81
82 <outputs>
83 <data format="tabular" name="output" from_work_dir="vkmz.tsv" label="${tool.name}_${mode.mode_selector}_tabular" />
84 <data format="html" name="output_html" from_work_dir="vkmz.html" label="${tool.name}_${mode.mode_selector}_html" />
85 </outputs>
86
87 <tests>
88 <test>
89 <conditional name="mode">
90 <param name="mode_selector" value="xcms" />
91 <param name="datamatrix" value="datamatrix.tabular" />
92 <param name="samplemetadata" value="sampleMetadata.tabular" />
93 <param name="variablemetadata" value="variableMetadata.tabular" />
94 </conditional>
95 <param name="error" value="3" />
96 <param name="database" value="databases/bmrb-light.tsv" />
97 <output name="output">
98 <assert_contents>
99 <has_text text="0.00016357" />
100 </assert_contents>
101 </output>
102 </test>
103 <test>
104 <conditional name="mode">
105 <param name="mode_selector" value="tsv" />
106 <param name="input" value="tabular.tabular" />
107 </conditional>
108 <param name="error" value="3" />
109 <conditional name="database_type">
110 <param name="database" value="databases/bmrb-light.tsv" />
111 </conditional>
112 <output name="output">
113 <assert_contents>
114 <has_text text="0.00016357" />
115 </assert_contents>
116 </output>
117 </test>
118
119 </tests>
120
121 <help><![CDATA[
122 ========
123 VKMZ 1.0
124 ========
125
126 VKMZ is a metabolomics prediction and vizualization tool which creates van Krevelen diagrams from mass spectrometry data. A van Krevelen diagram (VKD) plots a molecule on a scatterplot by the molecules oxygen to carbon ratio (O:C) against it's hydrogen to carbon ratio (H:C). Classes of metabolites cluster together on a VKD [0]. Plotting a complex mixture of metabolites on a VKD briefly conveys untargeted metabolomics data.
127
128 =============
129 Documentation
130 =============
131
132 **Input Modes**
133
134 VKMZ is designed to use XCMS [1] data as input. Tabular data can also be used as input.
135
136 *XCMS* mode requires three files which XCMS generates: the data matrix, sample metadata, and variable metadata files.
137
138 *Tabular* mode requires a tab delimited file with the first five columns being: sample_id, polarity, mz, retention_time, and intensity.
139
140 **Mass adjustment**
141
142 To calculate a features nominal mass VKMZ adjusts masses by removing or adding the mass of a proton based on polarity.
143
144 Mass adjustment should be turned off if using nominal mass data. VKMZ tabular output contains nominal masses.
145
146 **Prediction Options**
147
148 For each feature in the data VKMZ attempts to predict a molecular formula by comparing the feature's mass to a database of known formula masses. A prediction is made when a known mass is within a mass error of the observed mass. VKMZ finds all predictions for an observed mass within the mass error. The prediction with the lowest delta, absolute difference between observed and known mass, is plotted. Features without predictions are discarded. Using low resolution data may result in finding too many predictions per feature to be useful, especially for large mass metabolites.
149
150 Set the mass error option to the mass error, in parts per million, of the mass spectrometer which collected the initial data.
151
152 Heuristically generated databases for unlabeled and labeled formulas are included with VKMZ [2]. Custom database can also be set.
153
154 **Diagram Options**
155
156 Predicted features are plotted as markers. The size of each marker is determined by the minimum marker size and a marker size algorithm. The marker size algorithms use minimum marker size as a variable.
157 ]]></help>
158
159 <citations>
160 <citation type="doi">10.1007/s11306-018-1343-y</citation>
161 <citation type="doi">10.1021/ac051437y</citation>
162 <citation type="doi">10.1021/ac070346t</citation>
163 </citations>
164
165 </tool>