Mercurial > repos > galaxyp > openms_jsonexporter
comparison JSONExporter.xml @ 0:f483ffdc7014 draft default tip
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
author | galaxyp |
---|---|
date | Fri, 14 Jun 2024 21:32:42 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f483ffdc7014 |
---|---|
1 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.--> | |
2 <!--Proposed Tool Section: [[for Developers]]--> | |
3 <tool id="JSONExporter" name="JSONExporter" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> | |
4 <description>Exports .oms (SQLite) files in JSON format</description> | |
5 <macros> | |
6 <token name="@EXECUTABLE@">JSONExporter</token> | |
7 <import>macros.xml</import> | |
8 </macros> | |
9 <expand macro="requirements"/> | |
10 <expand macro="stdio"/> | |
11 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ | |
12 @EXT_FOO@ | |
13 #import re | |
14 | |
15 ## Preprocessing | |
16 mkdir in && | |
17 cp '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && | |
18 mkdir out && | |
19 | |
20 ## Main program call | |
21 | |
22 set -o pipefail && | |
23 @EXECUTABLE@ -write_ctd ./ && | |
24 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && | |
25 @EXECUTABLE@ -ini @EXECUTABLE@.ctd | |
26 -in | |
27 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' | |
28 -out | |
29 'out/output.${gxy2omsext("json")}' | |
30 | |
31 ## Postprocessing | |
32 && mv 'out/output.${gxy2omsext("json")}' '$out' | |
33 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS | |
34 && mv '@EXECUTABLE@.ctd' '$ctd_out' | |
35 #end if]]></command> | |
36 <configfiles> | |
37 <inputs name="args_json" data_style="paths"/> | |
38 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> | |
39 </configfiles> | |
40 <inputs> | |
41 <param argument="-in" type="data" format="sqlite" label="Input file" help=" select sqlite data sets(s)"/> | |
42 <expand macro="adv_opts_macro"> | |
43 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> | |
44 <param argument="-test" type="hidden" value="False" label="Enables the test mode (needed for internal use only)" help="" optional="true"> | |
45 <expand macro="list_string_san" name="test"/> | |
46 </param> | |
47 </expand> | |
48 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> | |
49 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> | |
50 </param> | |
51 </inputs> | |
52 <outputs> | |
53 <data name="out" label="${tool.name} on ${on_string}: out" format="json"/> | |
54 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> | |
55 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> | |
56 </data> | |
57 </outputs> | |
58 <tests> | |
59 <!-- TOPP_JSONExporter_1 --> | |
60 <test expect_num_outputs="2"> | |
61 <section name="adv_opts"> | |
62 <param name="force" value="false"/> | |
63 <param name="test" value="true"/> | |
64 </section> | |
65 <param name="in" value="JSONExporter_protein.oms"/> | |
66 <output name="out" value="JSONExporter_1_output.json" compare="sim_size" delta_frac="0.7" ftype="json"/> | |
67 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/> | |
68 <output name="ctd_out" ftype="xml"> | |
69 <assert_contents> | |
70 <is_valid_xml/> | |
71 </assert_contents> | |
72 </output> | |
73 <assert_stdout> | |
74 <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/> | |
75 </assert_stdout> | |
76 </test> | |
77 <!-- TOPP_JSONExporter_2 --> | |
78 <test expect_num_outputs="2"> | |
79 <section name="adv_opts"> | |
80 <param name="force" value="false"/> | |
81 <param name="test" value="true"/> | |
82 </section> | |
83 <param name="in" value="JSONExporter_RNA.oms"/> | |
84 <output name="out" value="JSONExporter_2_output.json" compare="sim_size" delta_frac="0.7" ftype="json"/> | |
85 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/> | |
86 <output name="ctd_out" ftype="xml"> | |
87 <assert_contents> | |
88 <is_valid_xml/> | |
89 </assert_contents> | |
90 </output> | |
91 <assert_stdout> | |
92 <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/> | |
93 </assert_stdout> | |
94 </test> | |
95 </tests> | |
96 <help><![CDATA[Exports .oms (SQLite) files in JSON format | |
97 | |
98 | |
99 For more information, visit https://openms.de/doxygen/release/3.1.0/html/TOPP_JSONExporter.html]]></help> | |
100 <expand macro="references"/> | |
101 </tool> |