Mercurial > repos > galaxyp > openms_mapalignerspectrum
view MapAlignerSpectrum.xml @ 0:788f648028e0 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 58476cadaaf10b494317a604ad81d41c2d15f29b
author | galaxyp |
---|---|
date | Mon, 12 Feb 2018 13:33:23 -0500 |
parents | |
children | 3ba382706e89 |
line wrap: on
line source
<?xml version='1.0' encoding='UTF-8'?> <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.--> <!--Proposed Tool Section: [Map Alignment]--> <tool id="MapAlignerSpectrum" name="MapAlignerSpectrum" version="2.3.0"> <description>Corrects retention time distortions between maps by spectrum alignment.</description> <macros> <token name="@EXECUTABLE@">MapAlignerSpectrum</token> <import>macros.xml</import> </macros> <expand macro="references"/> <expand macro="stdio"/> <expand macro="requirements"/> <command>MapAlignerSpectrum -in #for token in $param_in: $token #end for #if $rep_param_out: -out #for token in $rep_param_out: #if " " in str(token): "$token.param_out" #else $token.param_out #end if #end for #end if #if $rep_param_trafo_out: -trafo_out #for token in $rep_param_trafo_out: #if " " in str(token): "$token.param_trafo_out" #else $token.param_trafo_out #end if #end for #end if #if $param_algorithm_gapcost: -algorithm:gapcost $param_algorithm_gapcost #end if #if $param_algorithm_affinegapcost: -algorithm:affinegapcost $param_algorithm_affinegapcost #end if #if $param_algorithm_scorefunction: -algorithm:scorefunction #if " " in str($param_algorithm_scorefunction): "$param_algorithm_scorefunction" #else $param_algorithm_scorefunction #end if #end if #if $param_model_type: -model:type #if " " in str($param_model_type): "$param_model_type" #else $param_model_type #end if #end if #if $param_model_linear_symmetric_regression: -model:linear:symmetric_regression #end if #if $param_model_b_spline_wavelength: -model:b_spline:wavelength $param_model_b_spline_wavelength #end if #if $param_model_b_spline_num_nodes: -model:b_spline:num_nodes $param_model_b_spline_num_nodes #end if #if $param_model_b_spline_extrapolate: -model:b_spline:extrapolate #if " " in str($param_model_b_spline_extrapolate): "$param_model_b_spline_extrapolate" #else $param_model_b_spline_extrapolate #end if #end if #if $param_model_b_spline_boundary_condition: -model:b_spline:boundary_condition $param_model_b_spline_boundary_condition #end if #if $param_model_lowess_span: -model:lowess:span $param_model_lowess_span #end if #if $param_model_lowess_num_iterations: -model:lowess:num_iterations $param_model_lowess_num_iterations #end if #if $param_model_lowess_delta: -model:lowess:delta $param_model_lowess_delta #end if #if $param_model_lowess_interpolation_type: -model:lowess:interpolation_type #if " " in str($param_model_lowess_interpolation_type): "$param_model_lowess_interpolation_type" #else $param_model_lowess_interpolation_type #end if #end if #if $param_model_lowess_extrapolation_type: -model:lowess:extrapolation_type #if " " in str($param_model_lowess_extrapolation_type): "$param_model_lowess_extrapolation_type" #else $param_model_lowess_extrapolation_type #end if #end if #if $param_model_interpolated_interpolation_type: -model:interpolated:interpolation_type #if " " in str($param_model_interpolated_interpolation_type): "$param_model_interpolated_interpolation_type" #else $param_model_interpolated_interpolation_type #end if #end if #if $param_model_interpolated_extrapolation_type: -model:interpolated:extrapolation_type #if " " in str($param_model_interpolated_extrapolation_type): "$param_model_interpolated_extrapolation_type" #else $param_model_interpolated_extrapolation_type #end if #end if #if $adv_opts.adv_opts_selector=='advanced': #if $adv_opts.param_force: -force #end if #if $adv_opts.param_algorithm_cutoff_score: -algorithm:cutoff_score $adv_opts.param_algorithm_cutoff_score #end if #if $adv_opts.param_algorithm_bucketsize: -algorithm:bucketsize $adv_opts.param_algorithm_bucketsize #end if #if $adv_opts.param_algorithm_anchorpoints: -algorithm:anchorpoints $adv_opts.param_algorithm_anchorpoints #end if #if $adv_opts.param_algorithm_mismatchscore: -algorithm:mismatchscore $adv_opts.param_algorithm_mismatchscore #end if #end if </command> <inputs> <param name="param_in" type="data" format="mzml" multiple="true" optional="False" size="30" label="Input files to align (all must have the same file type)" help="(-in) "> <sanitizer> <valid initial="string.printable"> <remove value="'"/> <remove value="""/> </valid> </sanitizer> </param> <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. Imagine it as a insert or delete of the spectrum in the map (similar to sequence alignment). 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 needs to carry a punishment, so a gap should only be opened if the benefits outweigh the downsides. The Parameter is to giving as a positive number, the implementation convert it to a negative number"/> <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 of gaps interspersed with matches (gap match gap match etc.). Therefor the punishment for the extension of a gap generally should be lower than the normal gapcost. If the result of the alignment shows high compression, it is a good idea to lower either the affine gapcost or gap opening cost"/> <param name="param_algorithm_scorefunction" display="radio" type="select" optional="False" 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 spectra. The score influence defines later the way of possible traceback. There are multiple spectra similarity scores available"> <option value="SteinScottImproveScore" selected="true">SteinScottImproveScore</option> <option value="ZhangSimilarityScore">ZhangSimilarityScore</option> </param> <param name="param_model_type" display="radio" type="select" optional="False" value="interpolated" label="Type of model" help="(-type) "> <option value="linear">linear</option> <option value="b_spline">b_spline</option> <option value="lowess">lowess</option> <option value="interpolated" selected="true">interpolated</option> </param> <param name="param_model_linear_symmetric_regression" display="radio" 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'"/> <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"/> <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"/> <param name="param_model_b_spline_extrapolate" display="radio" type="select" optional="False" 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)"> <option value="linear" selected="true">linear</option> <option value="b_spline">b_spline</option> <option value="constant">constant</option> <option value="global_linear">global_linear</option> </param> <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) "/> <param name="param_model_lowess_span" type="float" min="0.0" max="1.0" optional="True" value="0.666666666667" label="Fraction of datapoints (f) to use for each local regression (determines the amount of smoothing)" help="(-span) Choosing this parameter in the range .2 to .8 usually results in a good fit"/> <param name="param_model_lowess_num_iterations" type="integer" min="0" optional="True" value="3" label="Number of robustifying iterations for lowess fitting" help="(-num_iterations) "/> <param name="param_model_lowess_delta" type="float" value="-1.0" label="Nonnegative parameter which may be used to save computations (recommended value is 0.01 of the range of the input," help="(-delta) e.g. for data ranging from 1000 seconds to 2000 seconds, it could be set to 10). Setting a negative value will automatically do this"/> <param name="param_model_lowess_interpolation_type" display="radio" type="select" optional="False" value="cspline" label="Method to use for interpolation between datapoints computed by lowess" help="(-interpolation_type) 'linear': Linear interpolation. 'cspline': Use the cubic spline for interpolation. 'akima': Use an akima spline for interpolation"> <option value="linear">linear</option> <option value="cspline" selected="true">cspline</option> <option value="akima">akima</option> </param> <param name="param_model_lowess_extrapolation_type" display="radio" type="select" optional="False" value="four-point-linear" label="Method to use for extrapolation outside the data range" help="(-extrapolation_type) 'two-point-linear': Uses a line through the first and last point to extrapolate. 'four-point-linear': Uses a line through the first and second point to extrapolate in front and and a line through the last and second-to-last point in the end. 'global-linear': Uses a linear regression to fit a line through all data points and use it for interpolation"> <option value="two-point-linear">two-point-linear</option> <option value="four-point-linear" selected="true">four-point-linear</option> <option value="global-linear">global-linear</option> </param> <param name="param_model_interpolated_interpolation_type" display="radio" type="select" optional="False" value="cspline" label="Type of interpolation to apply" help="(-interpolation_type) "> <option value="linear">linear</option> <option value="cspline" selected="true">cspline</option> <option value="akima">akima</option> </param> <param name="param_model_interpolated_extrapolation_type" display="radio" type="select" optional="False" value="two-point-linear" label="Type of extrapolation to apply: two-point-linear: use the first and last data point to build a single linear model, four-point-linear: build two linear models on both ends using the first two / last two points, global-linear: use all points to build a single linear model" help="(-extrapolation_type) Note that global-linear may not be continuous at the border"> <option value="two-point-linear" selected="true">two-point-linear</option> <option value="four-point-linear">four-point-linear</option> <option value="global-linear">global-linear</option> </param> <expand macro="advanced_options"> <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> <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"/> <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"/> <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"/> <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) "/> </expand> </inputs> <outputs> <data name="param_out" format="mzml"/> <data name="param_trafo_out" format="trafoxml"/> </outputs> <help>Corrects retention time distortions between maps by spectrum alignment. For more information, visit http://ftp.mi.fu-berlin.de/OpenMS/release-documentation/html/TOPP_MapAlignerSpectrum.html</help> </tool>