comparison QCExtractor.xml @ 8:ef970936ce43 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:52:39 +0000
parents 0a6323c670c8
children 7468a1c8ca6e
comparison
equal deleted inserted replaced
7:0a6323c670c8 8:ef970936ce43
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: [Utilities]-->
4 <tool id="QCExtractor" name="QCExtractor" version="2.3.0"> 4 <tool id="QCExtractor" name="QCExtractor" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
5 <description>Extracts a table attachment to a given qc parameter.</description> 5 <description>Extracts a table attachment to a given qc parameter.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">QCExtractor</token> 7 <token name="@EXECUTABLE@">QCExtractor</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[QCExtractor 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 #if $run:
22 mkdir run &&
23 ln -s '$run' 'run/${re.sub("[^\w\-_]", "_", $run.element_identifier)}.$gxy2omsext($run.ext)' &&
17 #end if 24 #end if
18 #if $param_qp: 25 mkdir out_csv &&
19 -qp "$param_qp" 26
27 ## Main program call
28
29 set -o pipefail &&
30 @EXECUTABLE@ -write_ctd ./ &&
31 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
32 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
33 -in
34 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
35 #if $run:
36 -run
37 'run/${re.sub("[^\w\-_]", "_", $run.element_identifier)}.$gxy2omsext($run.ext)'
20 #end if 38 #end if
21 #if $param_run: 39 -out_csv
22 -run $param_run 40 'out_csv/output.${gxy2omsext("csv")}'
23 #end if 41
24 #if $param_name: 42 ## Postprocessing
25 -name "$param_name" 43 && mv 'out_csv/output.${gxy2omsext("csv")}' '$out_csv'
26 #end if 44 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
27 #if $param_out_csv: 45 && mv '@EXECUTABLE@.ctd' '$ctd_out'
28 -out_csv $param_out_csv 46 #end if]]></command>
29 #end if 47 <configfiles>
30 #if $adv_opts.adv_opts_selector=='advanced': 48 <inputs name="args_json" data_style="paths"/>
31 #if $adv_opts.param_force: 49 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
32 -force 50 </configfiles>
33 #end if
34 #end if
35 ]]></command>
36 <inputs> 51 <inputs>
37 <param name="param_in" type="data" format="qcml" optional="False" label="Input qcml file" help="(-in) "/> 52 <param name="in" argument="-in" type="data" format="qcml" optional="false" label="Input qcml file" help=" select qcml data sets(s)"/>
38 <param name="param_qp" type="text" size="30" label="Target attachment qp" help="(-qp) "> 53 <param name="qp" argument="-qp" type="text" optional="false" value="" label="Target attachment qp" help="">
39 <sanitizer> 54 <expand macro="list_string_san"/>
40 <valid initial="string.printable">
41 <remove value="'"/>
42 <remove value="&quot;"/>
43 </valid>
44 </sanitizer>
45 </param> 55 </param>
46 <param name="param_run" type="data" format="mzml" optional="True" label="The file that defined the run under which the qp for the attachment is aggregated as mzML file" help="(-run) The file is only used to extract the run name from the file name"/> 56 <param name="run" argument="-run" type="data" format="mzml" optional="true" label="The file that defined the run under which the qp for the attachment is aggregated as mzML file" help="The file is only used to extract the run name from the file name select mzml data sets(s)"/>
47 <param name="param_name" type="text" size="30" label="If no file for the run was given (or if the target qp is contained in a set), at least a name of the target run/set containing the the qp for the attachment has to be given" help="(-name) "> 57 <param name="name" argument="-name" type="text" optional="true" value="" label="If no file for the run was given (or if the target qp is contained in a set), at least a name of the target run/set containing the the qp for the attachment has to be given" help="">
48 <sanitizer> 58 <expand macro="list_string_san"/>
49 <valid initial="string.printable">
50 <remove value="'"/>
51 <remove value="&quot;"/>
52 </valid>
53 </sanitizer>
54 </param> 59 </param>
55 <expand macro="advanced_options"> 60 <expand macro="adv_opts_macro">
56 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> 61 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
62 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
63 <expand macro="list_string_san"/>
64 </param>
57 </expand> 65 </expand>
66 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true">
67 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
68 </param>
58 </inputs> 69 </inputs>
59 <outputs> 70 <outputs>
60 <data name="param_out_csv" format="tabular"/> 71 <data name="out_csv" label="${tool.name} on ${on_string}: out_csv" format="csv"/>
72 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
73 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
74 </data>
61 </outputs> 75 </outputs>
62 <help>Extracts a table attachment to a given qc parameter. 76 <tests>
77 <expand macro="autotest_QCExtractor"/>
78 <expand macro="manutest_QCExtractor"/>
79 </tests>
80 <help><![CDATA[Extracts a table attachment to a given qc parameter.
63 81
64 82
65 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/UTILS_QCExtractor.html</help> 83 For more information, visit http://www.openms.de/documentation/UTILS_QCExtractor.html]]></help>
84 <expand macro="references"/>
66 </tool> 85 </tool>