comparison TargetedFileConverter.xml @ 7:51b9c2d5b4c3 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:55:31 +0000
parents eb22f145fae1
children 6562463bf496
comparison
equal deleted inserted replaced
6:eb22f145fae1 7:51b9c2d5b4c3
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="TargetedFileConverter" name="TargetedFileConverter" version="2.3.0"> 4 <tool id="TargetedFileConverter" name="TargetedFileConverter" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
5 <description>Converts different transition files for targeted proteomics / metabolomics analysis.</description> 5 <description>Converts different transition files for targeted proteomics / metabolomics analysis.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">TargetedFileConverter</token> 7 <token name="@EXECUTABLE@">TargetedFileConverter</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[TargetedFileConverter 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_out_type: 24
22 -out_type 25 set -o pipefail &&
23 #if " " in str($param_out_type): 26 @EXECUTABLE@ -write_ctd ./ &&
24 "$param_out_type" 27 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
25 #else 28 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
26 $param_out_type 29 -in
27 #end if 30 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
28 #end if 31 -out
29 #if $adv_opts.adv_opts_selector=='advanced': 32 'out/output.${out_type}'
30 #if $adv_opts.param_legacy_traml_id: 33
31 -legacy_traml_id 34 ## Postprocessing
32 #end if 35 && mv 'out/output.${out_type}' '$out'
33 #if $adv_opts.param_force: 36 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
34 -force 37 && mv '@EXECUTABLE@.ctd' '$ctd_out'
35 #end if 38 #end if]]></command>
36 #if $adv_opts.param_algorithm_retentionTimeInterpretation: 39 <configfiles>
37 -algorithm:retentionTimeInterpretation 40 <inputs name="args_json" data_style="paths"/>
38 #if " " in str($adv_opts.param_algorithm_retentionTimeInterpretation): 41 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
39 "$adv_opts.param_algorithm_retentionTimeInterpretation" 42 </configfiles>
40 #else
41 $adv_opts.param_algorithm_retentionTimeInterpretation
42 #end if
43 #end if
44 #if $adv_opts.param_algorithm_override_group_label_check:
45 -algorithm:override_group_label_check
46 #end if
47 #if $adv_opts.param_algorithm_force_invalid_mods:
48 -algorithm:force_invalid_mods
49 #end if
50 #end if
51 ]]></command>
52 <inputs> 43 <inputs>
53 <param name="param_in" type="data" format="tabular,mrm,pqp,traml" optional="False" label="Input file to convert" help="(-in) &lt;br&gt; See http://www.openms.de/current_doxygen/html/UTILS_TargetedFileConverter.html for format of OpenSWATH transition TSV file or SpectraST MRM file"/> 44 <param name="in" argument="-in" type="data" format="mrm,pqp,tabular,traml" optional="false" label="Input file to convert" help="See http://www.openms.de/current_doxygen/html/UTILS_TargetedFileConverter.html for format of OpenSWATH transition TSV file or SpectraST MRM file select mrm,pqp,tabular,traml data sets(s)"/>
54 <param name="param_out_type" display="radio" type="select" optional="True" label="Output file type -- default: determined from file extension or content &lt;br&gt;Note: that not all conversion paths work or make sense" help="(-out_type) "> 45 <param name="out_type" argument="-out_type" display="radio" type="select" optional="false" label="Output file type -- default: determined from file extension or content" help="Note: that not all conversion paths work or make sense">
55 <option value="tsv">tsv</option> 46 <option value="TraML">traml</option>
56 <option value="pqp">pqp</option> 47 <option value="pqp">pqp</option>
57 <option value="TraML">TraML</option> 48 <option value="tsv">tabular (tsv)</option>
49 <expand macro="list_string_san"/>
58 </param> 50 </param>
59 <expand macro="advanced_options"> 51 <section name="algorithm" title="Algorithm parameters section" help="" expanded="false">
60 <param name="param_legacy_traml_id" display="radio" type="boolean" truevalue="-legacy_traml_id" falsevalue="" checked="false" optional="True" label="PQP to TraML: Should legacy TraML IDs be used?" help="(-legacy_traml_id) "/> 52 <param name="retentionTimeInterpretation" argument="-algorithm:retentionTimeInterpretation" display="radio" type="select" optional="false" label="How to interpret the provided retention time (the retention time column can either be interpreted to be in iRT, minutes or seconds)" help="">
61 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/>
62 <param name="param_algorithm_retentionTimeInterpretation" display="radio" type="select" optional="False" value="iRT" label="How to interpret the provided retention time (the retention time column can either be interpreted to be in iRT, minutes or seconds)" help="(-retentionTimeInterpretation) ">
63 <option value="iRT" selected="true">iRT</option> 53 <option value="iRT" selected="true">iRT</option>
64 <option value="seconds">seconds</option> 54 <option value="seconds">seconds</option>
65 <option value="minutes">minutes</option> 55 <option value="minutes">minutes</option>
56 <expand macro="list_string_san"/>
66 </param> 57 </param>
67 <param name="param_algorithm_override_group_label_check" display="radio" type="boolean" truevalue="-algorithm:override_group_label_check" falsevalue="" checked="false" optional="True" label="Override an internal check that assures that all members of the same PeptideGroupLabel have the same PeptideSequence (this ensures that only different isotopic forms of the same peptide can be grouped together in the same label group)" help="(-override_group_label_check) Only turn this off if you know what you are doing"/> 58 <param name="override_group_label_check" argument="-algorithm:override_group_label_check" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Override an internal check that assures that all members of the same PeptideGroupLabel have the same PeptideSequence (this ensures that only different isotopic forms of the same peptide can be grouped together in the same label group)" help="Only turn this off if you know what you are doing"/>
68 <param name="param_algorithm_force_invalid_mods" display="radio" type="boolean" truevalue="-algorithm:force_invalid_mods" falsevalue="" checked="false" optional="True" label="Force reading even if invalid modifications are encountered (OpenMS may not recognize the modification)" help="(-force_invalid_mods) "/> 59 <param name="force_invalid_mods" argument="-algorithm:force_invalid_mods" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Force reading even if invalid modifications are encountered (OpenMS may not recognize the modification)" help=""/>
60 </section>
61 <expand macro="adv_opts_macro">
62 <param name="legacy_traml_id" argument="-legacy_traml_id" type="boolean" truevalue="true" falsevalue="false" checked="false" label="PQP to TraML: Should legacy TraML IDs be used?" help=""/>
63 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
64 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
65 <expand macro="list_string_san"/>
66 </param>
69 </expand> 67 </expand>
68 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true">
69 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
70 </param>
70 </inputs> 71 </inputs>
71 <outputs> 72 <outputs>
72 <data name="param_out" metadata_source="param_in" format="input"/> 73 <data name="out" label="${tool.name} on ${on_string}: out">
74 <change_format>
75 <when input="out_type" value="TraML" format="traml"/>
76 <when input="out_type" value="pqp" format="pqp"/>
77 <when input="out_type" value="tsv" format="tabular"/>
78 </change_format>
79 </data>
80 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
81 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
82 </data>
73 </outputs> 83 </outputs>
74 <help>Converts different transition files for targeted proteomics / metabolomics analysis. 84 <tests>
85 <expand macro="autotest_TargetedFileConverter"/>
86 <expand macro="manutest_TargetedFileConverter"/>
87 </tests>
88 <help><![CDATA[Converts different transition files for targeted proteomics / metabolomics analysis.
75 89
76 90
77 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/UTILS_TargetedFileConverter.html</help> 91 For more information, visit http://www.openms.de/documentation/UTILS_TargetedFileConverter.html]]></help>
92 <expand macro="references"/>
78 </tool> 93 </tool>