Mercurial > repos > galaxyp > openms_idextractor
comparison IDExtractor.xml @ 11:d1d410b94443 draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 020906fb54bde7fc143c356f41975c378a741315"
author | galaxyp |
---|---|
date | Wed, 09 Sep 2020 20:12:15 +0000 |
parents | 1b6ca25c12c3 |
children | 2a2fa2b57306 |
comparison
equal
deleted
inserted
replaced
10:08d61e268387 | 11:d1d410b94443 |
---|---|
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="IDExtractor" name="IDExtractor" version="2.3.0"> | 4 <tool id="IDExtractor" name="IDExtractor" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> |
5 <description>Extracts 'n' peptides randomly or best 'n' from idXML files.</description> | 5 <description>Extracts 'n' peptides randomly or best 'n' from idXML files.</description> |
6 <macros> | 6 <macros> |
7 <token name="@EXECUTABLE@">IDExtractor</token> | 7 <token name="@EXECUTABLE@">IDExtractor</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[IDExtractor | 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_number_of_peptides: | 24 |
22 -number_of_peptides $param_number_of_peptides | 25 set -o pipefail && |
23 #end if | 26 @EXECUTABLE@ -write_ctd ./ && |
24 #if $param_number_of_rand_invokations: | 27 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && |
25 -number_of_rand_invokations $param_number_of_rand_invokations | 28 @EXECUTABLE@ -ini @EXECUTABLE@.ctd |
26 #end if | 29 -in |
27 #if $param_best_hits: | 30 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' |
28 -best_hits | 31 -out |
29 #end if | 32 'out/output.${gxy2omsext("idxml")}' |
30 #if $adv_opts.adv_opts_selector=='advanced': | 33 |
31 #if $adv_opts.param_force: | 34 ## Postprocessing |
32 -force | 35 && mv 'out/output.${gxy2omsext("idxml")}' '$out' |
33 #end if | 36 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS |
34 #end if | 37 && mv '@EXECUTABLE@.ctd' '$ctd_out' |
35 ]]></command> | 38 #end if]]></command> |
39 <configfiles> | |
40 <inputs name="args_json" data_style="paths"/> | |
41 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> | |
42 </configfiles> | |
36 <inputs> | 43 <inputs> |
37 <param name="param_in" type="data" format="idxml" optional="False" label="input file" help="(-in) "/> | 44 <param name="in" argument="-in" type="data" format="idxml" optional="false" label="input file" help=" select idxml data sets(s)"/> |
38 <param name="param_number_of_peptides" type="integer" min="1" optional="True" value="10" label="Number of randomly chosen peptides" help="(-number_of_peptides) "/> | 45 <param name="number_of_peptides" argument="-number_of_peptides" type="integer" optional="true" min="1" value="10" label="Number of randomly chosen peptides" help=""/> |
39 <param name="param_number_of_rand_invokations" type="integer" min="0" optional="True" value="0" label="Number of rand invocations before random draw" help="(-number_of_rand_invokations) "/> | 46 <param name="number_of_rand_invokations" argument="-number_of_rand_invokations" type="integer" optional="true" min="0" value="0" label="Number of rand invocations before random draw" help=""/> |
40 <param name="param_best_hits" display="radio" type="boolean" truevalue="-best_hits" falsevalue="" checked="false" optional="True" label="If this flag is set the best n peptides are chosen" help="(-best_hits) "/> | 47 <param name="best_hits" argument="-best_hits" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If this flag is set the best n peptides are chosen" help=""/> |
41 <expand macro="advanced_options"> | 48 <expand macro="adv_opts_macro"> |
42 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> | 49 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/> |
50 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> | |
51 <expand macro="list_string_san"/> | |
52 </param> | |
43 </expand> | 53 </expand> |
54 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true"> | |
55 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> | |
56 </param> | |
44 </inputs> | 57 </inputs> |
45 <outputs> | 58 <outputs> |
46 <data name="param_out" format="idxml"/> | 59 <data name="out" label="${tool.name} on ${on_string}: out" format="idxml"/> |
60 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> | |
61 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> | |
62 </data> | |
47 </outputs> | 63 </outputs> |
48 <help>Extracts 'n' peptides randomly or best 'n' from idXML files. | 64 <tests> |
65 <expand macro="autotest_IDExtractor"/> | |
66 <expand macro="manutest_IDExtractor"/> | |
67 </tests> | |
68 <help><![CDATA[Extracts 'n' peptides randomly or best 'n' from idXML files. | |
49 | 69 |
50 | 70 |
51 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/UTILS_IDExtractor.html</help> | 71 For more information, visit http://www.openms.de/documentation/UTILS_IDExtractor.html]]></help> |
72 <expand macro="references"/> | |
52 </tool> | 73 </tool> |