comparison MSstatsConverter.xml @ 0:0dcd11bc33f8 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:59:06 +0000
parents
children e444b158fb20
comparison
equal deleted inserted replaced
-1:000000000000 0:0dcd11bc33f8
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.-->
3 <!--Proposed Tool Section: [Utilities]-->
4 <tool id="MSstatsConverter" name="MSstatsConverter" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
5 <description>Converter to input for MSstats</description>
6 <macros>
7 <token name="@EXECUTABLE@">MSstatsConverter</token>
8 <import>macros.xml</import>
9 <import>macros_autotest.xml</import>
10 <import>macros_test.xml</import>
11 </macros>
12 <expand macro="requirements"/>
13 <expand macro="stdio"/>
14 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@
15 @EXT_FOO@
16 #import re
17
18 ## Preprocessing
19 mkdir in &&
20 ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
21 mkdir in_design &&
22 ln -s '$in_design' 'in_design/${re.sub("[^\w\-_]", "_", $in_design.element_identifier)}.$gxy2omsext($in_design.ext)' &&
23 mkdir out &&
24 #if $adv_opts_cond.adv_opts_selector=='advanced':
25 #if $adv_opts_cond.reannotate_filenames:
26 mkdir adv_opts_cond.reannotate_filenames &&
27 ${ ' '.join(["ln -s '%s' 'adv_opts_cond.reannotate_filenames/%s.%s' &&" % (_, re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $adv_opts_cond.reannotate_filenames if _]) }
28 #end if
29 #end if
30
31 ## Main program call
32
33 set -o pipefail &&
34 @EXECUTABLE@ -write_ctd ./ &&
35 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
36 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
37 -in
38 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
39 -in_design
40 'in_design/${re.sub("[^\w\-_]", "_", $in_design.element_identifier)}.$gxy2omsext($in_design.ext)'
41 -out
42 'out/output.${gxy2omsext("csv")}'
43 #if $adv_opts_cond.adv_opts_selector=='advanced':
44 #if $adv_opts_cond.reannotate_filenames:
45 -reannotate_filenames
46 ${' '.join(["'adv_opts_cond.reannotate_filenames/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $adv_opts_cond.reannotate_filenames if _])}
47 #end if
48 #end if
49
50 ## Postprocessing
51 && mv 'out/output.${gxy2omsext("csv")}' '$out'
52 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
53 && mv '@EXECUTABLE@.ctd' '$ctd_out'
54 #end if]]></command>
55 <configfiles>
56 <inputs name="args_json" data_style="paths"/>
57 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
58 </configfiles>
59 <inputs>
60 <param name="in" argument="-in" type="data" format="consensusxml" optional="false" label="Input consensusXML with peptide intensities" help=" select consensusxml data sets(s)"/>
61 <param name="in_design" argument="-in_design" type="data" format="tabular" optional="false" label="Experimental Design file" help=" select tabular data sets(s)"/>
62 <param name="method" argument="-method" display="radio" type="select" optional="false" label="Method used in the experiment(label free [LFQ], isobaric labeling [ISO]))" help="">
63 <option value="LFQ" selected="true">LFQ</option>
64 <option value="ISO">ISO</option>
65 <expand macro="list_string_san"/>
66 </param>
67 <param name="msstats_bioreplicate" argument="-msstats_bioreplicate" type="text" optional="true" value="MSstats_BioReplicate" label="Which column in the condition table should be used for MSstats 'BioReplicate'" help="">
68 <expand macro="list_string_san"/>
69 </param>
70 <param name="msstats_condition" argument="-msstats_condition" type="text" optional="true" value="MSstats_Condition" label="Which column in the condition table should be used for MSstats 'Condition'" help="">
71 <expand macro="list_string_san"/>
72 </param>
73 <param name="msstats_mixture" argument="-msstats_mixture" type="text" optional="true" value="MSstats_Mixture" label="Which column in the condition table should be used for MSstats 'Mixture'" help="">
74 <expand macro="list_string_san"/>
75 </param>
76 <param name="labeled_reference_peptides" argument="-labeled_reference_peptides" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If set, IsotopeLabelType is 'H', else 'L'" help=""/>
77 <expand macro="adv_opts_macro">
78 <param name="reannotate_filenames" argument="-reannotate_filenames" type="data" format="mzml" multiple="true" optional="true" label="Overwrite MS file names in consensusXML" help=" select mzml data sets(s)"/>
79 <param name="retention_time_summarization_method" argument="-retention_time_summarization_method" type="select" optional="false" label="How indistinguishable peptidoforms at different retention times should be treated" help="This is usually necessary for LFQ experiments and therefore defaults to 'max'. In case of TMT/iTRAQ, MSstatsTMT does the aggregation itself later and the parameter always resets to manual (i.e. is unused)">
80 <option value="manual">manual</option>
81 <option value="max" selected="true">max</option>
82 <option value="min">min</option>
83 <option value="mean">mean</option>
84 <option value="sum">sum</option>
85 <expand macro="list_string_san"/>
86 </param>
87 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
88 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
89 <expand macro="list_string_san"/>
90 </param>
91 </expand>
92 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true">
93 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
94 </param>
95 </inputs>
96 <outputs>
97 <data name="out" label="${tool.name} on ${on_string}: out" format="csv"/>
98 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
99 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
100 </data>
101 </outputs>
102 <tests>
103 <expand macro="autotest_MSstatsConverter"/>
104 <expand macro="manutest_MSstatsConverter"/>
105 </tests>
106 <help><![CDATA[Converter to input for MSstats
107
108
109 For more information, visit http://www.openms.de/documentation/UTILS_MSstatsConverter.html]]></help>
110 <expand macro="references"/>
111 </tool>