Mercurial > repos > muon-spectroscopy-computational-project > larch_plot
comparison larch_plot.xml @ 0:886949a03377 draft
planemo upload for repository https://github.com/MaterialsGalaxy/larch-tools/tree/main/larch_plot commit 5be486890442dedfb327289d597e1c8110240735
| author | muon-spectroscopy-computational-project |
|---|---|
| date | Tue, 14 Nov 2023 15:35:36 +0000 |
| parents | |
| children | 002c18a3e642 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:886949a03377 |
|---|---|
| 1 <tool id="larch_plot" name="Larch Plot" version="@TOOL_VERSION@+galaxy@WRAPPER_VERSION@" python_template_version="3.5" profile="22.05" license="MIT"> | |
| 2 <description>plot Athena projects</description> | |
| 3 <macros> | |
| 4 <!-- version of underlying tool (PEP 440) --> | |
| 5 <token name="@TOOL_VERSION@">0.9.71</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.1088/1742-6596/430/1/012007</token> | |
| 11 <import>macros.xml</import> | |
| 12 </macros> | |
| 13 <creator> | |
| 14 <person givenName="Patrick" familyName="Austin" url="https://github.com/patrick-austin" identifier="https://orcid.org/0000-0002-6279-7823"/> | |
| 15 </creator> | |
| 16 <requirements> | |
| 17 <requirement type="package" version="@TOOL_VERSION@">xraylarch</requirement> | |
| 18 <requirement type="package" version="3.5.2">matplotlib</requirement> | |
| 19 </requirements> | |
| 20 <required_files> | |
| 21 <include type="literal" path="larch_plot.py"/> | |
| 22 <include type="literal" path="common.py"/> | |
| 23 </required_files> | |
| 24 <command detect_errors="exit_code"><![CDATA[ | |
| 25 mkdir plots | |
| 26 && python '${__tool_directory__}/larch_plot.py' '$dat_files' '$inputs' | |
| 27 ]]></command> | |
| 28 <configfiles> | |
| 29 <inputs name="inputs"/> | |
| 30 </configfiles> | |
| 31 <inputs> | |
| 32 <param name="dat_files" type="data" format="prj" multiple="true" min="1" label="Athena projects" help="X-ray Absorption Spectroscopy (XAS) data, in Athena project format"/> | |
| 33 <repeat name="plots" title="Plots" min="1" default="1" help="Each additional entry will create another output plot"> | |
| 34 <conditional name="variable"> | |
| 35 <param name="variable" type="select" display="radio" label="Variable" help="Variable to plot on the y axis"> | |
| 36 <option value="norm" selected="true">Normalised xμ</option> | |
| 37 <option value="dmude">Derivative of xμ</option> | |
| 38 <option value="chir_mag">Magnitude of χ(r)</option> | |
| 39 </param> | |
| 40 <when value="norm"> | |
| 41 <expand macro="energy_limits"/> | |
| 42 </when> | |
| 43 <when value="dmude"> | |
| 44 <expand macro="energy_limits"/> | |
| 45 </when> | |
| 46 <when value="chir_mag"> | |
| 47 <param name="energy_min" type="float" label="Minimum r (ang)" optional="true" help="If set, data will be cropped below this value in angstroms."/> | |
| 48 <param name="energy_max" type="float" label="Maximum r (ang)" optional="true" help="If set, data will be cropped above this value in angstroms."/> | |
| 49 </when> | |
| 50 </conditional> | |
| 51 </repeat> | |
| 52 </inputs> | |
| 53 <outputs> | |
| 54 <collection name="plot_collection" format="png" type="list"> | |
| 55 <discover_datasets pattern="__name_and_ext__" directory="plots"/> | |
| 56 </collection> | |
| 57 </outputs> | |
| 58 <tests> | |
| 59 <test expect_num_outputs="1"> | |
| 60 <param name="dat_files" value="test.prj"/> | |
| 61 <param name="variable" value="norm"/> | |
| 62 <param name="energy_format" value="absolute"/> | |
| 63 <param name="energy_min" value="7000"/> | |
| 64 <param name="variable" value="dmude"/> | |
| 65 <param name="energy_format" value="relative"/> | |
| 66 <param name="energy_max" value="10"/> | |
| 67 <output_collection name="plot_collection" type="list" count="2"/> | |
| 68 </test> | |
| 69 </tests> | |
| 70 <help><![CDATA[ | |
| 71 Using Larch, read Athena project files and plot data from them. | |
| 72 | |
| 73 Only Athena project files are accepted as input. If data is plaintext, | |
| 74 first load it using the Larch Athena tool. | |
| 75 All input files will appear on the same plot(s). | |
| 76 To generate multiple types of plot with the same set of files, | |
| 77 add additional sections to the form. | |
| 78 ]]></help> | |
| 79 <citations> | |
| 80 <citation type="doi">@TOOL_CITATION@</citation> | |
| 81 <citation type="doi">10.1107/S0909049505012719</citation> | |
| 82 </citations> | |
| 83 </tool> |
