0
|
1 <?xml version='1.0' encoding='UTF-8'?>
|
|
2 <tool id="MapAlignerSpectrum" name="MapAlignerSpectrum" version="2.0.0">
|
|
3 <description>Corrects retention time distortions between maps by spectrum alignment.</description>
|
|
4 <macros>
|
|
5 <token name="@EXECUTABLE@">MapAlignerSpectrum</token>
|
|
6 <import>macros.xml</import>
|
|
7 </macros>
|
|
8 <expand macro="stdio"/>
|
|
9 <expand macro="requirements"/>
|
|
10 <command>MapAlignerSpectrum
|
|
11
|
|
12 -in
|
|
13 #for token in $param_in:
|
|
14 $token
|
|
15 #end for
|
|
16
|
|
17 #if $rep_param_out:
|
|
18 -out
|
|
19 #for token in $rep_param_out:
|
|
20 #if " " in str(token):
|
|
21 "$token.param_out"
|
|
22 #else
|
|
23 $token.param_out
|
|
24 #end if
|
|
25 #end for
|
|
26 #end if
|
|
27
|
|
28 #if $rep_param_trafo_out:
|
|
29 -trafo_out
|
|
30 #for token in $rep_param_trafo_out:
|
|
31 #if " " in str(token):
|
|
32 "$token.param_trafo_out"
|
|
33 #else
|
|
34 $token.param_trafo_out
|
|
35 #end if
|
|
36 #end for
|
|
37 #end if
|
|
38 -threads \${GALAXY_SLOTS:-24}
|
|
39 #if $param_algorithm_gapcost:
|
|
40 -algorithm:gapcost $param_algorithm_gapcost
|
|
41 #end if
|
|
42 #if $param_algorithm_affinegapcost:
|
|
43 -algorithm:affinegapcost $param_algorithm_affinegapcost
|
|
44 #end if
|
|
45 #if $param_algorithm_scorefunction:
|
|
46 -algorithm:scorefunction
|
|
47 #if " " in str($param_algorithm_scorefunction):
|
|
48 "$param_algorithm_scorefunction"
|
|
49 #else
|
|
50 $param_algorithm_scorefunction
|
|
51 #end if
|
|
52 #end if
|
|
53 #if $param_model_type:
|
|
54 -model:type
|
|
55 #if " " in str($param_model_type):
|
|
56 "$param_model_type"
|
|
57 #else
|
|
58 $param_model_type
|
|
59 #end if
|
|
60 #end if
|
|
61 #if $param_model_linear_symmetric_regression:
|
|
62 -model:linear:symmetric_regression
|
|
63 #end if
|
|
64 #if $param_model_b_spline_wavelength:
|
|
65 -model:b_spline:wavelength $param_model_b_spline_wavelength
|
|
66 #end if
|
|
67 #if $param_model_b_spline_num_nodes:
|
|
68 -model:b_spline:num_nodes $param_model_b_spline_num_nodes
|
|
69 #end if
|
|
70 #if $param_model_b_spline_extrapolate:
|
|
71 -model:b_spline:extrapolate
|
|
72 #if " " in str($param_model_b_spline_extrapolate):
|
|
73 "$param_model_b_spline_extrapolate"
|
|
74 #else
|
|
75 $param_model_b_spline_extrapolate
|
|
76 #end if
|
|
77 #end if
|
|
78 #if $param_model_b_spline_boundary_condition:
|
|
79 -model:b_spline:boundary_condition $param_model_b_spline_boundary_condition
|
|
80 #end if
|
|
81 #if $param_model_interpolated_interpolation_type:
|
|
82 -model:interpolated:interpolation_type
|
|
83 #if " " in str($param_model_interpolated_interpolation_type):
|
|
84 "$param_model_interpolated_interpolation_type"
|
|
85 #else
|
|
86 $param_model_interpolated_interpolation_type
|
|
87 #end if
|
|
88 #end if
|
|
89 #if $adv_opts.adv_opts_selector=='advanced':
|
|
90 #if $adv_opts.param_force:
|
|
91 -force
|
|
92 #end if
|
|
93 #if $adv_opts.param_algorithm_cutoff_score:
|
|
94 -algorithm:cutoff_score $adv_opts.param_algorithm_cutoff_score
|
|
95 #end if
|
|
96 #if $adv_opts.param_algorithm_bucketsize:
|
|
97 -algorithm:bucketsize $adv_opts.param_algorithm_bucketsize
|
|
98 #end if
|
|
99 #if $adv_opts.param_algorithm_anchorpoints:
|
|
100 -algorithm:anchorpoints $adv_opts.param_algorithm_anchorpoints
|
|
101 #end if
|
|
102 #if $adv_opts.param_algorithm_mismatchscore:
|
|
103 -algorithm:mismatchscore $adv_opts.param_algorithm_mismatchscore
|
|
104 #end if
|
|
105 #end if
|
|
106 </command>
|
|
107 <inputs>
|
|
108 <param name="param_in" type="data" format="mzml" multiple="true" optional="False" size="30" label="Input files separated by blanks (all must have the same file type)" help="(-in) ">
|
|
109 <sanitizer>
|
|
110 <valid initial="string.printable">
|
|
111 <remove value="'"/>
|
|
112 <remove value="""/>
|
|
113 </valid>
|
|
114 </sanitizer>
|
|
115 </param>
|
|
116 <param name="param_algorithm_gapcost" type="float" min="0.0" optional="True" value="1.0" label=" This Parameter stands for the cost of opining a gap in the Alignment" help="(-gapcost) A Gap means that one Spectrum can not be aligned directly to another Spectrum in the Map. This happens, when the similarity of both spectra a too low or even not present. Imagen as a insert or delete of the spectrum in the map. The gap is necessary for aligning, if we open a gap there is a possibility that an another spectrum can be correct aligned with a higher score as before without gap. But to open a gap is a negative event and has to be punished a bit, so such only in case it 's a good choice to open a gap, if the score is bad enough. The Parameter is to giving as a positive number, the implementation convert it to a negative number"/>
|
|
117 <param name="param_algorithm_affinegapcost" type="float" min="0.0" optional="True" value="0.5" label=" This Parameter controls the cost of extension a already open gap" help="(-affinegapcost) The idea behind the affine gapcost lies under the assumption, that it is better to get a long distance of connected gaps than to have a structure gap match gap match. There for the punishment for the extension of a gap has to be lower than the normal gapcost. If the the result of the alignment show high compression, it is a good idea to lower the affine gapcost or the normal gapcost"/>
|
|
118 <param name="param_algorithm_scorefunction" type="select" optional="True" value="SteinScottImproveScore" label=" The score function is the core of an alignment" help="(-scorefunction) The success of an alignment depends mostly of the elected score function. The score function return the similarity of two Spectrum back. The score influence defines later the way of possible traceback. There exist many way of algorithm to calculate the score">
|
|
119 <option value="SteinScottImproveScore">SteinScottImproveScore</option>
|
|
120 <option value="ZhangSimilarityScore">ZhangSimilarityScore</option>
|
|
121 </param>
|
|
122 <param name="param_model_type" type="select" optional="True" value="interpolated" label="Type of model" help="(-type) ">
|
|
123 <option value="linear">linear</option>
|
|
124 <option value="b_spline">b_spline</option>
|
|
125 <option value="interpolated">interpolated</option>
|
|
126 </param>
|
|
127 <param name="param_model_linear_symmetric_regression" type="boolean" truevalue="-model:linear:symmetric_regression" falsevalue="" checked="false" optional="True" label="Perform linear regression on 'y - x' vs" help="(-symmetric_regression) 'y + x', instead of on 'y' vs. 'x'"/>
|
|
128 <param name="param_model_b_spline_wavelength" type="float" min="0.0" optional="True" value="0.0" label="Determines the amount of smoothing by setting the number of nodes for the B-spline" help="(-wavelength) The number is chosen so that the spline approximates a low-pass filter with this cutoff wavelength. The wavelength is given in the same units as the data; a higher value means more smoothing. '0' sets the number of nodes to twice the number of input points"/>
|
|
129 <param name="param_model_b_spline_num_nodes" type="integer" min="0" optional="True" value="5" label="Number of nodes for B-spline fitting" help="(-num_nodes) Overrides 'wavelength' if set (to two or greater). A lower value means more smoothing"/>
|
|
130 <param name="param_model_b_spline_extrapolate" type="select" optional="True" value="linear" label="Method to use for extrapolation beyond the original data range" help="(-extrapolate) 'linear': Linear extrapolation using the slope of the B-spline at the corresponding endpoint. 'b_spline': Use the B-spline (as for interpolation). 'constant': Use the constant value of the B-spline at the corresponding endpoint. 'global_linear': Use a linear fit through the data (which will most probably introduce discontinuities at the ends of the data range)">
|
|
131 <option value="linear">linear</option>
|
|
132 <option value="b_spline">b_spline</option>
|
|
133 <option value="constant">constant</option>
|
|
134 <option value="global_linear">global_linear</option>
|
|
135 </param>
|
|
136 <param name="param_model_b_spline_boundary_condition" type="integer" min="0" max="2" optional="True" value="2" label="Boundary condition at B-spline endpoints: 0 (value zero), 1 (first derivative zero) or 2 (second derivative zero)" help="(-boundary_condition) "/>
|
|
137 <param name="param_model_interpolated_interpolation_type" type="select" optional="True" value="cspline" label="Type of interpolation to apply" help="(-interpolation_type) ">
|
|
138 <option value="linear">linear</option>
|
|
139 <option value="cspline">cspline</option>
|
|
140 <option value="akima">akima</option>
|
|
141 </param>
|
|
142 <expand macro="advanced_options">
|
|
143 <param name="param_force" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/>
|
|
144 <param name="param_algorithm_cutoff_score" type="float" min="0.0" max="1.0" optional="True" value="0.7" label="The Parameter defines the threshold which filtered Spectra, these Spectra are high potential candidate for deciding the interval of a sub-alignment" help="(-cutoff_score) Only those pair of Spectra are selected, which has a score higher or same of the threshold"/>
|
|
145 <param name="param_algorithm_bucketsize" type="integer" min="1" optional="True" value="100" label="Defines the numbers of buckets" help="(-bucketsize) It is a quantize of the interval of those points, which defines the main alignment(match points). These points have to filtered, to reduce the amount of points for the calculating a smoother spline curve"/>
|
|
146 <param name="param_algorithm_anchorpoints" type="integer" min="1" max="100" optional="True" value="100" label="Defines the percent of numbers of match points which a selected from one bucket" help="(-anchorpoints) The high score pairs are previously selected. The reduction of match points helps to get a smoother spline curve"/>
|
|
147 <param name="param_algorithm_mismatchscore" type="float" max="0.0" optional="True" value="-5.0" label="Defines the score of two Spectra if they have no similarity to each othe" help="(-mismatchscore) "/>
|
|
148 </expand>
|
|
149 </inputs>
|
|
150 <outputs>
|
|
151 <data name="param_out" format="mzml"/>
|
|
152 <data name="param_trafo_out" format="trafoxml"/>
|
|
153 </outputs>
|
|
154 <help>**What it does**
|
|
155
|
|
156 Corrects retention time distortions between maps by spectrum alignment.
|
|
157
|
|
158
|
|
159 For more information, visit http://ftp.mi.fu-berlin.de/OpenMS/release-documentation/html/TOPP_MapAlignerSpectrum.html</help>
|
|
160 <expand macro="references"/>
|
|
161 </tool>
|