comparison ConsensusID.xml @ 13:fdc984e79f40 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
author galaxyp
date Thu, 27 Aug 2020 19:43:01 -0400
parents 368221d85573
children feebe2054e40
comparison
equal deleted inserted replaced
12:d6230f82a445 13:fdc984e79f40
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: [ID Processing]--> 3 <!--Proposed Tool Section: [ID Processing]-->
4 <tool id="ConsensusID" name="ConsensusID" version="2.3.0"> 4 <tool id="ConsensusID" name="ConsensusID" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
5 <description>Computes a consensus of peptide identifications of several identification engines.</description> 5 <description>Computes a consensus of peptide identifications of several identification engines.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">ConsensusID</token> 7 <token name="@EXECUTABLE@">ConsensusID</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[ConsensusID 15 @EXT_FOO@
16 #import re
14 17
15 #if $param_in: 18 ## Preprocessing
16 -in $param_in 19 mkdir in &&
17 #end if 20 ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
18 #if $param_out: 21 mkdir out &&
19 -out $param_out 22
20 #end if 23 ## Main program call
21 #if $param_rt_delta: 24
22 -rt_delta $param_rt_delta 25 set -o pipefail &&
23 #end if 26 @EXECUTABLE@ -write_ctd ./ &&
24 #if $param_mz_delta: 27 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
25 -mz_delta $param_mz_delta 28 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
26 #end if 29 -in
27 #if $param_algorithm: 30 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
28 -algorithm 31 -out
29 #if " " in str($param_algorithm): 32 'out/output.${in.ext}'
30 "$param_algorithm" 33
31 #else 34 ## Postprocessing
32 $param_algorithm 35 && mv 'out/output.${in.ext}' '$out'
33 #end if 36 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
34 #end if 37 && mv '@EXECUTABLE@.ctd' '$ctd_out'
35 #if $param_filter_considered_hits: 38 #end if]]></command>
36 -filter:considered_hits $param_filter_considered_hits 39 <configfiles>
37 #end if 40 <inputs name="args_json" data_style="paths"/>
38 #if $param_filter_min_support: 41 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
39 -filter:min_support $param_filter_min_support 42 </configfiles>
40 #end if
41 #if $param_filter_count_empty:
42 -filter:count_empty
43 #end if
44 #if $param_PEPIons_mass_tolerance:
45 -PEPIons:mass_tolerance $param_PEPIons_mass_tolerance
46 #end if
47 #if $param_PEPIons_min_shared:
48 -PEPIons:min_shared $param_PEPIons_min_shared
49 #end if
50 #if $param_PEPMatrix_matrix:
51 -PEPMatrix:matrix
52 #if " " in str($param_PEPMatrix_matrix):
53 "$param_PEPMatrix_matrix"
54 #else
55 $param_PEPMatrix_matrix
56 #end if
57 #end if
58 #if $param_PEPMatrix_penalty:
59 -PEPMatrix:penalty $param_PEPMatrix_penalty
60 #end if
61 #if $adv_opts.adv_opts_selector=='advanced':
62 #if $adv_opts.param_force:
63 -force
64 #end if
65 #end if
66 ]]></command>
67 <inputs> 43 <inputs>
68 <param name="param_in" type="data" format="idxml,featurexml,consensusxml" optional="False" label="input file" help="(-in) "/> 44 <param name="in" argument="-in" type="data" format="consensusxml,featurexml,idxml" optional="false" label="input file" help=" select consensusxml,featurexml,idxml data sets(s)"/>
69 <param name="param_rt_delta" type="float" min="0.0" optional="True" value="0.1" label="[idXML input only] Maximum allowed retention time deviation between identifications belonging to the same spectrum" help="(-rt_delta) "/> 45 <param name="rt_delta" argument="-rt_delta" type="float" optional="true" min="0.0" value="0.1" label="[idXML input only] Maximum allowed retention time deviation between identifications belonging to the same spectrum" help=""/>
70 <param name="param_mz_delta" type="float" min="0.0" optional="True" value="0.1" label="[idXML input only] Maximum allowed precursor m/z deviation between identifications belonging to the same spectrum" help="(-mz_delta) "/> 46 <param name="mz_delta" argument="-mz_delta" type="float" optional="true" min="0.0" value="0.1" label="[idXML input only] Maximum allowed precursor m/z deviation between identifications belonging to the same spectrum" help=""/>
71 <param name="param_algorithm" type="select" optional="False" value="PEPMatrix" label="Algorithm used for consensus scoring" help="(-algorithm) &lt;br&gt;* PEPMatrix: Scoring based on posterior error probabilities (PEPs) and peptide sequence similarities (scored by a substitution matrix). Requires PEPs as scores. &lt;br&gt;* PEPIons: Scoring based on posterior error probabilities (PEPs) and fragment ion similarities ('shared peak count'). Requires PEPs as scores. &lt;br&gt;* best: For each peptide ID, use the best score of any search engine as the consensus score. Requires the same score type in all ID runs. &lt;br&gt;* worst: For each peptide ID, use the worst score of any search engine as the consensus score. Requires the same score type in all ID runs. &lt;br&gt;* average: For each peptide ID, use the average score of all search engines as the consensus. Requires the same score type in all ID runs. &lt;br&gt;* ranks: Calculates a consensus score based on the ranks of peptide IDs in the results of different search engines. The final score is in the range (0, 1], with 1 being the best score. No requirements about score types"> 47 <param name="algorithm" argument="-algorithm" type="select" optional="false" label="Algorithm used for consensus scoring" help="* PEPMatrix: Scoring based on posterior error probabilities (PEPs) and peptide sequence similarities (scored by a substitution matrix). Requires PEPs as scores.. * PEPIons: Scoring based on posterior error probabilities (PEPs) and fragment ion similarities ('shared peak count'). Requires PEPs as scores.. * best: For each peptide ID, use the best score of any search engine as the consensus score. Requires the same score type in all ID runs.. * worst: For each peptide ID, use the worst score of any search engine as the consensus score. Requires the same score type in all ID runs.. * average: For each peptide ID, use the average score of all search engines as the consensus. Requires the same score type in all ID runs.. * ranks: Calculates a consensus score based on the ranks of peptide IDs in the results of different search engines. The final score is in the range (0, 1], with 1 being the best score. No requirements about score types">
72 <option value="PEPMatrix" selected="true">PEPMatrix</option> 48 <option value="PEPMatrix" selected="true">PEPMatrix</option>
73 <option value="PEPIons">PEPIons</option> 49 <option value="PEPIons">PEPIons</option>
74 <option value="best">best</option> 50 <option value="best">best</option>
75 <option value="worst">worst</option> 51 <option value="worst">worst</option>
76 <option value="average">average</option> 52 <option value="average">average</option>
77 <option value="ranks">ranks</option> 53 <option value="ranks">ranks</option>
54 <expand macro="list_string_san"/>
78 </param> 55 </param>
79 <param name="param_filter_considered_hits" type="integer" min="0" optional="True" value="0" label="The number of top hits in each ID run that are considered for consensus scoring ('0' for all hits)" help="(-considered_hits) "/> 56 <section name="filter" title="Options for filtering peptide hits" help="" expanded="false">
80 <param name="param_filter_min_support" type="float" min="0.0" max="1.0" optional="True" value="0.0" label="For each peptide hit from an ID run, the fraction of other ID runs that must support that hit (otherwise it is removed)" help="(-min_support) "/> 57 <param name="considered_hits" argument="-filter:considered_hits" type="integer" optional="true" min="0" value="0" label="The number of top hits in each ID run that are considered for consensus scoring ('0' for all hits)" help=""/>
81 <param name="param_filter_count_empty" display="radio" type="boolean" truevalue="-filter:count_empty" falsevalue="" checked="false" optional="True" label="Count empty ID runs (i.e" help="(-count_empty) those containing no peptide hit for the current spectrum) when calculating 'min_support'?"/> 58 <param name="min_support" argument="-filter:min_support" type="float" optional="true" min="0.0" max="1.0" value="0.0" label="For each peptide hit from an ID run, the fraction of other ID runs that must support that hit (otherwise it is removed)" help=""/>
82 <param name="param_PEPIons_mass_tolerance" type="float" min="0.0" optional="True" value="0.5" label="Maximum difference between fragment masses (in Da) for fragments to be considered 'shared' between peptides" help="(-mass_tolerance) "/> 59 <param name="count_empty" argument="-filter:count_empty" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Count empty ID runs" help="(i.e. those containing no peptide hit for the current spectrum) when calculating 'min_support'?"/>
83 <param name="param_PEPIons_min_shared" type="integer" min="1" optional="True" value="2" label="The minimal number of 'shared' fragments (between two suggested peptides) that is necessary to evaluate the similarity based on shared peak count (SPC)" help="(-min_shared) "/> 60 </section>
84 <param name="param_PEPMatrix_matrix" display="radio" type="select" optional="False" value="identity" label="Substitution matrix to use for alignment-based similarity scoring" help="(-matrix) "> 61 <section name="PEPIons" title="PEPIons algorithm parameters" help="" expanded="false">
85 <option value="identity" selected="true">identity</option> 62 <param name="mass_tolerance" argument="-PEPIons:mass_tolerance" type="float" optional="true" min="0.0" value="0.5" label="Maximum difference between fragment masses (in Da) for fragments to be considered 'shared' between peptides" help=""/>
86 <option value="PAM30MS">PAM30MS</option> 63 <param name="min_shared" argument="-PEPIons:min_shared" type="integer" optional="true" min="1" value="2" label="The minimal number of 'shared' fragments (between two suggested peptides) that is necessary to evaluate the similarity based on shared peak count (SPC)" help=""/>
64 </section>
65 <section name="PEPMatrix" title="PEPMatrix algorithm parameters" help="" expanded="false">
66 <param name="matrix" argument="-PEPMatrix:matrix" display="radio" type="select" optional="false" label="Substitution matrix to use for alignment-based similarity scoring" help="">
67 <option value="identity" selected="true">identity</option>
68 <option value="PAM30MS">PAM30MS</option>
69 <expand macro="list_string_san"/>
70 </param>
71 <param name="penalty" argument="-PEPMatrix:penalty" type="integer" optional="true" min="1" value="5" label="Alignment gap penalty (the same value is used for gap opening and extension)" help=""/>
72 </section>
73 <expand macro="adv_opts_macro">
74 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
75 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
76 <expand macro="list_string_san"/>
77 </param>
78 </expand>
79 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true">
80 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
87 </param> 81 </param>
88 <param name="param_PEPMatrix_penalty" type="integer" min="1" optional="True" value="5" label="Alignment gap penalty (the same value is used for gap opening and extension)" help="(-penalty) "/>
89 <expand macro="advanced_options">
90 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/>
91 </expand>
92 </inputs> 82 </inputs>
93 <outputs> 83 <outputs>
94 <data name="param_out" metadata_source="param_in" format="input"/> 84 <data name="out" label="${tool.name} on ${on_string}: out" format_source="in" metadata_source="in"/>
85 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
86 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
87 </data>
95 </outputs> 88 </outputs>
96 <help>Computes a consensus of peptide identifications of several identification engines. 89 <tests>
90 <expand macro="autotest_ConsensusID"/>
91 <expand macro="manutest_ConsensusID"/>
92 </tests>
93 <help><![CDATA[Computes a consensus of peptide identifications of several identification engines.
97 94
98 95
99 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/TOPP_ConsensusID.html</help> 96 For more information, visit http://www.openms.de/documentation/TOPP_ConsensusID.html]]></help>
97 <expand macro="references"/>
100 </tool> 98 </tool>