Mercurial > repos > galaxyp > feature_alignment
comparison feature_alignment.xml @ 0:7ac5166f8bbc draft default tip
"planemo upload for repository https://github.com/msproteomicstools/msproteomicstools/blob/master/TRIC-README.md commit 75f5dee4cc5cb3dbfac3d1d32d8bceb2a22634d7"
author | galaxyp |
---|---|
date | Fri, 10 Dec 2021 00:30:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ac5166f8bbc |
---|---|
1 <tool id="feature_alignment" name="TRIC" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@"> | |
2 <description>integrates information from all available runs via a graph-based alignment strategy</description> | |
3 <macros> | |
4 <token name="@TOOL_VERSION@">0.11.0</token> | |
5 <token name="@GALAXY_VERSION@">0</token> | |
6 <import>macros.xml</import> | |
7 </macros> | |
8 <requirements> | |
9 <requirement type="package" version="@TOOL_VERSION@">msproteomicstools</requirement> | |
10 <requirement type="package" version="2.8.6">rpy2</requirement> | |
11 </requirements> | |
12 <version_command>feature_alignment.py --version</version_command> | |
13 <command detect_errors="exit_code"><![CDATA[ | |
14 feature_alignment.py | |
15 --in #echo '' ''.join([ str($file) for $file in $inputs ]) | |
16 --out out.tsv | |
17 --out_matrix out_matrix.tsv | |
18 --out_ids out_ids.tsv | |
19 --file_format '$iformat' | |
20 --method '$method_sel.method' | |
21 --matrix_output_method '$matrix_output_method' | |
22 --realign_method '$realign_method' | |
23 #if $max_rt_diff_cond.max_rt_diff_sel == 'opt_max_rt_diff_enabled': | |
24 --max_rt_diff '$max_rt_diff_cond.max_rt_diff' | |
25 #end if | |
26 #if $iso_max_rt_diff_cond.iso_max_rt_diff_sel == 'opt_iso_max_rt_diff_enabled': | |
27 --iso_max_rt_diff '$iso_max_rt_diff_cond.iso_max_rt_diff' | |
28 #end if | |
29 #if $frac_selected_cond.frac_selected_sel == 'opt_frac_selected_enabled': | |
30 --frac_selected '$frac_selected_cond.frac_selected' | |
31 #end if | |
32 #if $fdr_cond.fdr_sel == 'opt_target_fdr': | |
33 --target_fdr '$fdr_cond.target_fdr' | |
34 #elif $fdr_cond.fdr_sel == 'opt_fdr_cutoff': | |
35 --fdr_cutoff '$fdr_cond.fdr_cutoff' | |
36 #else: | |
37 --target_fdr '0' | |
38 #end if | |
39 --max_fdr_quality '$max_fdr_quality' | |
40 #if $method_sel.method == 'LocalMST' or $method_sel.method == 'LocalMSTAllCluster': | |
41 --mst:useRTCorrection '$method_sel.mst_useRTCorrection' | |
42 --mst:Stdev_multiplier '$method_sel.mst_Stdev_multiplier' | |
43 --mst:useLocalStdev '$method_sel.mst_useLocalStdev' | |
44 --mst:useReference '$method_sel.mst_useReference' | |
45 #end if | |
46 #if $further_params.disable_isotopic_grouping: | |
47 --disable_isotopic_grouping | |
48 #end if | |
49 #if $further_params.dscore_cond.dscore_sel == 'opt_dscore_enabled': | |
50 --use_dscore_filter | |
51 --dscore_cutoff '$further_params.dscore_cond.dscore_cutoff' | |
52 #end if | |
53 #if $further_params.nr_high_conf_exp_cond.nr_high_conf_exp_sel == 'opt_nr_high_conf_exp_enabled': | |
54 --nr_high_conf_exp '$further_params.nr_high_conf_exp_cond.nr_high_conf_exp' | |
55 #end if | |
56 #if $further_params.readmethod != 'disabled': | |
57 --readmethod '$further_params.readmethod' | |
58 #end if | |
59 #if $further_params.alignment_score_cond.alignment_score_sel == 'opt_alignment_score_enabled': | |
60 --alignment_score '$further_params.alignment_score_cond.alignment_score' | |
61 #end if | |
62 | |
63 #if $iformat == 'openswath': | |
64 && cat out.tsv > '$out' | |
65 #end if | |
66 && cat out_matrix.tsv > '$out_matrix' | |
67 && cat out_ids.tsv > '$out_ids' | |
68 ]]></command> | |
69 <inputs> | |
70 <param name="inputs" type="data" multiple="True" format="txt" label="Output files containing all peakgroups from OpenSWATH (using either mProphet or pyProphet) or Peakview." help="(--in)"/> | |
71 <param name="iformat" type="select" label="Which input file format is used" help="(--file_format)"> | |
72 <option value="openswath" selected="True">OpenSwath</option> | |
73 <option value="mprophet">mProphet (mQuest)</option> | |
74 <option value="peakview">PeakView</option> | |
75 </param> | |
76 <conditional name="method_sel"> | |
77 <param name="method" type="select" label="Which method to use for the clustering" | |
78 help="Note that the MST options will perform a local, MST guided alignment while the other options will use a reference-guided alignment. The global option will also move peaks which are below the selected FDR threshold. (--method)" > | |
79 <option value="best_overall" selected="True">best overall</option> | |
80 <option value="best_cluster_score">best cluster score</option> | |
81 <option value="global_best_cluster_score">global best cluster score</option> | |
82 <option value="global_best_overall">global best overall</option> | |
83 <option value="LocalMST">LocalMST</option> | |
84 <option value="LocalMSTAllCluster">LocalMSTAllCluster</option> | |
85 </param> | |
86 <when value="best_overall"/> | |
87 <when value="best_cluster_score"/> | |
88 <when value="global_best_cluster_score"/> | |
89 <when value="global_best_overall"/> | |
90 <when value="LocalMST"> | |
91 <expand macro="mst_params"/> | |
92 </when> | |
93 <when value="LocalMSTAllCluster"> | |
94 <expand macro="mst_params"/> | |
95 </when> | |
96 </conditional> | |
97 <param name="matrix_output_method" type="select" | |
98 label="Which columns are written besides Intensity" help="(--matrix_output_method)"> | |
99 <option value="none" selected="True">None</option> | |
100 <option value="RT">RT</option> | |
101 <option value="score">Score</option> | |
102 <option value="source">Source</option> | |
103 <option value="full">Full</option> | |
104 </param> | |
105 <param name="realign_method" type="select" label="How to re-align runs in retention time" help="(--realign_method)"> | |
106 <option value="diRT" selected="True">Use only deltaiRT (diRT) from the input file</option> | |
107 <option value="linear">Perform a linear regression using best peakgroups</option> | |
108 <option value="lowess">Use Robust locally weighted regression (lowess smoother)</option> | |
109 <option value="splinePy">Use Python native spline from scikits.datasmooth (slow!)</option> | |
110 <option value="CVSpline">Splines with cross-validation</option> | |
111 <option value="nonCVSpline">Splines without cross-validation</option> | |
112 <option value="WeightedNearestNeighbour">WeightedNearestNeighbour</option> | |
113 <option value="SmoothLLDMedian">SmoothLLDMedian</option> | |
114 <option value="splineR">Perform a spline fit using R</option> | |
115 <option value="splineR_external">Perform a spline fit using R (external)</option> | |
116 <option value="Earth">Use Multivariate Adaptive Regression Splines using py-earth</option> | |
117 <option value="lowess_cython">lowess_cython</option> | |
118 </param> | |
119 <conditional name="max_rt_diff_cond"> | |
120 <param name="max_rt_diff_sel" type="select" label="Enable difference in RT for two aligned features" help="Maximal difference in RT for two aligned features"> | |
121 <option value="opt_max_rt_diff_disabled" selected="True">disabled</option> | |
122 <option value="opt_max_rt_diff_enabled">set difference in RT</option> | |
123 </param> | |
124 <when value="opt_max_rt_diff_disabled"/> | |
125 <when value="opt_max_rt_diff_enabled"> | |
126 <param name="max_rt_diff" type="integer" value="30" label="Difference in RT (in seconds) for two aligned features" help="(--max_rt_diff)"/> | |
127 </when> | |
128 </conditional> | |
129 <conditional name="iso_max_rt_diff_cond"> | |
130 <param name="iso_max_rt_diff_sel" type="select" label="Enable difference in RT for two isotopic channels" help="Maximal difference in RT (in seconds) for two isotopic channels in the same run"> | |
131 <option value="opt_iso_max_rt_diff_disabled" selected="True">disabled</option> | |
132 <option value="opt_iso_max_rt_diff_enabled">set difference in RT</option> | |
133 </param> | |
134 <when value="opt_iso_max_rt_diff_disabled"/> | |
135 <when value="opt_iso_max_rt_diff_enabled"> | |
136 <param name="iso_max_rt_diff" type="integer" value="30" label="Difference in RT (in seconds) for two isotopic channels." help="(--iso_max_rt_diff)" /> | |
137 </when> | |
138 </conditional> | |
139 <conditional name="frac_selected_cond"> | |
140 <param name="frac_selected_sel" type="select" label="Enable fraction of runs" help="Do not write peakgroup if selected in less than this fraction of runs"> | |
141 <option value="opt_frac_selected_disabled" selected="True">disabled</option> | |
142 <option value="opt_frac_selected_enabled">set fraction of runs</option> | |
143 </param> | |
144 <when value="opt_frac_selected_disabled"/> | |
145 <when value="opt_frac_selected_enabled"> | |
146 <param name="frac_selected" type="float" value="0.0" min="0" max="1" label="Fraction of runs" help="(--frac_selected)"/> | |
147 </when> | |
148 </conditional> | |
149 <conditional name="fdr_cond"> | |
150 <param name="fdr_sel" type="select" label="Choose FDR method" help=""> | |
151 <option value="opt_fdr_disabled">disabled</option> | |
152 <option value="opt_target_fdr" selected="True">Target FDR</option> | |
153 <option value="opt_fdr_cutoff">FDR cutoff</option> | |
154 </param> | |
155 <when value="opt_fdr_disabled"/> | |
156 <when value="opt_target_fdr"> | |
157 <param name="target_fdr" type="float" value="0.01" label="Target FDR" help="Refers to the desired FDR on assay level. (--target_fdr)"/> | |
158 </when> | |
159 <when value="opt_fdr_cutoff"> | |
160 <param name="fdr_cutoff" type="float" value="0.01" label="Seeding score cutoff" help="A fixed m-score cutoff which does not take into account the number of runs (use target_fdr instead). (--fdr_cutoff)" /> | |
161 </when> | |
162 </conditional> | |
163 <param name="max_fdr_quality" type="float" value="0.05" min="0" label="Extension score cutoff" | |
164 help="During the extension phase of the algorithm, peakgroups of this quality will still be considered for alignment (in FDR) - it is possible to give a range in the format lower,higher+stepsize,stepsize - e.g. 0,0.31,0.01 (-1 will set it to fdr_cutoff) (--max_fdr_quality)"/> | |
165 <section name="further_params" title="Further parameters" expanded="False"> | |
166 <param name="disable_isotopic_grouping" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Disable grouping of isotopic variants" | |
167 help="Disable grouping of isotopic variants by peptide_group_label, thus disabling matching of isotopic variants of the same peptide across channels. If turned off, each isotopic channel will be matched independently of the other. If enabled, the more certain identification will be used to infer the location of the peak in the other channel. (--disable_isotopic_grouping)"/> | |
168 <conditional name="dscore_cond"> | |
169 <param name="dscore_sel" type="select" label="Enable the filter by d score (this is mainly for speedup)" help=""> | |
170 <option value="opt_dscore_disabled" selected="True">disabled</option> | |
171 <option value="opt_dscore_enabled">Use d score filter</option> | |
172 </param> | |
173 <when value="opt_dscore_disabled"/> | |
174 <when value="opt_dscore_enabled"> | |
175 <param name="dscore_cutoff" type="float" value="1.96" label="d score cut-off" | |
176 help="Quality cutoff to still consider a feature for alignment using the d_score: everything below this d-score is discarded (this is mainly for speedup). (--dscore_cutoff)"/> | |
177 </when> | |
178 </conditional> | |
179 <conditional name="nr_high_conf_exp_cond"> | |
180 <param name="nr_high_conf_exp_sel" type="select" label="Enable the filter by d score (this is mainly for speedup)" help=""> | |
181 <option value="opt_nr_high_conf_exp_disabled" selected="True">disabled</option> | |
182 <option value="opt_nr_high_conf_exp_enabled">Use number of experiments</option> | |
183 </param> | |
184 <when value="opt_nr_high_conf_exp_disabled"/> | |
185 <when value="opt_nr_high_conf_exp_enabled"> | |
186 <param name="nr_high_conf_exp" type="integer" value="1" optional="True" label="Number of experiments with high confidence" | |
187 help="Number of experiments in which the peptide needs to be identified with high confidence (e.g. above fdr_curoff). (--nr_high_conf_exp)"/> | |
188 </when> | |
189 </conditional> | |
190 <param name="readmethod" type="select" label="Read full or minimal transition groups" optional="True" help="(--readmethod)"> | |
191 <option value="disabled" selected="True">disabled</option> | |
192 <option value="minimal">minimal</option> | |
193 <option value="full">full</option> | |
194 </param> | |
195 <conditional name="alignment_score_cond"> | |
196 <param name="alignment_score_sel" type="select" label="Enable the filter by d score (this is mainly for speedup)" help=""> | |
197 <option value="opt_alignment_score_disabled" selected="True">disabled</option> | |
198 <option value="opt_alignment_score_enabled">Use number of experiments</option> | |
199 </param> | |
200 <when value="opt_alignment_score_disabled"/> | |
201 <when value="opt_alignment_score_enabled"> | |
202 <param name="alignment_score" type="float" value="0.0001" optional="True" label="Alignment score" | |
203 help="Minimal score needed for a feature to be considered for alignment between runs (e.g. score needed to be considered an 'anchor point' for pairwise alignment). (--alignment_score)"/> | |
204 </when> | |
205 </conditional> | |
206 </section> | |
207 </inputs> | |
208 <outputs> | |
209 <!-- Matrix containing one peak group per row --> | |
210 <data format="tabular" name="out_matrix"/> | |
211 <!-- Id file only containing the ids --> | |
212 <data format="tabular" name="out_ids"/> | |
213 <!-- Output file with filtered peakgroups for quantification --> | |
214 <data format="tabular" name="out"> | |
215 <filter>iformat == 'openswath'</filter> | |
216 </data> | |
217 </outputs> | |
218 <tests> | |
219 <test> | |
220 <param name="inputs" value="feature_alignment_openswath_input_1.csv" ftype="txt" /> | |
221 <param name="iformat" value="openswath" /> | |
222 <param name="method" value="best_cluster_score" /> | |
223 <param name="fdr_sel" value="opt_fdr_disabled" /> | |
224 <param name="max_fdr_quality" value="0.4" /> | |
225 <param name="matrix_output_method" value="RT" /> | |
226 <output name="out_matrix" file="feature_alignment_1_openswath_output_matrix.csv" lines_diff="2" ftype="tabular" /> | |
227 <output name="out_ids" file="feature_alignment_1_openswath_output_cluster_ids.csv" ftype="tabular" /> | |
228 </test> | |
229 <test> | |
230 <param name="inputs" value="feature_alignment_openswath_input_1.csv" ftype="txt" /> | |
231 <param name="iformat" value="openswath" /> | |
232 <param name="method" value="best_overall" /> | |
233 <param name="fdr_sel" value="opt_fdr_disabled" /> | |
234 <param name="max_fdr_quality" value="0.4" /> | |
235 <param name="matrix_output_method" value="RT" /> | |
236 <output name="out_matrix" file="feature_alignment_2_output_2_matrix.csv" lines_diff="2" ftype="tabular" /> | |
237 <output name="out_ids" file="feature_alignment_2_output_1_ids.csv" ftype="tabular" /> | |
238 </test> | |
239 <test> | |
240 <param name="inputs" value="feature_alignment_3_openswath_input.csv" ftype="txt" /> | |
241 <param name="iformat" value="openswath" /> | |
242 <param name="realign_method" value="splineR" /> | |
243 <param name="method" value="best_cluster_score" /> | |
244 <param name="fdr_sel" value="opt_fdr_disabled" /> | |
245 <param name="max_fdr_quality" value="0.4" /> | |
246 <param name="matrix_output_method" value="RT" /> | |
247 <output name="out_ids" file="feature_alignment_3_openswath_output_splineR_cluster_ids.csv" ftype="tabular" /> | |
248 </test> | |
249 <test> | |
250 <param name="inputs" value="feature_alignment_3_openswath_input.csv" ftype="txt" /> | |
251 <param name="iformat" value="openswath" /> | |
252 <param name="realign_method" value="splinePy" /> | |
253 <param name="method" value="best_cluster_score" /> | |
254 <param name="fdr_sel" value="opt_fdr_disabled" /> | |
255 <param name="max_fdr_quality" value="0.4" /> | |
256 <param name="matrix_output_method" value="RT" /> | |
257 <output name="out_ids" file="feature_alignment_3_openswath_output_splinePy_cluster_ids.csv" ftype="tabular" /> | |
258 </test> | |
259 <test> | |
260 <param name="inputs" value="feature_alignment_peakview_input_2.csv" ftype="txt" /> | |
261 <param name="iformat" value="peakview" /> | |
262 <param name="method" value="best_cluster_score" /> | |
263 <param name="max_rt_diff_sel" value="opt_max_rt_diff_enabled" /> | |
264 <param name="iso_max_rt_diff_sel" value="opt_iso_max_rt_diff_enabled" /> | |
265 <param name="frac_selected_sel" value="opt_frac_selected_enabled" /> | |
266 <param name="disable_isotopic_grouping" value="True" /> | |
267 <param name="nr_high_conf_exp_sel" value="opt_nr_high_conf_exp_enabled" /> | |
268 <param name="alignment_score_sel" value="opt_alignment_score_enabled" /> | |
269 <param name="max_fdr_quality" value="0.0001" /> | |
270 <param name="fdr_sel" value="opt_fdr_cutoff" /> | |
271 <param name="fdr_cutoff" value="0.000000001" /> | |
272 <param name="matrix_output_method" value="RT" /> | |
273 <output name="out_matrix" file="feature_alignment_5_peakview_output_matrix.csv" lines_diff="2" ftype="tabular" /> | |
274 </test> | |
275 </tests> | |
276 <help> | |
277 <![CDATA[ | |
278 | |
279 **What it does** | |
280 | |
281 TRIC uses a graph-based alignment strategy based on non-linear retention time correction to integrate information from all available runs. The input consists of a set of csv files derived from a targeted proteomics experiment generated by OpenSWATH (using either mProphet or pyProphet) or generated by Peakview. | |
282 | |
283 There are two basic running modes available. The first one uses a reference-based alignment where a single run is chosen as a reference and all other runs are aligned to it. This is a useful choice for a small number of runs that are chromatographically similar. The second mode generates a guidance tree based on chromatographic similarity of the input runs and uses this tree to align the targeted proteomics runs (the nodes in the tree are runs and the edges are pairwise alignments). Generally this mode is better for a large number of runs or for chromatographically dissimilar samples. | |
284 | |
285 TRIC is part of msproteomicstools. For additional help please visit the `TRIC documentation <https://github.com/msproteomicstools/msproteomicstools/blob/master/TRIC-README.md>`_ | |
286 | |
287 ]]> | |
288 </help> | |
289 <citations> | |
290 </citations> | |
291 </tool> | |
292 |