Mercurial > repos > galaxyp > openms_mapalignerspectrum
comparison MapAlignerSpectrum.xml @ 8:085863ba8f0e draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
author | galaxyp |
---|---|
date | Thu, 01 Dec 2022 19:24:40 +0000 |
parents | 051ded4b9e1f |
children | c4c64002d01e |
comparison
equal
deleted
inserted
replaced
7:401a83dcff39 | 8:085863ba8f0e |
---|---|
1 <?xml version='1.0' encoding='UTF-8'?> | 1 <?xml version='1.0' encoding='UTF-8'?> |
2 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.--> | 2 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.--> |
3 <!--Proposed Tool Section: [Map Alignment]--> | 3 <!--Proposed Tool Section: [Map Alignment]--> |
4 <tool id="MapAlignerSpectrum" name="MapAlignerSpectrum" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> | 4 <tool id="MapAlignerSpectrum" name="MapAlignerSpectrum" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> |
5 <description>Corrects retention time distortions between maps by spectrum alignment.</description> | 5 <description>Corrects retention time distortions between maps by spectrum alignment.</description> |
6 <macros> | 6 <macros> |
7 <token name="@EXECUTABLE@">MapAlignerSpectrum</token> | 7 <token name="@EXECUTABLE@">MapAlignerSpectrum</token> |
8 <import>macros.xml</import> | 8 <import>macros.xml</import> |
9 <import>macros_autotest.xml</import> | |
10 <import>macros_test.xml</import> | |
11 </macros> | 9 </macros> |
12 <expand macro="requirements"/> | 10 <expand macro="requirements"/> |
13 <expand macro="stdio"/> | 11 <expand macro="stdio"/> |
14 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ | 12 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ |
15 @EXT_FOO@ | 13 @EXT_FOO@ |
16 #import re | 14 #import re |
17 | 15 |
18 ## Preprocessing | 16 ## Preprocessing |
19 mkdir in && | 17 mkdir in_cond.in && |
20 ${ ' '.join(["ln -s '%s' 'in/%s.%s' &&" % (_, re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _]) } | 18 #if $in_cond.in_select == "no" |
19 mkdir ${' '.join(["'in_cond.in/%s'" % (i) for i, f in enumerate($in_cond.in) if f])} && | |
20 ${' '.join(["ln -s '%s' 'in_cond.in/%s/%s.%s' && " % (f, i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($in_cond.in) if f])} | |
21 #else | |
22 ln -s '$in_cond.in' 'in_cond.in/${re.sub("[^\w\-_]", "_", $in_cond.in.element_identifier)}.$gxy2omsext($in_cond.in.ext)' && | |
23 #end if | |
21 #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | 24 #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') |
22 mkdir out && | 25 mkdir out && |
26 mkdir ${' '.join(["'out/%s'" % (i) for i, f in enumerate($in_cond.in) if f])} && | |
23 #end if | 27 #end if |
24 #if "trafo_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | 28 #if "trafo_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') |
25 mkdir trafo_out && | 29 mkdir trafo_out && |
30 mkdir ${' '.join(["'trafo_out/%s'" % (i) for i, f in enumerate($in_cond.in) if f])} && | |
26 #end if | 31 #end if |
27 | 32 |
28 ## Main program call | 33 ## Main program call |
29 | 34 |
30 set -o pipefail && | 35 set -o pipefail && |
31 @EXECUTABLE@ -write_ctd ./ && | 36 @EXECUTABLE@ -write_ctd ./ && |
32 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && | 37 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && |
33 @EXECUTABLE@ -ini @EXECUTABLE@.ctd | 38 @EXECUTABLE@ -ini @EXECUTABLE@.ctd |
34 -in | 39 -in |
35 ${' '.join(["'in/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _])} | 40 #if $in_cond.in_select == "no" |
41 ${' '.join(["'in_cond.in/%s/%s.%s'"%(i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($in_cond.in) if f])} | |
42 #else | |
43 'in_cond.in/${re.sub("[^\w\-_]", "_", $in_cond.in.element_identifier)}.$gxy2omsext($in_cond.in.ext)' | |
44 #end if | |
36 #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | 45 #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') |
37 -out | 46 -out |
38 ${' '.join(["'out/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext("mzml")) for _ in $in if _])} | 47 ${' '.join(["'out/%s/%s.%s'"%(i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext("mzml")) for i, f in enumerate($in_cond.in) if f])} |
39 #end if | 48 #end if |
40 #if "trafo_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | 49 #if "trafo_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') |
41 -trafo_out | 50 -trafo_out |
42 ${' '.join(["'trafo_out/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext("trafoxml")) for _ in $in if _])} | 51 ${' '.join(["'trafo_out/%s/%s.%s'"%(i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext("trafoxml")) for i, f in enumerate($in_cond.in) if f])} |
43 #end if | 52 #end if |
44 #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0 | 53 #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0 |
45 | tee '$stdout' | 54 | tee '$stdout' |
46 #end if | 55 #end if |
47 | 56 |
48 ## Postprocessing | 57 ## Postprocessing |
49 #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | 58 #if "out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') |
50 ${' '.join(["&& mv -n 'in/%(id)s.%(gext)s' 'out/%(id)s'"%{"id": re.sub('[^\w\-_]', '_', _.element_identifier), "gext": $gxy2omsext("mzml")} for _ in $out if _])} | 59 ${' '.join(["&& mv -n 'out/%(bn)s/%(id)s.%(gext)s' 'out/%(bn)s/%(id)s'"%{"bn": i, "id": re.sub('[^\w\-_]', '_', f.element_identifier), "gext": $gxy2omsext("mzml")} for i, f in enumerate($in_cond.in) if f])} |
51 #end if | 60 #end if |
52 #if "trafo_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | 61 #if "trafo_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') |
53 ${' '.join(["&& mv -n 'in/%(id)s.%(gext)s' 'trafo_out/%(id)s'"%{"id": re.sub('[^\w\-_]', '_', _.element_identifier), "gext": $gxy2omsext("trafoxml")} for _ in $trafo_out if _])} | 62 ${' '.join(["&& mv -n 'trafo_out/%(bn)s/%(id)s.%(gext)s' 'trafo_out/%(bn)s/%(id)s'"%{"bn": i, "id": re.sub('[^\w\-_]', '_', f.element_identifier), "gext": $gxy2omsext("trafoxml")} for i, f in enumerate($in_cond.in) if f])} |
54 #end if | 63 #end if |
55 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS | 64 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS |
56 && mv '@EXECUTABLE@.ctd' '$ctd_out' | 65 && mv '@EXECUTABLE@.ctd' '$ctd_out' |
57 #end if]]></command> | 66 #end if]]></command> |
58 <configfiles> | 67 <configfiles> |
59 <inputs name="args_json" data_style="paths"/> | 68 <inputs name="args_json" data_style="paths"/> |
60 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> | 69 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> |
61 </configfiles> | 70 </configfiles> |
62 <inputs> | 71 <inputs> |
63 <param name="in" argument="-in" type="data" format="mzml" multiple="true" optional="false" label="Input files to align (all must have the same file type)" help=" select mzml data sets(s)"/> | 72 <conditional name="in_cond"> |
73 <param name="in_select" type="select" label="Run tool in batch mode for -in"> | |
74 <option value="no">No: process all datasets jointly</option> | |
75 <option value="yes">Yes: process each dataset in an independent job</option> | |
76 </param> | |
77 <when value="no"> | |
78 <param argument="-in" type="data" format="mzml" multiple="true" optional="false" label="Input files to align (all must have the same file type)" help=" select mzml data sets(s)"/> | |
79 </when> | |
80 <when value="yes"> | |
81 <param argument="-in" type="data" format="mzml" multiple="false" optional="false" label="Input files to align (all must have the same file type)" help=" select mzml data sets(s)"/> | |
82 </when> | |
83 </conditional> | |
64 <section name="algorithm" title="Algorithm parameters section" help="" expanded="false"> | 84 <section name="algorithm" title="Algorithm parameters section" help="" expanded="false"> |
65 <param name="gapcost" argument="-algorithm:gapcost" type="float" optional="true" min="0.0" value="1.0" label="This Parameter stands for the cost of opening a gap in the Alignment" help="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"/> | 85 <param name="gapcost" argument="-algorithm:gapcost" type="float" optional="true" min="0.0" value="1.0" label="This Parameter stands for the cost of opening a gap in the Alignment" help="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"/> |
66 <param name="affinegapcost" argument="-algorithm:affinegapcost" type="float" optional="true" min="0.0" value="0.5" label="This Parameter controls the cost of extension a already open gap" help="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"/> | 86 <param name="affinegapcost" argument="-algorithm:affinegapcost" type="float" optional="true" min="0.0" value="0.5" label="This Parameter controls the cost of extension a already open gap" help="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.). Therefore 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"/> |
67 <param name="cutoff_score" argument="-algorithm:cutoff_score" type="float" optional="true" min="0.0" max="1.0" 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="Only those pair of spectra are selected, which has a score higher or same of the threshold"/> | 87 <param name="cutoff_score" argument="-algorithm:cutoff_score" type="float" optional="true" min="0.0" max="1.0" 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="Only those pair of spectra are selected, which has a score higher or same of the threshold"/> |
68 <param name="bucketsize" argument="-algorithm:bucketsize" type="integer" optional="true" min="1" value="100" label="Defines the numbers of buckets" help="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"/> | 88 <param name="bucketsize" argument="-algorithm:bucketsize" type="integer" optional="true" min="1" value="100" label="Defines the numbers of buckets" help="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"/> |
69 <param name="anchorpoints" argument="-algorithm:anchorpoints" type="integer" optional="true" min="1" max="100" value="100" label="Defines the percent of numbers of match points which a selected from one bucket" help="The high score pairs are previously selected. The reduction of match points helps to get a smoother spline curve"/> | 89 <param name="anchorpoints" argument="-algorithm:anchorpoints" type="integer" optional="true" min="1" max="100" value="100" label="Defines the percent of numbers of match points which a selected from one bucket" help="The high score pairs are previously selected. The reduction of match points helps to get a smoother spline curve"/> |
70 <param name="mismatchscore" argument="-algorithm:mismatchscore" type="float" optional="true" max="0.0" value="-5.0" label="Defines the score of two spectra if they have no similarity to each othe" help=""/> | 90 <param name="mismatchscore" argument="-algorithm:mismatchscore" type="float" optional="true" max="0.0" value="-5.0" label="Defines the score of two spectra if they have no similarity to each othe" help=""/> |
71 <param name="scorefunction" argument="-algorithm:scorefunction" display="radio" type="select" optional="false" label="The score function is the core of an alignment" help="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"> | 91 <param name="scorefunction" argument="-algorithm:scorefunction" type="select" optional="true" label="The score function is the core of an alignment" help="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"> |
72 <option value="SteinScottImproveScore" selected="true">SteinScottImproveScore</option> | 92 <option value="SteinScottImproveScore" selected="true">SteinScottImproveScore</option> |
73 <option value="ZhangSimilarityScore">ZhangSimilarityScore</option> | 93 <option value="ZhangSimilarityScore">ZhangSimilarityScore</option> |
74 <expand macro="list_string_san"/> | 94 <expand macro="list_string_san" name="scorefunction"/> |
75 </param> | 95 </param> |
76 </section> | 96 </section> |
77 <section name="model" title="Options to control the modeling of retention time transformations from data" help="" expanded="false"> | 97 <section name="model" title="Options to control the modeling of retention time transformations from data" help="" expanded="false"> |
78 <param name="type" argument="-model:type" display="radio" type="select" optional="false" label="Type of model" help=""> | 98 <param name="type" argument="-model:type" type="select" optional="true" label="Type of model" help=""> |
79 <option value="linear">linear</option> | 99 <option value="linear">linear</option> |
80 <option value="b_spline">b_spline</option> | 100 <option value="b_spline">b_spline</option> |
81 <option value="lowess">lowess</option> | 101 <option value="lowess">lowess</option> |
82 <option value="interpolated" selected="true">interpolated</option> | 102 <option value="interpolated" selected="true">interpolated</option> |
83 <expand macro="list_string_san"/> | 103 <expand macro="list_string_san" name="type"/> |
84 </param> | 104 </param> |
85 <section name="linear" title="Parameters for 'linear' model" help="" expanded="false"> | 105 <section name="linear" title="Parameters for 'linear' model" help="" expanded="false"> |
86 <param name="symmetric_regression" argument="-model:linear:symmetric_regression" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Perform linear regression on 'y - x' vs" help="'y + x', instead of on 'y' vs. 'x'"/> | 106 <param name="symmetric_regression" argument="-model:linear:symmetric_regression" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Perform linear regression on 'y - x' vs" help="'y + x', instead of on 'y' vs. 'x'"/> |
87 <param name="x_weight" argument="-model:linear:x_weight" display="radio" type="select" optional="true" label="Weight x values" help=""> | 107 <param name="x_weight" argument="-model:linear:x_weight" type="select" optional="true" label="Weight x values" help=""> |
88 <option value="">default (nothing chosen)</option> | |
89 <option value="1/x">1/x</option> | 108 <option value="1/x">1/x</option> |
90 <option value="1/x2">1/x2</option> | 109 <option value="1/x2">1/x2</option> |
91 <option value="ln(x)">ln(x)</option> | 110 <option value="ln(x)">ln(x)</option> |
92 <option value=""></option> | 111 <option value=""></option> |
93 <expand macro="list_string_san"/> | 112 <expand macro="list_string_san" name="x_weight"/> |
94 </param> | 113 </param> |
95 <param name="y_weight" argument="-model:linear:y_weight" display="radio" type="select" optional="true" label="Weight y values" help=""> | 114 <param name="y_weight" argument="-model:linear:y_weight" type="select" optional="true" label="Weight y values" help=""> |
96 <option value="">default (nothing chosen)</option> | |
97 <option value="1/y">1/y</option> | 115 <option value="1/y">1/y</option> |
98 <option value="1/y2">1/y2</option> | 116 <option value="1/y2">1/y2</option> |
99 <option value="ln(y)">ln(y)</option> | 117 <option value="ln(y)">ln(y)</option> |
100 <option value=""></option> | 118 <option value=""></option> |
101 <expand macro="list_string_san"/> | 119 <expand macro="list_string_san" name="y_weight"/> |
102 </param> | 120 </param> |
103 <param name="x_datum_min" argument="-model:linear:x_datum_min" type="float" optional="true" value="1e-15" label="Minimum x value" help=""/> | 121 <param name="x_datum_min" argument="-model:linear:x_datum_min" type="float" optional="true" value="1e-15" label="Minimum x value" help=""/> |
104 <param name="x_datum_max" argument="-model:linear:x_datum_max" type="float" optional="true" value="1000000000000000.0" label="Maximum x value" help=""/> | 122 <param name="x_datum_max" argument="-model:linear:x_datum_max" type="float" optional="true" value="1000000000000000.0" label="Maximum x value" help=""/> |
105 <param name="y_datum_min" argument="-model:linear:y_datum_min" type="float" optional="true" value="1e-15" label="Minimum y value" help=""/> | 123 <param name="y_datum_min" argument="-model:linear:y_datum_min" type="float" optional="true" value="1e-15" label="Minimum y value" help=""/> |
106 <param name="y_datum_max" argument="-model:linear:y_datum_max" type="float" optional="true" value="1000000000000000.0" label="Maximum y value" help=""/> | 124 <param name="y_datum_max" argument="-model:linear:y_datum_max" type="float" optional="true" value="1000000000000000.0" label="Maximum y value" help=""/> |
107 </section> | 125 </section> |
108 <section name="b_spline" title="Parameters for 'b_spline' model" help="" expanded="false"> | 126 <section name="b_spline" title="Parameters for 'b_spline' model" help="" expanded="false"> |
109 <param name="wavelength" argument="-model:b_spline:wavelength" type="float" optional="true" min="0.0" value="0.0" label="Determines the amount of smoothing by setting the number of nodes for the B-spline" help="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"/> | 127 <param name="wavelength" argument="-model:b_spline:wavelength" type="float" optional="true" min="0.0" value="0.0" label="Determines the amount of smoothing by setting the number of nodes for the B-spline" help="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"/> |
110 <param name="num_nodes" argument="-model:b_spline:num_nodes" type="integer" optional="true" min="0" value="5" label="Number of nodes for B-spline fitting" help="Overrides 'wavelength' if set (to two or greater). A lower value means more smoothing"/> | 128 <param name="num_nodes" argument="-model:b_spline:num_nodes" type="integer" optional="true" min="0" value="5" label="Number of nodes for B-spline fitting" help="Overrides 'wavelength' if set (to two or greater). A lower value means more smoothing"/> |
111 <param name="extrapolate" argument="-model:b_spline:extrapolate" display="radio" type="select" optional="false" label="Method to use for extrapolation beyond the original data range" help="'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)"> | 129 <param name="extrapolate" argument="-model:b_spline:extrapolate" type="select" optional="true" label="Method to use for extrapolation beyond the original data range" help="'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)"> |
112 <option value="linear" selected="true">linear</option> | 130 <option value="linear" selected="true">linear</option> |
113 <option value="b_spline">b_spline</option> | 131 <option value="b_spline">b_spline</option> |
114 <option value="constant">constant</option> | 132 <option value="constant">constant</option> |
115 <option value="global_linear">global_linear</option> | 133 <option value="global_linear">global_linear</option> |
116 <expand macro="list_string_san"/> | 134 <expand macro="list_string_san" name="extrapolate"/> |
117 </param> | 135 </param> |
118 <param name="boundary_condition" argument="-model:b_spline:boundary_condition" type="integer" optional="true" min="0" max="2" value="2" label="Boundary condition at B-spline endpoints: 0 (value zero), 1 (first derivative zero) or 2 (second derivative zero)" help=""/> | 136 <param name="boundary_condition" argument="-model:b_spline:boundary_condition" type="integer" optional="true" min="0" max="2" value="2" label="Boundary condition at B-spline endpoints: 0 (value zero), 1 (first derivative zero) or 2 (second derivative zero)" help=""/> |
119 </section> | 137 </section> |
120 <section name="lowess" title="Parameters for 'lowess' model" help="" expanded="false"> | 138 <section name="lowess" title="Parameters for 'lowess' model" help="" expanded="false"> |
121 <param name="span" argument="-model:lowess:span" type="float" optional="true" min="0.0" max="1.0" value="0.666666666666667" label="Fraction of datapoints (f) to use for each local regression (determines the amount of smoothing)" help="Choosing this parameter in the range .2 to .8 usually results in a good fit"/> | 139 <param name="span" argument="-model:lowess:span" type="float" optional="true" min="0.0" max="1.0" value="0.666666666666667" label="Fraction of datapoints (f) to use for each local regression (determines the amount of smoothing)" help="Choosing this parameter in the range .2 to .8 usually results in a good fit"/> |
122 <param name="num_iterations" argument="-model:lowess:num_iterations" type="integer" optional="true" min="0" value="3" label="Number of robustifying iterations for lowess fitting" help=""/> | 140 <param name="num_iterations" argument="-model:lowess:num_iterations" type="integer" optional="true" min="0" value="3" label="Number of robustifying iterations for lowess fitting" help=""/> |
123 <param name="delta" argument="-model:lowess:delta" type="float" optional="true" 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="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"/> | 141 <param name="delta" argument="-model:lowess:delta" type="float" optional="true" 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="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"/> |
124 <param name="interpolation_type" argument="-model:lowess:interpolation_type" display="radio" type="select" optional="false" label="Method to use for interpolation between datapoints computed by lowess" help="'linear': Linear interpolation. 'cspline': Use the cubic spline for interpolation. 'akima': Use an akima spline for interpolation"> | 142 <param name="interpolation_type" argument="-model:lowess:interpolation_type" type="select" optional="true" label="Method to use for interpolation between datapoints computed by lowess" help="'linear': Linear interpolation. 'cspline': Use the cubic spline for interpolation. 'akima': Use an akima spline for interpolation"> |
125 <option value="linear">linear</option> | 143 <option value="linear">linear</option> |
126 <option value="cspline" selected="true">cspline</option> | 144 <option value="cspline" selected="true">cspline</option> |
127 <option value="akima">akima</option> | 145 <option value="akima">akima</option> |
128 <expand macro="list_string_san"/> | 146 <expand macro="list_string_san" name="interpolation_type"/> |
129 </param> | 147 </param> |
130 <param name="extrapolation_type" argument="-model:lowess:extrapolation_type" display="radio" type="select" optional="false" label="Method to use for extrapolation outside the data range" help="'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"> | 148 <param name="extrapolation_type" argument="-model:lowess:extrapolation_type" type="select" optional="true" label="Method to use for extrapolation outside the data range" help="'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"> |
131 <option value="two-point-linear">two-point-linear</option> | 149 <option value="two-point-linear">two-point-linear</option> |
132 <option value="four-point-linear" selected="true">four-point-linear</option> | 150 <option value="four-point-linear" selected="true">four-point-linear</option> |
133 <option value="global-linear">global-linear</option> | 151 <option value="global-linear">global-linear</option> |
134 <expand macro="list_string_san"/> | 152 <expand macro="list_string_san" name="extrapolation_type"/> |
135 </param> | 153 </param> |
136 </section> | 154 </section> |
137 <section name="interpolated" title="Parameters for 'interpolated' model" help="" expanded="false"> | 155 <section name="interpolated" title="Parameters for 'interpolated' model" help="" expanded="false"> |
138 <param name="interpolation_type" argument="-model:interpolated:interpolation_type" display="radio" type="select" optional="false" label="Type of interpolation to apply" help=""> | 156 <param name="interpolation_type" argument="-model:interpolated:interpolation_type" type="select" optional="true" label="Type of interpolation to apply" help=""> |
139 <option value="linear">linear</option> | 157 <option value="linear">linear</option> |
140 <option value="cspline" selected="true">cspline</option> | 158 <option value="cspline" selected="true">cspline</option> |
141 <option value="akima">akima</option> | 159 <option value="akima">akima</option> |
142 <expand macro="list_string_san"/> | 160 <expand macro="list_string_san" name="interpolation_type"/> |
143 </param> | 161 </param> |
144 <param name="extrapolation_type" argument="-model:interpolated:extrapolation_type" display="radio" type="select" optional="false" 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="Note that global-linear may not be continuous at the border"> | 162 <param name="extrapolation_type" argument="-model:interpolated:extrapolation_type" type="select" optional="true" 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="Note that global-linear may not be continuous at the border"> |
145 <option value="two-point-linear" selected="true">two-point-linear</option> | 163 <option value="two-point-linear" selected="true">two-point-linear</option> |
146 <option value="four-point-linear">four-point-linear</option> | 164 <option value="four-point-linear">four-point-linear</option> |
147 <option value="global-linear">global-linear</option> | 165 <option value="global-linear">global-linear</option> |
148 <expand macro="list_string_san"/> | 166 <expand macro="list_string_san" name="extrapolation_type"/> |
149 </param> | 167 </param> |
150 </section> | 168 </section> |
151 </section> | 169 </section> |
152 <expand macro="adv_opts_macro"> | 170 <expand macro="adv_opts_macro"> |
153 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> | 171 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> |
154 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> | 172 <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> |
155 <expand macro="list_string_san"/> | 173 <expand macro="list_string_san" name="test"/> |
156 </param> | 174 </param> |
157 </expand> | 175 </expand> |
158 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> | 176 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> |
159 <option value="out_FLAG">out (Output files (same file type as 'in'))</option> | 177 <option value="out_FLAG">out (Output files (same file type as 'in'))</option> |
160 <option value="trafo_out_FLAG">trafo_out (Transformation output files)</option> | 178 <option value="trafo_out_FLAG">trafo_out (Transformation output files)</option> |
161 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> | 179 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> |
162 </param> | 180 </param> |
163 </inputs> | 181 </inputs> |
164 <outputs> | 182 <outputs> |
165 <collection type="list" name="out" label="${tool.name} on ${on_string}: out"> | 183 <collection type="list" name="out" label="${tool.name} on ${on_string}: out"> |
166 <discover_datasets directory="out" format="mzml" pattern="__name__"/> | 184 <discover_datasets directory="out" recurse="true" format="mzml" pattern="__name__"/> |
167 <filter>OPTIONAL_OUTPUTS is not None and "out_FLAG" in OPTIONAL_OUTPUTS</filter> | 185 <filter>OPTIONAL_OUTPUTS is not None and "out_FLAG" in OPTIONAL_OUTPUTS</filter> |
168 </collection> | 186 </collection> |
169 <collection type="list" name="trafo_out" label="${tool.name} on ${on_string}: trafo_out"> | 187 <collection type="list" name="trafo_out" label="${tool.name} on ${on_string}: trafo_out"> |
170 <discover_datasets directory="trafo_out" format="trafoxml" pattern="__name__"/> | 188 <discover_datasets directory="trafo_out" recurse="true" format="trafoxml" pattern="__name__"/> |
171 <filter>OPTIONAL_OUTPUTS is not None and "trafo_out_FLAG" in OPTIONAL_OUTPUTS</filter> | 189 <filter>OPTIONAL_OUTPUTS is not None and "trafo_out_FLAG" in OPTIONAL_OUTPUTS</filter> |
172 </collection> | 190 </collection> |
173 <data name="stdout" format="txt" label="${tool.name} on ${on_string}: stdout"> | 191 <data name="stdout" format="txt" label="${tool.name} on ${on_string}: stdout"> |
174 <filter>OPTIONAL_OUTPUTS is None</filter> | 192 <filter>OPTIONAL_OUTPUTS is None</filter> |
175 </data> | 193 </data> |
176 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> | 194 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> |
177 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> | 195 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> |
178 </data> | 196 </data> |
179 </outputs> | 197 </outputs> |
180 <tests> | 198 <tests><!-- TOPP_MapAlignerSpectrum_1 --> |
181 <expand macro="autotest_MapAlignerSpectrum"/> | 199 <test expect_num_outputs="2"> |
182 <expand macro="manutest_MapAlignerSpectrum"/> | 200 <section name="adv_opts"> |
201 <param name="force" value="false"/> | |
202 <param name="test" value="true"/> | |
203 </section> | |
204 <conditional name="in_cond"> | |
205 <param name="in" value="MapAlignerSpectrum_1_input1.mzML,MapAlignerSpectrum_1_input2.mzML,MapAlignerSpectrum_1_input3.mzML"/> | |
206 </conditional> | |
207 <output_collection name="out" count="3"/> | |
208 <section name="algorithm"> | |
209 <param name="gapcost" value="1.0"/> | |
210 <param name="affinegapcost" value="0.5"/> | |
211 <param name="cutoff_score" value="0.7"/> | |
212 <param name="bucketsize" value="100"/> | |
213 <param name="anchorpoints" value="100"/> | |
214 <param name="mismatchscore" value="-5.0"/> | |
215 <param name="scorefunction" value="SteinScottImproveScore"/> | |
216 </section> | |
217 <section name="model"> | |
218 <param name="type" value="interpolated"/> | |
219 <section name="linear"> | |
220 <param name="symmetric_regression" value="false"/> | |
221 <param name="x_weight"/> | |
222 <param name="y_weight"/> | |
223 <param name="x_datum_min" value="1e-15"/> | |
224 <param name="x_datum_max" value="1000000000000000.0"/> | |
225 <param name="y_datum_min" value="1e-15"/> | |
226 <param name="y_datum_max" value="1000000000000000.0"/> | |
227 </section> | |
228 <section name="b_spline"> | |
229 <param name="wavelength" value="0.0"/> | |
230 <param name="num_nodes" value="5"/> | |
231 <param name="extrapolate" value="linear"/> | |
232 <param name="boundary_condition" value="2"/> | |
233 </section> | |
234 <section name="lowess"> | |
235 <param name="span" value="0.666666666666667"/> | |
236 <param name="num_iterations" value="3"/> | |
237 <param name="delta" value="-1.0"/> | |
238 <param name="interpolation_type" value="cspline"/> | |
239 <param name="extrapolation_type" value="four-point-linear"/> | |
240 </section> | |
241 <section name="interpolated"> | |
242 <param name="interpolation_type" value="cspline"/> | |
243 <param name="extrapolation_type" value="two-point-linear"/> | |
244 </section> | |
245 </section> | |
246 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_FLAG"/> | |
247 <output name="ctd_out" ftype="xml"> | |
248 <assert_contents> | |
249 <is_valid_xml/> | |
250 </assert_contents> | |
251 </output> | |
252 </test> | |
183 </tests> | 253 </tests> |
184 <help><![CDATA[Corrects retention time distortions between maps by spectrum alignment. | 254 <help><![CDATA[Corrects retention time distortions between maps by spectrum alignment. |
185 | 255 |
186 | 256 |
187 For more information, visit http://www.openms.de/doxygen/release/2.6.0/html/TOPP_MapAlignerSpectrum.html]]></help> | 257 For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/TOPP_MapAlignerSpectrum.html]]></help> |
188 <expand macro="references"/> | 258 <expand macro="references"/> |
189 </tool> | 259 </tool> |