Mercurial > repos > galaxyp > openms_decharger
comparison Decharger.xml @ 13:95bf997c9cf5 draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 020906fb54bde7fc143c356f41975c378a741315"
author | galaxyp |
---|---|
date | Wed, 09 Sep 2020 12:45:41 +0000 |
parents | 2378124da7c4 |
children | 62cce3757d5b |
comparison
equal
deleted
inserted
replaced
12:93121072b3e5 | 13:95bf997c9cf5 |
---|---|
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: [Quantitation]--> | 3 <!--Proposed Tool Section: [Quantitation]--> |
4 <tool id="Decharger" name="Decharger" version="2.3.0"> | 4 <tool id="Decharger" name="Decharger" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> |
5 <description>Decharges and merges different feature charge variants of the same peptide.</description> | 5 <description>Decharges and merges different feature charge variants of the same peptide.</description> |
6 <macros> | 6 <macros> |
7 <token name="@EXECUTABLE@">Decharger</token> | 7 <token name="@EXECUTABLE@">Decharger</token> |
8 <import>macros.xml</import> | 8 <import>macros.xml</import> |
9 <import>macros_autotest.xml</import> | |
10 <import>macros_test.xml</import> | |
9 </macros> | 11 </macros> |
10 <expand macro="references"/> | 12 <expand macro="requirements"/> |
11 <expand macro="stdio"/> | 13 <expand macro="stdio"/> |
12 <expand macro="requirements"/> | 14 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ |
13 <command detect_errors="aggressive"><![CDATA[Decharger | 15 @EXT_FOO@ |
16 #import re | |
14 | 17 |
15 #if $param_in: | 18 ## Preprocessing |
16 -in $param_in | 19 mkdir in && |
20 ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && | |
21 mkdir out_cm && | |
22 #if "out_fm_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | |
23 mkdir out_fm && | |
17 #end if | 24 #end if |
18 #if $param_out_cm: | 25 #if "outpairs_FLAG" in str($OPTIONAL_OUTPUTS).split(',') |
19 -out_cm $param_out_cm | 26 mkdir outpairs && |
20 #end if | |
21 #if $param_out_fm: | |
22 -out_fm $param_out_fm | |
23 #end if | |
24 #if $param_outpairs: | |
25 -outpairs $param_outpairs | |
26 #end if | |
27 #if $param_algorithm_FeatureDeconvolution_charge_min: | |
28 -algorithm:FeatureDeconvolution:charge_min $param_algorithm_FeatureDeconvolution_charge_min | |
29 #end if | |
30 #if $param_algorithm_FeatureDeconvolution_charge_max: | |
31 -algorithm:FeatureDeconvolution:charge_max $param_algorithm_FeatureDeconvolution_charge_max | |
32 #end if | |
33 #if $param_algorithm_FeatureDeconvolution_charge_span_max: | |
34 -algorithm:FeatureDeconvolution:charge_span_max $param_algorithm_FeatureDeconvolution_charge_span_max | |
35 #end if | |
36 #if $param_algorithm_FeatureDeconvolution_q_try: | |
37 -algorithm:FeatureDeconvolution:q_try | |
38 #if " " in str($param_algorithm_FeatureDeconvolution_q_try): | |
39 "$param_algorithm_FeatureDeconvolution_q_try" | |
40 #else | |
41 $param_algorithm_FeatureDeconvolution_q_try | |
42 #end if | |
43 #end if | |
44 #if $param_algorithm_FeatureDeconvolution_retention_max_diff: | |
45 -algorithm:FeatureDeconvolution:retention_max_diff $param_algorithm_FeatureDeconvolution_retention_max_diff | |
46 #end if | |
47 #if $param_algorithm_FeatureDeconvolution_retention_max_diff_local: | |
48 -algorithm:FeatureDeconvolution:retention_max_diff_local $param_algorithm_FeatureDeconvolution_retention_max_diff_local | |
49 #end if | |
50 #if $param_algorithm_FeatureDeconvolution_mass_max_diff: | |
51 -algorithm:FeatureDeconvolution:mass_max_diff $param_algorithm_FeatureDeconvolution_mass_max_diff | |
52 #end if | 27 #end if |
53 | 28 |
54 #if $rep_param_algorithm_FeatureDeconvolution_potential_adducts: | 29 ## Main program call |
55 -algorithm:FeatureDeconvolution:potential_adducts | 30 |
56 #for token in $rep_param_algorithm_FeatureDeconvolution_potential_adducts: | 31 set -o pipefail && |
57 #if " " in str(token): | 32 @EXECUTABLE@ -write_ctd ./ && |
58 "$token.param_algorithm_FeatureDeconvolution_potential_adducts" | 33 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && |
59 #else | 34 @EXECUTABLE@ -ini @EXECUTABLE@.ctd |
60 $token.param_algorithm_FeatureDeconvolution_potential_adducts | 35 -in |
61 #end if | 36 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' |
62 #end for | 37 -out_cm |
38 'out_cm/output.${gxy2omsext("consensusxml")}' | |
39 #if "out_fm_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | |
40 -out_fm | |
41 'out_fm/output.${gxy2omsext("featurexml")}' | |
63 #end if | 42 #end if |
64 #if $param_algorithm_FeatureDeconvolution_max_neutrals: | 43 #if "outpairs_FLAG" in str($OPTIONAL_OUTPUTS).split(',') |
65 -algorithm:FeatureDeconvolution:max_neutrals $param_algorithm_FeatureDeconvolution_max_neutrals | 44 -outpairs |
45 'outpairs/output.${gxy2omsext("consensusxml")}' | |
66 #end if | 46 #end if |
67 #if $param_algorithm_FeatureDeconvolution_max_minority_bound: | 47 #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0 |
68 -algorithm:FeatureDeconvolution:max_minority_bound $param_algorithm_FeatureDeconvolution_max_minority_bound | 48 | tee '$stdout' |
69 #end if | 49 #end if |
70 #if $param_algorithm_FeatureDeconvolution_min_rt_overlap: | 50 |
71 -algorithm:FeatureDeconvolution:min_rt_overlap $param_algorithm_FeatureDeconvolution_min_rt_overlap | 51 ## Postprocessing |
52 && mv 'out_cm/output.${gxy2omsext("consensusxml")}' '$out_cm' | |
53 #if "out_fm_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | |
54 && mv 'out_fm/output.${gxy2omsext("featurexml")}' '$out_fm' | |
72 #end if | 55 #end if |
73 #if $param_algorithm_FeatureDeconvolution_intensity_filter: | 56 #if "outpairs_FLAG" in str($OPTIONAL_OUTPUTS).split(',') |
74 -algorithm:FeatureDeconvolution:intensity_filter | 57 && mv 'outpairs/output.${gxy2omsext("consensusxml")}' '$outpairs' |
75 #end if | 58 #end if |
76 #if $adv_opts.adv_opts_selector=='advanced': | 59 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS |
77 #if $adv_opts.param_force: | 60 && mv '@EXECUTABLE@.ctd' '$ctd_out' |
78 -force | 61 #end if]]></command> |
79 #end if | 62 <configfiles> |
80 #if $adv_opts.param_algorithm_FeatureDeconvolution_default_map_label: | 63 <inputs name="args_json" data_style="paths"/> |
81 -algorithm:FeatureDeconvolution:default_map_label "$adv_opts.param_algorithm_FeatureDeconvolution_default_map_label" | 64 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> |
82 #end if | 65 </configfiles> |
83 #if $adv_opts.param_algorithm_FeatureDeconvolution_verbose_level: | |
84 -algorithm:FeatureDeconvolution:verbose_level $adv_opts.param_algorithm_FeatureDeconvolution_verbose_level | |
85 #end if | |
86 #end if | |
87 ]]></command> | |
88 <inputs> | 66 <inputs> |
89 <param name="param_in" type="data" format="featurexml" optional="False" label="input file" help="(-in) "/> | 67 <param name="in" argument="-in" type="data" format="featurexml" optional="false" label="input file" help=" select featurexml data sets(s)"/> |
90 <param name="param_algorithm_FeatureDeconvolution_charge_min" type="integer" value="1" label="Minimal possible charge" help="(-charge_min) "/> | 68 <section name="algorithm" title="Feature decharging algorithm section" help="" expanded="false"> |
91 <param name="param_algorithm_FeatureDeconvolution_charge_max" type="integer" value="10" label="Maximal possible charge" help="(-charge_max) "/> | 69 <section name="FeatureDeconvolution" title="" help="" expanded="false"> |
92 <param name="param_algorithm_FeatureDeconvolution_charge_span_max" type="integer" min="1" optional="True" value="4" label="Maximal range of charges for a single analyte, i.e" help="(-charge_span_max) observing q1=[5,6,7] implies span=3. Setting this to 1 will only find adduct variants of the same charge"/> | 70 <param name="charge_min" argument="-algorithm:FeatureDeconvolution:charge_min" type="integer" optional="true" value="1" label="Minimal possible charge" help=""/> |
93 <param name="param_algorithm_FeatureDeconvolution_q_try" display="radio" type="select" optional="False" value="feature" label="Try different values of charge for each feature according to the above settings ('heuristic' [does not test all charges, just the likely ones] or 'all' ), or leave feature charge untouched ('feature')" help="(-q_try) "> | 71 <param name="charge_max" argument="-algorithm:FeatureDeconvolution:charge_max" type="integer" optional="true" value="10" label="Maximal possible charge" help=""/> |
94 <option value="feature" selected="true">feature</option> | 72 <param name="charge_span_max" argument="-algorithm:FeatureDeconvolution:charge_span_max" type="integer" optional="true" min="1" value="4" label="Maximal range of charges for a single analyte" help="i.e. observing q1=[5,6,7] implies span=3. Setting this to 1 will only find adduct variants of the same charge"/> |
95 <option value="heuristic">heuristic</option> | 73 <param name="q_try" argument="-algorithm:FeatureDeconvolution:q_try" display="radio" type="select" optional="false" label="Try different values of charge for each feature according to the above settings ('heuristic' [does not test all charges, just the likely ones] or 'all' ), or leave feature charge untouched ('feature')" help=""> |
96 <option value="all">all</option> | 74 <option value="feature" selected="true">feature</option> |
75 <option value="heuristic">heuristic</option> | |
76 <option value="all">all</option> | |
77 <expand macro="list_string_san"/> | |
78 </param> | |
79 <param name="retention_max_diff" argument="-algorithm:FeatureDeconvolution:retention_max_diff" type="float" optional="true" value="1.0" label="Maximum allowed RT difference between any two features if their relation shall be determined" help=""/> | |
80 <param name="retention_max_diff_local" argument="-algorithm:FeatureDeconvolution:retention_max_diff_local" type="float" optional="true" value="1.0" label="Maximum allowed RT difference between between two co-features, after adduct shifts have been accounted for (if you do not have any adduct shifts, this value should be equal to 'retention_max_diff', otherwise it should be smaller!)" help=""/> | |
81 <param name="mass_max_diff" argument="-algorithm:FeatureDeconvolution:mass_max_diff" type="float" optional="true" value="0.5" label="Maximum allowed mass difference [in Th] for a single feature" help=""/> | |
82 <param name="potential_adducts" argument="-algorithm:FeatureDeconvolution:potential_adducts" type="text" optional="true" value="K:+:0.1" label="Adducts used to explain mass differences in format: 'Element:Charge(+/-):Probability[:RTShift[:Label]]'" help="i.e. the number of '+' or '-' indicate the charge, e.g. 'Ca:++:0.5' indicates +2. Probabilites have to be in (0,1]. RTShift param is optional and indicates the expected RT shift caused by this adduct, e.g. '(2)H4H-4:0:1:-3' indicates a 4 deuterium label, which causes early elution by 3 seconds. As a fifth parameter you can add a label which is tagged on every feature which has this adduct. This also determines the map number in the consensus file (space separated list, in order to allow for spaces in list items surround them by single quotes)"> | |
83 <expand macro="list_string_val"/> | |
84 <expand macro="list_string_san"/> | |
85 </param> | |
86 <param name="max_neutrals" argument="-algorithm:FeatureDeconvolution:max_neutrals" type="integer" optional="true" value="0" label="Maximal number of neutral adducts(q=0) allowed" help="Add them in the 'potential_adducts' section!"/> | |
87 <param name="max_minority_bound" argument="-algorithm:FeatureDeconvolution:max_minority_bound" type="integer" optional="true" min="0" value="2" label="Maximum count of the least probable adduct (according to 'potential_adducts' param) within a charge variant" help="E.g. setting this to 2 will not allow an adduct composition of '1(H+),3(Na+)' if Na+ is the least probable adduct"/> | |
88 <param name="min_rt_overlap" argument="-algorithm:FeatureDeconvolution:min_rt_overlap" type="float" optional="true" min="0.0" max="1.0" value="0.66" label="Minimum overlap of the convex hull' RT intersection measured against the union from two features (if CHs are given)" help=""/> | |
89 <param name="intensity_filter" argument="-algorithm:FeatureDeconvolution:intensity_filter" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Enable the intensity filter, which will only allow edges between two equally charged features if the intensity of the feature with less likely adducts is smaller than that of the other feature" help="It is not used for features of different charge"/> | |
90 <param name="negative_mode" argument="-algorithm:FeatureDeconvolution:negative_mode" type="text" optional="true" value="false" label="Enable negative ionization mode" help=""> | |
91 <expand macro="list_string_san"/> | |
92 </param> | |
93 <param name="default_map_label" argument="-algorithm:FeatureDeconvolution:default_map_label" type="text" optional="true" value="decharged features" label="Label of map in output consensus file where all features are put by default" help=""> | |
94 <expand macro="list_string_san"/> | |
95 </param> | |
96 <param name="verbose_level" argument="-algorithm:FeatureDeconvolution:verbose_level" type="integer" optional="true" min="0" max="3" value="0" label="Amount of debug information given during processing" help=""/> | |
97 </section> | |
98 </section> | |
99 <expand macro="adv_opts_macro"> | |
100 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/> | |
101 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> | |
102 <expand macro="list_string_san"/> | |
103 </param> | |
104 </expand> | |
105 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true"> | |
106 <option value="out_fm_FLAG">out_fm (Amount of debug information given during processing)</option> | |
107 <option value="outpairs_FLAG">outpairs (Amount of debug information given during processing)</option> | |
108 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> | |
97 </param> | 109 </param> |
98 <param name="param_algorithm_FeatureDeconvolution_retention_max_diff" type="float" value="1.0" label="Maximum allowed RT difference between any two features if their relation shall be determined" help="(-retention_max_diff) "/> | |
99 <param name="param_algorithm_FeatureDeconvolution_retention_max_diff_local" type="float" value="1.0" label="Maximum allowed RT difference between between two co-features, after adduct shifts have been accounted for (if you do not have any adduct shifts, this value should be equal to 'retention_max_diff', otherwise it should be smaller!)" help="(-retention_max_diff_local) "/> | |
100 <param name="param_algorithm_FeatureDeconvolution_mass_max_diff" type="float" value="0.5" label="Maximum allowed mass difference [in Th] for a single feature" help="(-mass_max_diff) "/> | |
101 <repeat name="rep_param_algorithm_FeatureDeconvolution_potential_adducts" min="0" max="1" title="param_algorithm_FeatureDeconvolution_potential_adducts"> | |
102 <param name="param_algorithm_FeatureDeconvolution_potential_adducts" type="text" size="30" value="H+:0.9" label="Adducts used to explain mass differences in format: 'Element(+)*:Probability[:RTShift[:Label]]', i.e. the number of '+' indicate the charge," help="(-potential_adducts) e.g. 'Ca++:0.5' indicates +2. Probabilites have to be in (0,1]. RTShift param is optional and indicates the expected RT shift caused by this adduct, e.g. '(2)H4H-4:1:-3' indicates a 4 deuterium label, which causes early elution by 3 seconds. As a fourth parameter you can add a label which is tagged on every feature which has this adduct. This also determines the map number in the consensus file"> | |
103 <sanitizer> | |
104 <valid initial="string.printable"> | |
105 <remove value="'"/> | |
106 <remove value="""/> | |
107 </valid> | |
108 </sanitizer> | |
109 </param> | |
110 </repeat> | |
111 <param name="param_algorithm_FeatureDeconvolution_max_neutrals" type="integer" value="0" label="Maximal number of neutral adducts(q=0) allowed" help="(-max_neutrals) Add them in the 'potential_adducts' section!"/> | |
112 <param name="param_algorithm_FeatureDeconvolution_max_minority_bound" type="integer" min="0" optional="True" value="2" label="Maximum count of the least probable adduct (according to 'potential_adducts' param) within a charge variant" help="(-max_minority_bound) E.g. setting this to 2 will not allow an adduct composition of '1(H+),3(Na+)' if Na+ is the least probable adduct"/> | |
113 <param name="param_algorithm_FeatureDeconvolution_min_rt_overlap" type="float" min="0.0" max="1.0" optional="True" value="0.66" label="Minimum overlap of the convex hull' RT intersection measured against the union from two features (if CHs are given)" help="(-min_rt_overlap) "/> | |
114 <param name="param_algorithm_FeatureDeconvolution_intensity_filter" display="radio" type="boolean" truevalue="-algorithm:FeatureDeconvolution:intensity_filter" falsevalue="" checked="false" optional="True" label="Enable the intensity filter, which will only allow edges between two equally charged features if the intensity of the feature with less likely adducts is smaller than that of the other feature" help="(-intensity_filter) It is not used for features of different charge"/> | |
115 <expand macro="advanced_options"> | |
116 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> | |
117 <param name="param_algorithm_FeatureDeconvolution_default_map_label" type="text" size="30" value="decharged features" label="Label of map in output consensus file where all features are put by default" help="(-default_map_label) "> | |
118 <sanitizer> | |
119 <valid initial="string.printable"> | |
120 <remove value="'"/> | |
121 <remove value="""/> | |
122 </valid> | |
123 </sanitizer> | |
124 </param> | |
125 <param name="param_algorithm_FeatureDeconvolution_verbose_level" type="integer" min="0" max="3" optional="True" value="0" label="Amount of debug information given during processing" help="(-verbose_level) "/> | |
126 </expand> | |
127 </inputs> | 110 </inputs> |
128 <outputs> | 111 <outputs> |
129 <data name="param_out_cm" format="consensusxml"/> | 112 <data name="out_cm" label="${tool.name} on ${on_string}: out_cm" format="consensusxml"/> |
130 <data name="param_out_fm" format="featurexml"/> | 113 <data name="out_fm" label="${tool.name} on ${on_string}: out_fm" format="featurexml"> |
131 <data name="param_outpairs" format="consensusxml"/> | 114 <filter>OPTIONAL_OUTPUTS is not None and "out_fm_FLAG" in OPTIONAL_OUTPUTS</filter> |
115 </data> | |
116 <data name="outpairs" label="${tool.name} on ${on_string}: outpairs" format="consensusxml"> | |
117 <filter>OPTIONAL_OUTPUTS is not None and "outpairs_FLAG" in OPTIONAL_OUTPUTS</filter> | |
118 </data> | |
119 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> | |
120 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> | |
121 </data> | |
132 </outputs> | 122 </outputs> |
133 <help>Decharges and merges different feature charge variants of the same peptide. | 123 <tests> |
124 <expand macro="autotest_Decharger"/> | |
125 <expand macro="manutest_Decharger"/> | |
126 </tests> | |
127 <help><![CDATA[Decharges and merges different feature charge variants of the same peptide. | |
134 | 128 |
135 | 129 |
136 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/TOPP_Decharger.html</help> | 130 For more information, visit http://www.openms.de/documentation/TOPP_Decharger.html]]></help> |
131 <expand macro="references"/> | |
137 </tool> | 132 </tool> |