comparison larch_criteria_report.xml @ 0:aa9cb2b42741 draft default tip

planemo upload for repository https://github.com/MaterialsGalaxy/larch-tools/tree/main/larch_criteria_report commit 5be486890442dedfb327289d597e1c8110240735
author muon-spectroscopy-computational-project
date Tue, 14 Nov 2023 15:34:55 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:aa9cb2b42741
1 <tool id="larch_criteria_report" name="Larch Criteria Report" version="@TOOL_VERSION@+galaxy@WRAPPER_VERSION@" python_template_version="3.5" profile="22.05" license="MIT">
2 <description>generate reports on Artemis fitting from XAFS data</description>
3 <macros>
4 <!-- version of underlying tool (PEP 440) -->
5 <token name="@TOOL_VERSION@">3.5.2</token>
6 <!-- version of this tool wrapper (integer) -->
7 <token name="@WRAPPER_VERSION@">0</token>
8 <!-- citation should be updated with every underlying tool version -->
9 <!-- typical fields to update are version, month, year, and doi -->
10 <token name="@TOOL_CITATION@">10.1109/MCSE.2007.55</token>
11 </macros>
12 <creator>
13 <person givenName="Patrick" familyName="Austin" url="https://github.com/patrick-austin" identifier="https://orcid.org/0000-0002-6279-7823"/>
14 </creator>
15 <requirements>
16 <requirement type="package" version="@TOOL_VERSION@">matplotlib</requirement>
17 <requirement type="package" version="3.0">zip</requirement>
18 </requirements>
19 <required_files>
20 <include type="literal" path="larch_criteria_report.py"/>
21 </required_files>
22 <command detect_errors="exit_code"><![CDATA[
23 mkdir plots
24 && input_file='$format.input_data'
25 #if $format.format == 'zipped':
26 && unzip \$input_file
27 && input_file=report
28 #end if
29 && python '${__tool_directory__}/larch_criteria_report.py' \$input_file '$inputs'
30 ]]></command>
31 <configfiles>
32 <inputs name="inputs"/>
33 </configfiles>
34 <inputs>
35 <conditional name="format" >
36 <param name="format" type="select" display="radio" label="Input format" help="Format of input file(s).">
37 <option value="csv" selected="true">Single CSV</option>
38 <option value="collection">Multiple FEFFIT reports</option>
39 <option value="zipped">Zipped FEFFIT reports</option>
40 </param>
41 <when value="csv">
42 <param name="input_data" type="data" format="csv" label="Criteria report" help="Report summarising logged criteria from an execution of Larch Artemis."/>
43 </when>
44 <when value="collection">
45 <param name="input_data" type="data" format="feffit" multiple="true" label="Fit reports" help="Individual fit reports from independent executions of Larch Artemis."/>
46 <repeat name="report_criteria" title="Report Criteria">
47 <param name="variable" type="text" label="Variable" help="Name of the variable of that appears in the statistics or variables sections of the report."/>
48 </repeat>
49 </when>
50 <when value="zipped">
51 <param name="input_data" type="data" format="zip" label="Zipped Artemis outputs" help="Zipped fit reports from series executions of Larch Artemis."/>
52 <repeat name="report_criteria" title="Report Criteria">
53 <param name="variable" type="text" label="Variable" help="Name of the variable of that appears in the statistics or variables sections of the report."/>
54 </repeat>
55 </when>
56 </conditional>
57 </inputs>
58 <outputs>
59 <data name="criteria_report" format="csv" from_work_dir="criteria_report.csv" label="Tabulated criteria from ${on_string}">
60 <filter>format["format"]!="csv"</filter>
61 </data>
62 <collection name="plots" format="png" type="list" label="Plots of criteria from ${on_string}">
63 <discover_datasets pattern="__name_and_ext__" directory="plots"/>
64 </collection>
65 </outputs>
66 <tests>
67 <!-- From CSV -->
68 <test expect_num_outputs="1">
69 <param name="input_data" value="criteria_report.csv"/>
70 <output_collection name="plots" type="list" count="2"/>
71 </test>
72 <!-- From TXT -->
73 <test expect_num_outputs="2">
74 <param name="format" value="collection"/>
75 <param name="input_data" value="0.txt,1.txt"/>
76 <param name="variable" value="alpha"/>
77 <output name="criteria_report" file="criteria_report_alpha.csv"/>
78 <output_collection name="plots" type="list" count="1"/>
79 </test>
80 <!-- From ZIP -->
81 <test expect_num_outputs="2">
82 <param name="format" value="zipped"/>
83 <param name="input_data" value="artemis_outputs.zip"/>
84 <param name="variable" value="alpha"/>
85 <output name="criteria_report" file="criteria_report_zipped.csv"/>
86 <output_collection name="plots" type="list" count="1"/>
87 </test>
88 </tests>
89 <help><![CDATA[
90 Plot criteria of interest from multiple Artemis fittings, for example where each dataset represents a sequential point in time.
91
92 Either accepts a CSV summary from series execution (with criteria already selected), a zipped directory, or multiple datasets/a collection of fit reports from parallel execution.
93 In the latter cases, the criteria of interest need to be specified.
94 ]]></help>
95 <citations>
96 <citation type="doi">@TOOL_CITATION@</citation>
97 </citations>
98 </tool>