comparison OpenSwathDIAPreScoring.xml @ 11:c99d5004b74f draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
author galaxyp
date Thu, 01 Dec 2022 19:20:01 +0000
parents e6ba7a995b35
children
comparison
equal deleted inserted replaced
10:d4396637b9f5 11:c99d5004b74f
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="OpenSwathDIAPreScoring" name="OpenSwathDIAPreScoring" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> 4 <tool id="OpenSwathDIAPreScoring" name="OpenSwathDIAPreScoring" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
5 <description>Scoring spectra using the DIA scores.</description> 5 <description>Scoring spectra using the DIA scores.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">OpenSwathDIAPreScoring</token> 7 <token name="@EXECUTABLE@">OpenSwathDIAPreScoring</token>
8 <import>macros.xml</import> 8 <import>macros.xml</import>
9 <import>macros_autotest.xml</import>
10 <import>macros_test.xml</import>
11 </macros> 9 </macros>
12 <expand macro="requirements"/> 10 <expand macro="requirements"/>
13 <expand macro="stdio"/> 11 <expand macro="stdio"/>
14 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ 12 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@
15 @EXT_FOO@ 13 @EXT_FOO@
16 #import re 14 #import re
17 15
18 ## Preprocessing 16 ## Preprocessing
19 mkdir tr && 17 mkdir tr &&
20 ln -s '$tr' 'tr/${re.sub("[^\w\-_]", "_", $tr.element_identifier)}.$gxy2omsext($tr.ext)' && 18 ln -s '$tr' 'tr/${re.sub("[^\w\-_]", "_", $tr.element_identifier)}.$gxy2omsext($tr.ext)' &&
21 mkdir swath_files && 19 mkdir swath_files_cond.swath_files &&
22 ${ ' '.join(["ln -s '%s' 'swath_files/%s.%s' &&" % (_, re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $swath_files if _]) } 20 #if $swath_files_cond.swath_files_select == "no"
21 mkdir ${' '.join(["'swath_files_cond.swath_files/%s'" % (i) for i, f in enumerate($swath_files_cond.swath_files) if f])} &&
22 ${' '.join(["ln -s '%s' 'swath_files_cond.swath_files/%s/%s.%s' && " % (f, i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($swath_files_cond.swath_files) if f])}
23 #else
24 ln -s '$swath_files_cond.swath_files' 'swath_files_cond.swath_files/${re.sub("[^\w\-_]", "_", $swath_files_cond.swath_files.element_identifier)}.$gxy2omsext($swath_files_cond.swath_files.ext)' &&
25 #end if
23 mkdir output_files && 26 mkdir output_files &&
27 mkdir ${' '.join(["'output_files/%s'" % (i) for i, f in enumerate($swath_files_cond.swath_files) if f])} &&
24 28
25 ## Main program call 29 ## Main program call
26 30
27 set -o pipefail && 31 set -o pipefail &&
28 @EXECUTABLE@ -write_ctd ./ && 32 @EXECUTABLE@ -write_ctd ./ &&
29 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && 33 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
30 @EXECUTABLE@ -ini @EXECUTABLE@.ctd 34 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
31 -tr 35 -tr
32 'tr/${re.sub("[^\w\-_]", "_", $tr.element_identifier)}.$gxy2omsext($tr.ext)' 36 'tr/${re.sub("[^\w\-_]", "_", $tr.element_identifier)}.$gxy2omsext($tr.ext)'
33 -swath_files 37 -swath_files
34 ${' '.join(["'swath_files/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $swath_files if _])} 38 #if $swath_files_cond.swath_files_select == "no"
39 ${' '.join(["'swath_files_cond.swath_files/%s/%s.%s'"%(i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($swath_files_cond.swath_files) if f])}
40 #else
41 'swath_files_cond.swath_files/${re.sub("[^\w\-_]", "_", $swath_files_cond.swath_files.element_identifier)}.$gxy2omsext($swath_files_cond.swath_files.ext)'
42 #end if
35 -output_files 43 -output_files
36 ${' '.join(["'output_files/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext("tabular")) for _ in $swath_files if _])} 44 ${' '.join(["'output_files/%s/%s.%s'"%(i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext("tabular")) for i, f in enumerate($swath_files_cond.swath_files) if f])}
37 45
38 ## Postprocessing 46 ## Postprocessing
39 ${' '.join(["&& mv -n 'swath_files/%(id)s.%(gext)s' 'output_files/%(id)s'"%{"id": re.sub('[^\w\-_]', '_', _.element_identifier), "gext": $gxy2omsext("tabular")} for _ in $output_files if _])} 47 ${' '.join(["&& mv -n 'output_files/%(bn)s/%(id)s.%(gext)s' 'output_files/%(bn)s/%(id)s'"%{"bn": i, "id": re.sub('[^\w\-_]', '_', f.element_identifier), "gext": $gxy2omsext("tabular")} for i, f in enumerate($swath_files_cond.swath_files) if f])}
40 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS 48 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
41 && mv '@EXECUTABLE@.ctd' '$ctd_out' 49 && mv '@EXECUTABLE@.ctd' '$ctd_out'
42 #end if]]></command> 50 #end if]]></command>
43 <configfiles> 51 <configfiles>
44 <inputs name="args_json" data_style="paths"/> 52 <inputs name="args_json" data_style="paths"/>
45 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> 53 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
46 </configfiles> 54 </configfiles>
47 <inputs> 55 <inputs>
48 <param name="tr" argument="-tr" type="data" format="traml" optional="false" label="transition file" help=" select traml data sets(s)"/> 56 <param argument="-tr" type="data" format="traml" optional="false" label="transition file" help=" select traml data sets(s)"/>
49 <param name="swath_files" argument="-swath_files" type="data" format="mzml" multiple="true" optional="false" label="Swath files that were used to extract the transitions" help="If present, SWATH specific scoring will be applied select mzml data sets(s)"/> 57 <conditional name="swath_files_cond">
50 <param name="min_upper_edge_dist" argument="-min_upper_edge_dist" type="float" optional="true" value="0.0" label="Minimal distance to the edge to still consider a precursor, in Thomson (only in SWATH)" help=""/> 58 <param name="swath_files_select" type="select" label="Run tool in batch mode for -swath_files">
59 <option value="no">No: process all datasets jointly</option>
60 <option value="yes">Yes: process each dataset in an independent job</option>
61 </param>
62 <when value="no">
63 <param argument="-swath_files" type="data" format="mzml" multiple="true" optional="false" label="Swath files that were used to extract the transitions" help="If present, SWATH specific scoring will be applied select mzml data sets(s)"/>
64 </when>
65 <when value="yes">
66 <param argument="-swath_files" type="data" format="mzml" multiple="false" optional="false" label="Swath files that were used to extract the transitions" help="If present, SWATH specific scoring will be applied select mzml data sets(s)"/>
67 </when>
68 </conditional>
69 <param argument="-min_upper_edge_dist" type="float" optional="true" value="0.0" label="Minimal distance to the edge to still consider a precursor, in Thomson (only in SWATH)" help=""/>
51 <expand macro="adv_opts_macro"> 70 <expand macro="adv_opts_macro">
52 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> 71 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/>
53 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> 72 <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
54 <expand macro="list_string_san"/> 73 <expand macro="list_string_san" name="test"/>
55 </param> 74 </param>
56 </expand> 75 </expand>
57 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> 76 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs">
58 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> 77 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
59 </param> 78 </param>
60 </inputs> 79 </inputs>
61 <outputs> 80 <outputs>
62 <collection type="list" name="output_files" label="${tool.name} on ${on_string}: output_files"> 81 <collection type="list" name="output_files" label="${tool.name} on ${on_string}: output_files">
63 <discover_datasets directory="output_files" format="tabular" pattern="__name__"/> 82 <discover_datasets directory="output_files" recurse="true" format="tabular" pattern="__name__"/>
64 </collection> 83 </collection>
65 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> 84 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
66 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> 85 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
67 </data> 86 </data>
68 </outputs> 87 </outputs>
69 <tests> 88 <tests><!-- data from a test that included all the needed test files -->
70 <expand macro="autotest_OpenSwathDIAPreScoring"/> 89 <test>
71 <expand macro="manutest_OpenSwathDIAPreScoring"/> 90 <param name="tr" value="OpenSwathWorkflow_1_input.TraML"/>
72 </tests> 91 <param name="swath_files" value="OpenSwathAnalyzer_2_swathfile.mzML"/>
92 <output_collection name="output_files" count="1">
93 <element name="OpenSwathAnalyzer_2_swathfile_mzML" file="OpenSwathDIAPreScoring.tsv" ftype="tabular"/>
94 </output_collection>
95 </test>
96 <!-- test with two inputs (actually the same file .. symlinked) -->
97 <test>
98 <param name="tr" value="OpenSwathWorkflow_1_input.TraML"/>
99 <param name="swath_files" value="OpenSwathDIAPreScoring_in1.mzML,OpenSwathDIAPreScoring_in2.mzML"/>
100 <output_collection name="output_files" count="2">
101 <element name="OpenSwathDIAPreScoring_in1_mzML" file="OpenSwathDIAPreScoring_2_1.tsv" ftype="tabular"/>
102 <element name="OpenSwathDIAPreScoring_in2_mzML" file="OpenSwathDIAPreScoring_2_2.tsv" ftype="tabular"/>
103 </output_collection>
104 </test>
105 </tests>
73 <help><![CDATA[Scoring spectra using the DIA scores. 106 <help><![CDATA[Scoring spectra using the DIA scores.
74 107
75 108
76 For more information, visit http://www.openms.de/doxygen/release/2.6.0/html/UTILS_OpenSwathDIAPreScoring.html]]></help> 109 For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/UTILS_OpenSwathDIAPreScoring.html]]></help>
77 <expand macro="references"/> 110 <expand macro="references"/>
78 </tool> 111 </tool>