Mercurial > repos > galaxyp > openms_mzmlsplitter
comparison MzMLSplitter.xml @ 8:a2bf6f5def91 draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
author | galaxyp |
---|---|
date | Thu, 27 Aug 2020 19:35:53 -0400 |
parents | ab079a6757c1 |
children | 5aabc469cce0 |
comparison
equal
deleted
inserted
replaced
7:ab079a6757c1 | 8:a2bf6f5def91 |
---|---|
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="MzMLSplitter" name="MzMLSplitter" version="2.3.0"> | 4 <tool id="MzMLSplitter" name="MzMLSplitter" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> |
5 <description>Splits an mzML file into multiple parts</description> | 5 <description>Splits an mzML file into multiple parts</description> |
6 <macros> | 6 <macros> |
7 <token name="@EXECUTABLE@">MzMLSplitter</token> | 7 <token name="@EXECUTABLE@">MzMLSplitter</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="requirements"/> | 12 <expand macro="requirements"/> |
11 <expand macro="stdio"/> | 13 <expand macro="stdio"/> |
12 <command detect_errors="aggressive"><![CDATA[ | 14 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ |
13 mkdir parts/ && | 15 @EXT_FOO@ |
16 #import re | |
14 | 17 |
15 MzMLSplitter | 18 ## Preprocessing |
19 mkdir in && | |
20 ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && | |
21 mkdir out && | |
16 | 22 |
17 #if $param_in: | 23 ## Main program call |
18 -in $param_in | 24 |
19 #end if | 25 set -o pipefail && |
20 #if $param_out: | 26 @EXECUTABLE@ -write_ctd ./ && |
21 -out "parts/$param_out" | 27 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && |
22 #else | 28 @EXECUTABLE@ -ini @EXECUTABLE@.ctd |
23 -out "parts/MzML" | 29 -in |
24 #end if | 30 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' |
25 #if $param_parts: | 31 -out |
26 -parts $param_parts | 32 out/ |
27 #end if | 33 |
28 #if $param_size: | 34 ## Postprocessing |
29 -size $param_size | 35 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS |
30 #end if | 36 && mv '@EXECUTABLE@.ctd' '$ctd_out' |
31 #if $param_unit: | 37 #end if]]></command> |
32 -unit | 38 <configfiles> |
33 #if " " in str($param_unit): | 39 <inputs name="args_json" data_style="paths"/> |
34 "$param_unit" | 40 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> |
35 #else | 41 </configfiles> |
36 $param_unit | |
37 #end if | |
38 #end if | |
39 #if $param_no_chrom: | |
40 -no_chrom | |
41 #end if | |
42 #if $param_no_spec: | |
43 -no_spec | |
44 #end if | |
45 #if $adv_opts.adv_opts_selector=='advanced': | |
46 #if $adv_opts.param_force: | |
47 -force | |
48 #end if | |
49 #end if | |
50 -threads "\${GALAXY_SLOTS:-1}" | |
51 ]]></command> | |
52 <inputs> | 42 <inputs> |
53 <param name="param_in" type="data" format="mzml" optional="False" label="Input file" help="(-in) "/> | 43 <param name="in" argument="-in" type="data" format="mzml" optional="false" label="Input file" help=" select mzml data sets(s)"/> |
54 <param name="param_out" type="text" size="30" label="Prefix for output files ('_part1of2.mzML' etc" help="(-out) will be appended; default: same as 'in' without the file extension)"> | 44 <param name="parts" argument="-parts" type="integer" optional="true" min="1" value="1" label="Number of parts to split into (takes precedence over 'size' if set)" help=""/> |
55 <sanitizer> | 45 <param name="size" argument="-size" type="integer" optional="true" min="0" value="0" label="Approximate upper limit for resulting file sizes (in 'unit')" help=""/> |
56 <valid initial="string.printable"> | 46 <param name="unit" argument="-unit" display="radio" type="select" optional="false" label="Unit for 'size' (base 1024)" help=""> |
57 <remove value="'"/> | |
58 <remove value="""/> | |
59 </valid> | |
60 </sanitizer> | |
61 </param> | |
62 <param name="param_parts" type="integer" min="1" optional="True" value="1" label="Number of parts to split into (takes precedence over 'size' if set)" help="(-parts) "/> | |
63 <param name="param_size" type="integer" min="0" optional="True" value="0" label="Approximate upper limit for resulting file sizes (in 'unit')" help="(-size) "/> | |
64 <param name="param_unit" display="radio" type="select" optional="False" value="MB" label="Unit for 'size' (base 1024)" help="(-unit) "> | |
65 <option value="KB">KB</option> | 47 <option value="KB">KB</option> |
66 <option value="MB" selected="true">MB</option> | 48 <option value="MB" selected="true">MB</option> |
67 <option value="GB">GB</option> | 49 <option value="GB">GB</option> |
50 <expand macro="list_string_san"/> | |
68 </param> | 51 </param> |
69 <param name="param_no_chrom" display="radio" type="boolean" truevalue="-no_chrom" falsevalue="" checked="false" optional="True" label="Remove chromatograms, keep only spectra" help="(-no_chrom) "/> | 52 <param name="no_chrom" argument="-no_chrom" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Remove chromatograms, keep only spectra" help=""/> |
70 <param name="param_no_spec" display="radio" type="boolean" truevalue="-no_spec" falsevalue="" checked="false" optional="True" label="Remove spectra, keep only chromatograms" help="(-no_spec) "/> | 53 <param name="no_spec" argument="-no_spec" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Remove spectra, keep only chromatograms" help=""/> |
71 <expand macro="advanced_options"> | 54 <expand macro="adv_opts_macro"> |
72 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> | 55 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/> |
56 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> | |
57 <expand macro="list_string_san"/> | |
58 </param> | |
73 </expand> | 59 </expand> |
60 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true"> | |
61 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> | |
62 </param> | |
74 </inputs> | 63 </inputs> |
75 <outputs> | 64 <outputs> |
76 <collection name="parts" type="list"> | 65 <collection type="list" name="out" label="${tool.name} on ${on_string}: out"> |
77 <discover_datasets pattern="__name_and_ext__" format="mzml" directory="parts" /> | 66 <discover_datasets directory="out" format="mzml" pattern="_?(?P<designation>.*)\.[^.]*"/> |
78 </collection> | 67 </collection> |
68 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> | |
69 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> | |
70 </data> | |
79 </outputs> | 71 </outputs> |
80 <tests> | 72 <tests> |
81 <test> | 73 <expand macro="autotest_MzMLSplitter"/> |
82 <param name="param_in" value="FileFilter_1_input.mzML"/> | 74 <expand macro="manutest_MzMLSplitter"/> |
83 <param name="param_parts" value="2" /> | |
84 <output_collection name="parts" type="list"> | |
85 <element name="MzML_part1of2" file="MzMLSplitter_output_part1.mzML" ftype="mzml" /> | |
86 <element name="MzML_part2of2" file="MzMLSplitter_output_part2.mzML" ftype="mzml" /> | |
87 </output_collection> | |
88 </test> | |
89 </tests> | 75 </tests> |
90 <help>Splits an mzML file into multiple parts | 76 <help><![CDATA[Splits an mzML file into multiple parts |
91 | 77 |
92 | 78 |
93 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/UTILS_MzMLSplitter.html</help> | 79 For more information, visit http://www.openms.de/documentation/UTILS_MzMLSplitter.html]]></help> |
94 <expand macro="references"/> | 80 <expand macro="references"/> |
95 </tool> | 81 </tool> |