comparison OpenSwathFeatureXMLToTSV.xml @ 8:b8192a9b7f9c draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 020906fb54bde7fc143c356f41975c378a741315"
author galaxyp
date Wed, 09 Sep 2020 13:01:10 +0000
parents 603d4db9243d
children 5c50095229a5
comparison
equal deleted inserted replaced
7:603d4db9243d 8:b8192a9b7f9c
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: [Targeted Experiments]--> 3 <!--Proposed Tool Section: [Targeted Experiments]-->
4 <tool id="OpenSwathFeatureXMLToTSV" name="OpenSwathFeatureXMLToTSV" version="2.3.0"> 4 <tool id="OpenSwathFeatureXMLToTSV" name="OpenSwathFeatureXMLToTSV" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
5 <description>Converts a featureXML to a mProphet tsv.</description> 5 <description>Converts a featureXML to a mProphet tsv.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">OpenSwathFeatureXMLToTSV</token> 7 <token name="@EXECUTABLE@">OpenSwathFeatureXMLToTSV</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[OpenSwathFeatureXMLToTSV 15 @EXT_FOO@
16 #import re
14 17
18 ## Preprocessing
19 mkdir in &&
20 ${ ' '.join(["ln -s '%s' 'in/%s.%s' &&" % (_, re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _]) }
21 mkdir tr &&
22 ln -s '$tr' 'tr/${re.sub("[^\w\-_]", "_", $tr.element_identifier)}.$gxy2omsext($tr.ext)' &&
23 mkdir out &&
24
25 ## Main program call
26
27 set -o pipefail &&
28 @EXECUTABLE@ -write_ctd ./ &&
29 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
30 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
15 -in 31 -in
16 #for token in $param_in: 32 ${' '.join(["'in/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _])}
17 $token 33 -tr
18 #end for 34 'tr/${re.sub("[^\w\-_]", "_", $tr.element_identifier)}.$gxy2omsext($tr.ext)'
19 #if $param_tr: 35 -out
20 -tr $param_tr 36 'out/output.${gxy2omsext("csv")}'
21 #end if 37
22 #if $param_out: 38 ## Postprocessing
23 -out $param_out 39 && mv 'out/output.${gxy2omsext("csv")}' '$out'
24 #end if 40 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
25 #if $param_short_format: 41 && mv '@EXECUTABLE@.ctd' '$ctd_out'
26 -short_format 42 #end if]]></command>
27 #end if 43 <configfiles>
28 #if $param_best_scoring_peptide: 44 <inputs name="args_json" data_style="paths"/>
29 -best_scoring_peptide "$param_best_scoring_peptide" 45 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
30 #end if 46 </configfiles>
31 #if $adv_opts.adv_opts_selector=='advanced':
32 #if $adv_opts.param_force:
33 -force
34 #end if
35 #end if
36 ]]></command>
37 <inputs> 47 <inputs>
38 <param name="param_in" type="data" format="featurexml" multiple="true" optional="False" size="30" label="Input files separated by blank" help="(-in) "> 48 <param name="in" argument="-in" type="data" format="featurexml" multiple="true" optional="false" label="Input files separated by blank" help=" select featurexml data sets(s)"/>
39 <sanitizer> 49 <param name="tr" argument="-tr" type="data" format="traml" optional="false" label="TraML transition file" help=" select traml data sets(s)"/>
40 <valid initial="string.printable"> 50 <param name="short_format" argument="-short_format" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Whether to write short (one peptide per line) or long format (one transition per line)" help=""/>
41 <remove value="'"/> 51 <param name="best_scoring_peptide" argument="-best_scoring_peptide" type="text" optional="true" value="" label="If only the best scoring feature per peptide should be printed, give the variable name" help="">
42 <remove value="&quot;"/> 52 <expand macro="list_string_san"/>
43 </valid>
44 </sanitizer>
45 </param> 53 </param>
46 <param name="param_tr" type="data" format="traml" optional="False" label="TraML transition file" help="(-tr) "/> 54 <expand macro="adv_opts_macro">
47 <param name="param_short_format" display="radio" type="boolean" truevalue="-short_format" falsevalue="" checked="false" optional="True" label="Whether to write short (one peptide per line) or long format (one transition per line)" help="(-short_format) "/> 55 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
48 <param name="param_best_scoring_peptide" type="text" size="30" label="If only the best scoring feature per peptide should be printed, give the variable name" help="(-best_scoring_peptide) "> 56 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
49 <sanitizer> 57 <expand macro="list_string_san"/>
50 <valid initial="string.printable"> 58 </param>
51 <remove value="'"/> 59 </expand>
52 <remove value="&quot;"/> 60 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true">
53 </valid> 61 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
54 </sanitizer>
55 </param> 62 </param>
56 <expand macro="advanced_options">
57 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/>
58 </expand>
59 </inputs> 63 </inputs>
60 <outputs> 64 <outputs>
61 <data name="param_out" format="tabular"/> 65 <data name="out" label="${tool.name} on ${on_string}: out" format="csv"/>
66 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
67 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
68 </data>
62 </outputs> 69 </outputs>
63 <help>Converts a featureXML to a mProphet tsv. 70 <tests>
71 <expand macro="autotest_OpenSwathFeatureXMLToTSV"/>
72 <expand macro="manutest_OpenSwathFeatureXMLToTSV"/>
73 </tests>
74 <help><![CDATA[Converts a featureXML to a mProphet tsv.
64 75
65 76
66 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/TOPP_OpenSwathFeatureXMLToTSV.html</help> 77 For more information, visit http://www.openms.de/documentation/TOPP_OpenSwathFeatureXMLToTSV.html]]></help>
78 <expand macro="references"/>
67 </tool> 79 </tool>