comparison MapAlignerPoseClustering.xml @ 4:6ead64a594bd draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/openms commit 7a5239910fda9ed90cca286a38855703b40b1b56-dirty
author bgruening
date Wed, 27 Jan 2016 10:06:49 -0500
parents 3d84209d3178
children
comparison
equal deleted inserted replaced
3:ec62782f6c68 4:6ead64a594bd
1 <?xml version='1.0' encoding='UTF-8'?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <tool id="MapAlignerPoseClustering" name="MapAlignerPoseClustering" version="1.12.0"> 2 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTD2Galaxy.-->
3 <description>Corrects retention time distortions between maps using a pose clustering approach.</description> 3 <!--Proposed Tool Section: [Map Alignment]-->
4 <macros> 4 <tool id="MapAlignerPoseClustering" name="MapAlignerPoseClustering" version="2.0.0">
5 <token name="@EXECUTABLE@">MapAlignerPoseClustering</token> 5 <description>Corrects retention time distortions between maps using a pose clustering approach.</description>
6 <import>macros.xml</import> 6 <macros>
7 </macros> 7 <token name="@EXECUTABLE@">MapAlignerPoseClustering</token>
8 <expand macro="stdio"/> 8 <import>macros.xml</import>
9 <expand macro="requirements"/> 9 </macros>
10 <command>MapAlignerPoseClustering 10 <expand macro="references"/>
11 <expand macro="stdio"/>
12 <expand macro="requirements"/>
13 <command>MapAlignerPoseClustering
11 14
12 -in ${param_in} 15 -in
13 -out ${param_out} 16 #for token in $param_in:
14 -trafo_out ${param_trafo_out} 17 $token
15 -threads \${GALAXY_SLOTS:-24} 18 #end for
16 -reference:file ${param_file} 19
17 -reference:index ${param_index} 20 #if $rep_param_out:
18 -algorithm:max_num_peaks_considered ${param_max_num_peaks_considered} 21 -out
19 -algorithm:superimposer:mz_pair_max_distance ${param_mz_pair_max_distance} 22 #for token in $rep_param_out:
20 -algorithm:superimposer:num_used_points ${param_num_used_points} 23 #if &quot; &quot; in str(token):
21 -algorithm:superimposer:scaling_bucket_size ${param_scaling_bucket_size} 24 &quot;$token.param_out&quot;
22 -algorithm:superimposer:shift_bucket_size ${param_shift_bucket_size} 25 #else
23 -algorithm:pairfinder:second_nearest_gap ${param_second_nearest_gap} 26 $token.param_out
24 ${param_use_identifications} 27 #end if
25 ${param_ignore_charge} 28 #end for
26 -algorithm:pairfinder:distance_RT:max_difference ${param_max_difference} 29 #end if
27 -algorithm:pairfinder:distance_MZ:max_difference ${param_max_difference} 30
28 -algorithm:pairfinder:distance_MZ:unit ${param_unit} 31 #if $rep_param_trafo_out:
32 -trafo_out
33 #for token in $rep_param_trafo_out:
34 #if &quot; &quot; in str(token):
35 &quot;$token.param_trafo_out&quot;
36 #else
37 $token.param_trafo_out
38 #end if
39 #end for
40 #end if
41 -threads \${GALAXY_SLOTS:-24}
42 #if $param_reference_file:
43 -reference:file $param_reference_file
44 #end if
45 #if $param_reference_index:
46 -reference:index $param_reference_index
47 #end if
48 #if $param_algorithm_max_num_peaks_considered:
49 -algorithm:max_num_peaks_considered $param_algorithm_max_num_peaks_considered
50 #end if
51 #if $param_algorithm_superimposer_mz_pair_max_distance:
52 -algorithm:superimposer:mz_pair_max_distance $param_algorithm_superimposer_mz_pair_max_distance
53 #end if
54 #if $param_algorithm_superimposer_num_used_points:
55 -algorithm:superimposer:num_used_points $param_algorithm_superimposer_num_used_points
56 #end if
57 #if $param_algorithm_superimposer_scaling_bucket_size:
58 -algorithm:superimposer:scaling_bucket_size $param_algorithm_superimposer_scaling_bucket_size
59 #end if
60 #if $param_algorithm_superimposer_shift_bucket_size:
61 -algorithm:superimposer:shift_bucket_size $param_algorithm_superimposer_shift_bucket_size
62 #end if
63 #if $param_algorithm_pairfinder_second_nearest_gap:
64 -algorithm:pairfinder:second_nearest_gap $param_algorithm_pairfinder_second_nearest_gap
65 #end if
66 #if $param_algorithm_pairfinder_use_identifications:
67 -algorithm:pairfinder:use_identifications
68 #end if
69 #if $param_algorithm_pairfinder_ignore_charge:
70 -algorithm:pairfinder:ignore_charge
71 #end if
72 #if $param_algorithm_pairfinder_distance_RT_max_difference:
73 -algorithm:pairfinder:distance_RT:max_difference $param_algorithm_pairfinder_distance_RT_max_difference
74 #end if
75 #if $param_algorithm_pairfinder_distance_MZ_max_difference:
76 -algorithm:pairfinder:distance_MZ:max_difference $param_algorithm_pairfinder_distance_MZ_max_difference
77 #end if
78 #if $param_algorithm_pairfinder_distance_MZ_unit:
79 -algorithm:pairfinder:distance_MZ:unit
80 #if &quot; &quot; in str($param_algorithm_pairfinder_distance_MZ_unit):
81 &quot;$param_algorithm_pairfinder_distance_MZ_unit&quot;
82 #else
83 $param_algorithm_pairfinder_distance_MZ_unit
84 #end if
85 #end if
29 #if $adv_opts.adv_opts_selector=='advanced': 86 #if $adv_opts.adv_opts_selector=='advanced':
30 -algorithm:superimposer:rt_pair_distance_fraction ${adv_opts.param_rt_pair_distance_fraction} 87 #if $adv_opts.param_force:
31 -algorithm:superimposer:max_shift ${adv_opts.param_max_shift} 88 -force
32 -algorithm:superimposer:max_scaling ${adv_opts.param_max_scaling} 89 #end if
33 -algorithm:superimposer:dump_buckets ${adv_opts.param_dump_buckets} 90 #if $adv_opts.param_algorithm_superimposer_rt_pair_distance_fraction:
34 -algorithm:superimposer:dump_pairs ${adv_opts.param_dump_pairs} 91 -algorithm:superimposer:rt_pair_distance_fraction $adv_opts.param_algorithm_superimposer_rt_pair_distance_fraction
35 -algorithm:pairfinder:distance_RT:exponent ${adv_opts.param_exponent} 92 #end if
36 -algorithm:pairfinder:distance_RT:weight ${adv_opts.param_weight} 93 #if $adv_opts.param_algorithm_superimposer_max_shift:
37 -algorithm:pairfinder:distance_MZ:exponent ${adv_opts.param_exponent} 94 -algorithm:superimposer:max_shift $adv_opts.param_algorithm_superimposer_max_shift
38 -algorithm:pairfinder:distance_MZ:weight ${adv_opts.param_weight} 95 #end if
39 -algorithm:pairfinder:distance_intensity:exponent ${adv_opts.param_exponent} 96 #if $adv_opts.param_algorithm_superimposer_max_scaling:
40 -algorithm:pairfinder:distance_intensity:weight ${adv_opts.param_weight} 97 -algorithm:superimposer:max_scaling $adv_opts.param_algorithm_superimposer_max_scaling
98 #end if
99 #if $adv_opts.param_algorithm_superimposer_dump_buckets:
100 -algorithm:superimposer:dump_buckets &quot;$adv_opts.param_algorithm_superimposer_dump_buckets&quot;
101 #end if
102 #if $adv_opts.param_algorithm_superimposer_dump_pairs:
103 -algorithm:superimposer:dump_pairs &quot;$adv_opts.param_algorithm_superimposer_dump_pairs&quot;
104 #end if
105 #if $adv_opts.param_algorithm_pairfinder_distance_RT_exponent:
106 -algorithm:pairfinder:distance_RT:exponent $adv_opts.param_algorithm_pairfinder_distance_RT_exponent
107 #end if
108 #if $adv_opts.param_algorithm_pairfinder_distance_RT_weight:
109 -algorithm:pairfinder:distance_RT:weight $adv_opts.param_algorithm_pairfinder_distance_RT_weight
110 #end if
111 #if $adv_opts.param_algorithm_pairfinder_distance_MZ_exponent:
112 -algorithm:pairfinder:distance_MZ:exponent $adv_opts.param_algorithm_pairfinder_distance_MZ_exponent
113 #end if
114 #if $adv_opts.param_algorithm_pairfinder_distance_MZ_weight:
115 -algorithm:pairfinder:distance_MZ:weight $adv_opts.param_algorithm_pairfinder_distance_MZ_weight
116 #end if
117 #if $adv_opts.param_algorithm_pairfinder_distance_intensity_exponent:
118 -algorithm:pairfinder:distance_intensity:exponent $adv_opts.param_algorithm_pairfinder_distance_intensity_exponent
119 #end if
120 #if $adv_opts.param_algorithm_pairfinder_distance_intensity_weight:
121 -algorithm:pairfinder:distance_intensity:weight $adv_opts.param_algorithm_pairfinder_distance_intensity_weight
122 #end if
41 #end if 123 #end if
42 </command> 124 </command>
43 <inputs> 125 <inputs>
44 <param name="param_in" type="data" format="mzML,featureXML" optional="False" size="20" label="Input files separated by blanks (all must have the same file type)" help="(-in)"/> 126 <param format="xml,mzml" help="(-in) " label="Input files to align (all must have the same file type)" multiple="true" name="param_in" optional="False" size="30" type="data">
45 <param name="param_file" type="data" format="mzML,featureXML" optional="True" label="File to use as reference (same file format as input files required)" help="(-file)"/> 127 <sanitizer>
46 <param name="param_index" type="integer" min="0" optional="True" value="0" label="Use one of the input files as reference ('1' for the first file, etc.).#br#If '0', no explicit reference is set - the algorithm will select a reference." help="(-index)"/> 128 <valid initial="string.printable">
47 <param name="param_max_num_peaks_considered" type="integer" min="-1" optional="True" value="1000" label="The maximal number of peaks/features to be considered per map. To use all, set to '-1'." help="(-max_num_peaks_considered)"/> 129 <remove value="'"/>
48 <param name="param_mz_pair_max_distance" type="float" min="0.0" optional="True" value="0.5" label="Maximum of m/z deviation of corresponding elements in different maps. This condition applies to the pairs considered in hashing." help="(-mz_pair_max_distance)"/> 130 <remove value="&quot;"/>
49 <param name="param_num_used_points" type="integer" min="-1" optional="True" value="2000" label="Maximum number of elements considered in each map (selected by intensity). Use this to reduce the running time and to disregard weak signals during alignment. For using all points, set this to -1." help="(-num_used_points)"/> 131 </valid>
50 <param name="param_scaling_bucket_size" type="float" min="0.0" optional="True" value="0.005" label="The scaling of the retention time interval is being hashed into buckets of this size during pose clustering. A good choice for this would be a bit smaller than the error you would expect from repeated runs." help="(-scaling_bucket_size)"/> 132 </sanitizer>
51 <param name="param_shift_bucket_size" type="float" min="0.0" optional="True" value="3.0" label="The shift at the lower (respectively, higher) end of the retention time interval is being hashed into buckets of this size during pose clustering. A good choice for this would be about the time between consecutive MS scans." help="(-shift_bucket_size)"/> 133 </param>
52 <param name="param_second_nearest_gap" type="float" min="1.0" optional="True" value="2.0" label="The distance to the second nearest neighbors must be larger by this factor than the distance to the matching element itself." help="(-second_nearest_gap)"/> 134 <param format="xml,mzml" help="(-file) " label="File to use as reference (same file format as input files required)" name="param_reference_file" optional="True" type="data"/>
53 <param name="param_use_identifications" type="boolean" truevalue="-algorithm:pairfinder:use_identifications true" falsevalue="-algorithm:pairfinder:use_identifications false" checked="false" optional="True" label="Never link features that are annotated with different peptides (only the best hit per peptide identification is taken into account)." help="(-use_identifications)"/> 135 <param help="(-index) &lt;br&gt;If '0', no explicit reference is set - the algorithm will select a reference" label="Use one of the input files as reference ('1' for the first file, etc.)" min="0" name="param_reference_index" optional="True" type="integer" value="0"/>
54 <param name="param_ignore_charge" type="boolean" truevalue="-algorithm:pairfinder:ignore_charge true" falsevalue="-algorithm:pairfinder:ignore_charge false" checked="false" optional="True" label="Compare features normally even if their charge states are different" help="(-ignore_charge)"/> 136 <param help="(-max_num_peaks_considered) To use all, set to '-1'" label="The maximal number of peaks/features to be considered per map" min="-1" name="param_algorithm_max_num_peaks_considered" optional="True" type="integer" value="1000"/>
55 <param name="param_max_difference" type="float" min="0.0" optional="True" value="100.0" label="Maximum allowed difference in RT in seconds" help="(-max_difference)"/> 137 <param help="(-mz_pair_max_distance) This condition applies to the pairs considered in hashing" label="Maximum of m/z deviation of corresponding elements in different maps" min="0.0" name="param_algorithm_superimposer_mz_pair_max_distance" optional="True" type="float" value="0.5"/>
56 <param name="param_max_difference" type="float" min="0.0" optional="True" value="0.3" label="Maximum allowed difference in m/z (unit defined by 'unit')" help="(-max_difference)"/> 138 <param help="(-num_used_points) Use this to reduce the running time and to disregard weak signals during alignment. For using all points, set this to -1" label="Maximum number of elements considered in each map (selected by intensity)" min="-1" name="param_algorithm_superimposer_num_used_points" optional="True" type="integer" value="2000"/>
57 <param name="param_unit" type="select" optional="True" value="Da" label="Unit of the 'max_difference' parameter" help="(-unit)"> 139 <param help="(-scaling_bucket_size) A good choice for this would be a bit smaller than the error you would expect from repeated runs" label="The scaling of the retention time interval is being hashed into buckets of this size during pose clustering" min="0.0" name="param_algorithm_superimposer_scaling_bucket_size" optional="True" type="float" value="0.005"/>
58 <option value="Da">Da</option> 140 <param help="(-shift_bucket_size) A good choice for this would be about the time between consecutive MS scans" label="The shift at the lower (respectively, higher) end of the retention time interval is being hashed into buckets of this size during pose clustering" min="0.0" name="param_algorithm_superimposer_shift_bucket_size" optional="True" type="float" value="3.0"/>
59 <option value="ppm">ppm</option> 141 <param help="(-second_nearest_gap) " label="Only link features whose distance to the second nearest neighbors (for both sides) is larger by 'second_nearest_gap' than the distance between the matched pair itself" min="1.0" name="param_algorithm_pairfinder_second_nearest_gap" optional="True" type="float" value="2.0"/>
60 </param> 142 <param checked="false" falsevalue="" help="(-use_identifications) " label="Never link features that are annotated with different peptides (features without ID's always match; only the best hit per peptide identification is considered)" name="param_algorithm_pairfinder_use_identifications" optional="True" truevalue="-algorithm:pairfinder:use_identifications" type="boolean"/>
61 <expand macro="advanced_options"> 143 <param checked="false" falsevalue="" help="(-ignore_charge) " label="false [default]: pairing requires equal charge state (or at least one unknown charge '0'); true: Pairing irrespective of charge state" name="param_algorithm_pairfinder_ignore_charge" optional="True" truevalue="-algorithm:pairfinder:ignore_charge" type="boolean"/>
62 <param name="param_rt_pair_distance_fraction" type="float" min="0.0" max="1.0" optional="True" value="0.1" label="Within each of the two maps, the pairs considered for pose clustering must be separated by at least this fraction of the total elution time interval (i.e., max - min). " help="(-rt_pair_distance_fraction)"/> 144 <param help="(-max_difference) " label="Never pair features with a larger RT distance (in seconds)" min="0.0" name="param_algorithm_pairfinder_distance_RT_max_difference" optional="True" type="float" value="100.0"/>
63 <param name="param_max_shift" type="float" min="0.0" optional="True" value="1000.0" label="Maximal shift which is considered during histogramming. This applies for both directions." help="(-max_shift)"/> 145 <param help="(-max_difference) " label="Never pair features with larger m/z distance (unit defined by 'unit')" min="0.0" name="param_algorithm_pairfinder_distance_MZ_max_difference" optional="True" type="float" value="0.3"/>
64 <param name="param_max_scaling" type="float" min="1.0" optional="True" value="2.0" label="Maximal scaling which is considered during histogramming. The minimal scaling is the reciprocal of this." help="(-max_scaling)"/> 146 <param help="(-unit) " label="Unit of the 'max_difference' paramete" name="param_algorithm_pairfinder_distance_MZ_unit" optional="True" type="select" value="Da">
65 <param name="param_dump_buckets" type="text" size="20" label="[DEBUG] If non-empty, base filename where hash table buckets will be dumped to. A serial number for each invocation will be appended automatically." help="(-dump_buckets)"/> 147 <option value="Da">Da</option>
66 <param name="param_dump_pairs" type="text" size="20" label="[DEBUG] If non-empty, base filename where the individual hashed pairs will be dumped to (large!). A serial number for each invocation will be appended automatically." help="(-dump_pairs)"/> 148 <option value="ppm">ppm</option>
67 <param name="param_exponent" type="float" min="0.0" optional="True" value="1.0" label="Normalized RT differences are raised to this power (using 1 or 2 will be fast, everything else is REALLY slow)" help="(-exponent)"/> 149 </param>
68 <param name="param_weight" type="float" min="0.0" optional="True" value="1.0" label="RT distances are weighted by this factor" help="(-weight)"/> 150 <expand macro="advanced_options">
69 <param name="param_exponent" type="float" min="0.0" optional="True" value="2.0" label="Normalized m/z differences are raised to this power (using 1 or 2 will be fast, everything else is REALLY slow)" help="(-exponent)"/> 151 <param checked="false" falsevalue="" help="(-force) " label="Overwrite tool specific checks" name="param_force" optional="True" truevalue="-force" type="boolean"/>
70 <param name="param_weight" type="float" min="0.0" optional="True" value="1.0" label="m/z distances are weighted by this factor" help="(-weight)"/> 152 <param help="(-rt_pair_distance_fraction) " label="Within each of the two maps, the pairs considered for pose clustering must be separated by at least this fraction of the total elution time interval (i.e., max - min)" max="1.0" min="0.0" name="param_algorithm_superimposer_rt_pair_distance_fraction" optional="True" type="float" value="0.1"/>
71 <param name="param_exponent" type="float" min="0.0" optional="True" value="1.0" label="Differences in relative intensity are raised to this power (using 1 or 2 will be fast, everything else is REALLY slow)" help="(-exponent)"/> 153 <param help="(-max_shift) This applies for both directions" label="Maximal shift which is considered during histogramming (in seconds)" min="0.0" name="param_algorithm_superimposer_max_shift" optional="True" type="float" value="1000.0"/>
72 <param name="param_weight" type="float" min="0.0" optional="True" value="0.0" label="Distances based on relative intensity are weighted by this factor" help="(-weight)"/> 154 <param help="(-max_scaling) The minimal scaling is the reciprocal of this" label="Maximal scaling which is considered during histogramming" min="1.0" name="param_algorithm_superimposer_max_scaling" optional="True" type="float" value="2.0"/>
73 </expand> 155 <param help="(-dump_buckets) A serial number for each invocation will be appended automatically" label="[DEBUG] If non-empty, base filename where hash table buckets will be dumped to" name="param_algorithm_superimposer_dump_buckets" size="30" type="text">
74 </inputs> 156 <sanitizer>
75 <outputs> 157 <valid initial="string.printable">
76 <data name="param_out" label="Output files separated by blanks. Either 'out' or 'trafo_out' has to be provided. They can be used together." format="featureXML"> 158 <remove value="'"/>
77 <change_format> 159 <remove value="&quot;"/>
78 <when input="param_out_type" value="mzML" format="mzML"/> 160 </valid>
79 </change_format> 161 </sanitizer>
80 </data> 162 </param>
81 <data name="param_trafo_out" label="Transformation output files separated by blanks. Either 'out' or 'trafo_out' has to be provided. They can be used together." format="data"/> 163 <param help="(-dump_pairs) A serial number for each invocation will be appended automatically" label="[DEBUG] If non-empty, base filename where the individual hashed pairs will be dumped to (large!)" name="param_algorithm_superimposer_dump_pairs" size="30" type="text">
82 </outputs> 164 <sanitizer>
83 <help>**What it does** 165 <valid initial="string.printable">
84 166 <remove value="'"/>
85 Corrects retention time distortions between maps using a pose clustering approach. 167 <remove value="&quot;"/>
168 </valid>
169 </sanitizer>
170 </param>
171 <param help="(-exponent) " label="Normalized RT differences ([0-1], relative to 'max_difference') are raised to this power (using 1 or 2 will be fast, everything else is REALLY slow)" min="0.0" name="param_algorithm_pairfinder_distance_RT_exponent" optional="True" type="float" value="1.0"/>
172 <param help="(-weight) " label="Final RT distances are weighted by this facto" min="0.0" name="param_algorithm_pairfinder_distance_RT_weight" optional="True" type="float" value="1.0"/>
173 <param help="(-exponent) " label="Normalized ([0-1], relative to 'max_difference') m/z differences are raised to this power (using 1 or 2 will be fast, everything else is REALLY slow)" min="0.0" name="param_algorithm_pairfinder_distance_MZ_exponent" optional="True" type="float" value="2.0"/>
174 <param help="(-weight) " label="Final m/z distances are weighted by this facto" min="0.0" name="param_algorithm_pairfinder_distance_MZ_weight" optional="True" type="float" value="1.0"/>
175 <param help="(-exponent) " label="Differences in relative intensity ([0-1]) are raised to this power (using 1 or 2 will be fast, everything else is REALLY slow)" min="0.0" name="param_algorithm_pairfinder_distance_intensity_exponent" optional="True" type="float" value="1.0"/>
176 <param help="(-weight) " label="Final intensity distances are weighted by this facto" min="0.0" name="param_algorithm_pairfinder_distance_intensity_weight" optional="True" type="float" value="0.0"/>
177 </expand>
178 </inputs>
179 <outputs>
180 <data format="input" metadata_source="param_in" name="param_out"/>
181 <data format="trafoxml" name="param_trafo_out"/>
182 </outputs>
183 <help>Corrects retention time distortions between maps using a pose clustering approach.
86 184
87 185
88 For more information, visit http://ftp.mi.fu-berlin.de/OpenMS/release-documentation/html/TOPP_MapAlignerPoseClustering.html 186 For more information, visit http://ftp.mi.fu-berlin.de/OpenMS/release-documentation/html/TOPP_MapAlignerPoseClustering.html</help>
89 187 </tool>
90 @REFERENCES@
91 </help>
92 </tool>