comparison XFDR.xml @ 4:81402a5e4173 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:44:32 -0400
parents 7c6217c5b13f
children 9a6e3bb0f358
comparison
equal deleted inserted replaced
3:0fb75f784e2d 4:81402a5e4173
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: [Utilities]--> 3 <!--Proposed Tool Section: [ID Processing]-->
4 <tool id="XFDR" name="XFDR" version="2.3.0"> 4 <tool id="XFDR" name="XFDR" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
5 <description>Calculates false discovery rate estimates on crosslink identifications</description> 5 <description>Calculates false discovery rate estimates on crosslink identifications</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">XFDR</token> 7 <token name="@EXECUTABLE@">XFDR</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[XFDR 15 @EXT_FOO@
16 #import re
14 17
15 #if $param_in: 18 ## Preprocessing
16 -in $param_in 19 #if $in:
20 mkdir in &&
21 ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
17 #end if 22 #end if
18 #if $param_out_idXML: 23 #if "out_idXML_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
19 -out_idXML $param_out_idXML 24 mkdir out_idXML &&
20 #end if 25 #end if
21 #if $param_out_mzIdentML: 26 #if "out_mzIdentML_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
22 -out_mzIdentML $param_out_mzIdentML 27 mkdir out_mzIdentML &&
23 #end if 28 #end if
24 #if $param_minborder: 29 #if "out_xquest_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
25 -minborder $param_minborder 30 mkdir out_xquest &&
26 #end if 31 #end if
27 #if $param_maxborder: 32
28 -maxborder $param_maxborder 33 ## Main program call
34
35 set -o pipefail &&
36 @EXECUTABLE@ -write_ctd ./ &&
37 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
38 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
39 #if $in:
40 -in
41 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
29 #end if 42 #end if
30 #if $param_mindeltas: 43 #if "out_idXML_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
31 -mindeltas $param_mindeltas 44 -out_idXML
45 'out_idXML/output.${gxy2omsext("idxml")}'
32 #end if 46 #end if
33 #if $param_minionsmatched: 47 #if "out_mzIdentML_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
34 -minionsmatched $param_minionsmatched 48 -out_mzIdentML
49 'out_mzIdentML/output.${gxy2omsext("mzid")}'
35 #end if 50 #end if
36 #if $param_uniquexl: 51 #if "out_xquest_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
37 -uniquexl 52 -out_xquest
53 'out_xquest/output.${gxy2omsext("xquest.xml")}'
38 #end if 54 #end if
39 #if $param_no_qvalues: 55 #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0
40 -no_qvalues 56 | tee '$stdout'
41 #end if 57 #end if
42 #if $param_minscore: 58
43 -minscore $param_minscore 59 ## Postprocessing
60 #if "out_idXML_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
61 && mv 'out_idXML/output.${gxy2omsext("idxml")}' '$out_idXML'
44 #end if 62 #end if
45 #if $adv_opts.adv_opts_selector=='advanced': 63 #if "out_mzIdentML_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
46 #if $adv_opts.param_force: 64 && mv 'out_mzIdentML/output.${gxy2omsext("mzid")}' '$out_mzIdentML'
47 -force
48 #end if 65 #end if
66 #if "out_xquest_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
67 && mv 'out_xquest/output.${gxy2omsext("xquest.xml")}' '$out_xquest'
49 #end if 68 #end if
50 ]]></command> 69 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
70 && mv '@EXECUTABLE@.ctd' '$ctd_out'
71 #end if]]></command>
72 <configfiles>
73 <inputs name="args_json" data_style="paths"/>
74 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
75 </configfiles>
51 <inputs> 76 <inputs>
52 <param name="param_in" type="data" format="xml,idxml,mzid" optional="True" label="Crosslink Identifications in either xquest.xml, idXML, or mzIdentML format (as produced by OpenPepXL)" help="(-in) "/> 77 <param name="in" argument="-in" type="data" format="idxml,mzid,xquest.xml" optional="true" label="Crosslink Identifications in either xquest.xml, idXML, or mzIdentML format (as produced by OpenPepXL)" help=" select idxml,mzid,xquest.xml data sets(s)"/>
53 <param name="param_minborder" type="integer" value="-1" label="Filter for minimum precursor mass error (ppm)" help="(-minborder) Can only be applied for xquest.xml input"/> 78 <param name="decoy_string" argument="-decoy_string" type="text" optional="true" value="DECOY_" label="Prefix of decoy protein ids" help="The correspondig target protein id should be retrievable by deleting this prefix">
54 <param name="param_maxborder" type="integer" value="-1" label="Filter for maximum precursor mass error (ppm)" help="(-maxborder) Can only be applied for xquest.xml input"/> 79 <expand macro="list_string_san"/>
55 <param name="param_mindeltas" type="float" min="0.0" max="1.0" optional="True" value="0.0" label="Filter for delta score, 0 is no filte" help="(-mindeltas) Minimum delta score required, hits are rejected if larger or equal. Can only be applied for xquest.xml input"/> 80 </param>
56 <param name="param_minionsmatched" type="integer" min="0" optional="True" value="0" label="Filter for minimum matched ions per peptide" help="(-minionsmatched) Can only be applied for xquest.xml input"/> 81 <param name="minborder" argument="-minborder" type="float" optional="true" value="-50.0" label="Filter for minimum precursor mass error (ppm) before FDR estimation" help="Values outside of the tolerance window of the original search will effectively disable this filter"/>
57 <param name="param_uniquexl" display="radio" type="boolean" truevalue="-uniquexl" falsevalue="" checked="false" optional="True" label="Calculate statistics based on unique IDs" help="(-uniquexl) Can only be applied for xquest.xml input"/> 82 <param name="maxborder" argument="-maxborder" type="float" optional="true" value="50.0" label="Filter for maximum precursor mass error (ppm) before FDR estimation" help="Values outside of the tolerance window of the original search will effectively disable this filter"/>
58 <param name="param_no_qvalues" display="radio" type="boolean" truevalue="-no_qvalues" falsevalue="" checked="false" optional="True" label="Do not transform simple FDR to q-values" help="(-no_qvalues) "/> 83 <param name="mindeltas" argument="-mindeltas" type="float" optional="true" min="0.0" max="1.0" value="0.0" label="Filter for delta score, 0 disables the filte" help="Minimum delta score required, hits are rejected if larger or equal. The delta score is a ratio of the score of a hit and the score of the next best hit to the same spectrum, so the value range is between 0 and 1 with 1.0 meaning the scores are equal and 0.5 meaning the next best score is half as high as the current one"/>
59 <param name="param_minscore" type="integer" value="0" label="Minimum score to be considered for FDR calculation" help="(-minscore) "/> 84 <param name="minionsmatched" argument="-minionsmatched" type="integer" optional="true" min="0" value="0" label="Filter for minimum matched ions per peptide" help=""/>
60 <expand macro="advanced_options"> 85 <param name="uniquexl" argument="-uniquexl" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Calculate statistics based only on unique IDs" help="For a set of IDs from equal candidates (same pair of peptides, modifications and cross-linked positions), only the highest scoring hit will be considered. By default the score distribution will be estimated using all 1st ranked candidates"/>
61 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> 86 <param name="no_qvalues" argument="-no_qvalues" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Do not transform simple FDR to q-values" help=""/>
87 <param name="minscore" argument="-minscore" type="float" optional="true" value="-10.0" label="Minimum score to be considered for FDR calculation" help="A number lower than the lowest score will effectively disable this filter"/>
88 <param name="binsize" argument="-binsize" type="float" optional="true" min="1e-15" value="0.0001" label="Bin size for the cumulative histograms for score distributions" help="Should be about the same size as the smallest expected difference between scores. Smaller numbers will make XFDR more robust, but much slower. Negative numbers are not allowed. Should only be changed if the range of the main score changes or another score than the OpenPepXL score is used"/>
89 <expand macro="adv_opts_macro">
90 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
91 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
92 <expand macro="list_string_san"/>
93 </param>
62 </expand> 94 </expand>
95 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="false">
96 <option value="out_idXML_FLAG">out_idXML (Enables the test mode (needed for internal use only))</option>
97 <option value="out_mzIdentML_FLAG">out_mzIdentML (Enables the test mode (needed for internal use only))</option>
98 <option value="out_xquest_FLAG">out_xquest (Enables the test mode (needed for internal use only))</option>
99 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
100 </param>
63 </inputs> 101 </inputs>
64 <outputs> 102 <outputs>
65 <data name="param_out_idXML" format="idxml"/> 103 <data name="out_idXML" label="${tool.name} on ${on_string}: out_idXML" format="idxml">
66 <data name="param_out_mzIdentML" format="mzid"/> 104 <filter>OPTIONAL_OUTPUTS is not None and "out_idXML_FLAG" in OPTIONAL_OUTPUTS</filter>
105 </data>
106 <data name="out_mzIdentML" label="${tool.name} on ${on_string}: out_mzIdentML" format="mzid">
107 <filter>OPTIONAL_OUTPUTS is not None and "out_mzIdentML_FLAG" in OPTIONAL_OUTPUTS</filter>
108 </data>
109 <data name="out_xquest" label="${tool.name} on ${on_string}: out_xquest" format="xquest.xml">
110 <filter>OPTIONAL_OUTPUTS is not None and "out_xquest_FLAG" in OPTIONAL_OUTPUTS</filter>
111 </data>
112 <data name="stdout" format="txt" label="${tool.name} on ${on_string}: stdout">
113 <filter>OPTIONAL_OUTPUTS is None</filter>
114 </data>
115 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
116 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
117 </data>
67 </outputs> 118 </outputs>
68 <help>Calculates false discovery rate estimates on crosslink identifications 119 <tests>
120 <expand macro="autotest_XFDR"/>
121 <expand macro="manutest_XFDR"/>
122 </tests>
123 <help><![CDATA[Calculates false discovery rate estimates on crosslink identifications
69 124
70 125
71 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/UTILS_XFDR.html</help> 126 For more information, visit http://www.openms.de/documentation/TOPP_XFDR.html]]></help>
127 <expand macro="references"/>
72 </tool> 128 </tool>