Mercurial > repos > ximgchess > hexrd
changeset 6:164e881c40e2 draft
"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit c726809ab8080a1196c537fba343d0ba78333636"
author | ximgchess |
---|---|
date | Thu, 14 Oct 2021 18:03:22 +0000 |
parents | 36f0e168e5ef |
children | baba452d0613 |
files | datatypes_conf.xml hexrd_find_orientations.xml hexrd_fit_grains.xml macros.xml |
diffstat | 4 files changed, 32 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/datatypes_conf.xml Thu Apr 01 18:31:47 2021 +0000 +++ b/datatypes_conf.xml Thu Oct 14 18:03:22 2021 +0000 @@ -1,8 +1,6 @@ <?xml version="1.0"?> <datatypes> <registration> - <datatype extension="hexrd.materials.h5" type="galaxy.datatypes.binary:H5" subclass="true" display_in_upload="true"/> - <datatype extension="hexrd.npz" type="galaxy.datatypes.binary:CompressedZipArchive" subclass="true" display_in_upload="true"/> <datatype extension="hexrd.yml" type="galaxy.datatypes.data:Text" subclass="true" display_in_upload="true"/> </registration> </datatypes>
--- a/hexrd_find_orientations.xml Thu Apr 01 18:31:47 2021 +0000 +++ b/hexrd_find_orientations.xml Thu Oct 14 18:03:22 2021 +0000 @@ -1,4 +1,4 @@ -<tool id="hexrd_find_orientations" name="HEXRD find-orientations" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5"> +<tool id="hexrd_find_orientations" name="HEXRD find-orientations" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" python_template_version="3.5"> <description>Process rotation image series to find grain orientations</description> <macros> <import>macros.xml</import> @@ -27,9 +27,9 @@ <outputs> <data name="config" format="hexrd.yml" label="${tool.name} on ${on_string}: ${active_material}_config.yml"/> <data name="log" format="txt" label="${tool.name} on ${on_string}: find-orientations_analysis_${active_material}.log"/> - <data name="ome_maps" format="hexrd.npz" label="${tool.name} on ${on_string}: analysis_${active_material}_eta-ome_maps.npz"/> + <data name="ome_maps" format="hexrd.eta_ome.npz" label="${tool.name} on ${on_string}: analysis_${active_material}_eta-ome_maps.npz"/> <data name="score_orientations" format="hexrd.npz" label="${tool.name} on ${on_string}: scored_orientations_analysis_${active_material}.npz"/> - <data name="accepted_orientations" format="tabular" label="${tool.name} on ${on_string}: accepted_orientations_analysis_${active_material}.dat"/> + <data name="accepted_orientations" format="hexrd.accepted_orientations" label="${tool.name} on ${on_string}: accepted_orientations_analysis_${active_material}.dat"/> <data name="grains" format="tabular" label="${tool.name} on ${on_string}: grains.out" from_work_dir="analysis/grains.out" /> </outputs> <tests>
--- a/hexrd_fit_grains.xml Thu Apr 01 18:31:47 2021 +0000 +++ b/hexrd_fit_grains.xml Thu Oct 14 18:03:22 2021 +0000 @@ -1,4 +1,4 @@ -<tool id="hexrd_fit_grains" name="HEXRD fit-grains" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5"> +<tool id="hexrd_fit_grains" name="HEXRD fit-grains" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" python_template_version="3.5"> <description>Extracts G vectors, grain position and strain</description> <macros> <import>macros.xml</import>
--- a/macros.xml Thu Apr 01 18:31:47 2021 +0000 +++ b/macros.xml Thu Oct 14 18:03:22 2021 +0000 @@ -1,6 +1,7 @@ <macros> - <token name="@TOOL_VERSION@">0.8.4</token> + <token name="@TOOL_VERSION@">0.8.12</token> <token name="@VERSION_SUFFIX@">0</token> + <token name="@PROFILE@">21.09</token> <xml name="requirements"> <requirements> <requirement type="package" version="@TOOL_VERSION@">hexrd</requirement> @@ -59,7 +60,7 @@ </token> <xml name="common_config" token_multiple_inputs="true" > - <param name="inputs" type="data" format="hexrd.npz" multiple="true" label="Image series frame-cache"/> + <param name="inputs" type="data" format="hexrd.images.npz" multiple="true" label="Image series frame-cache"/> <conditional name="detector"> <param name="panel_assignment" type="select" label="Assign detector panel to images"> <option value="infer_from_name" selected="true">Infer the panel from the image name</option> @@ -74,9 +75,19 @@ </conditional> <param name="instrument" type="data" format="hexrd.yml" label="instrument"/> <param name="material" type="data" format="hexrd.materials.h5" label="material"/> + <param name="active_material" type="select" label="active material name"> + <options> + <filter type="data_meta" ref="material" key="materials"/> + </options> + </param> + <param name="dmin" type="float" value="1.0" min="0" max="10" optional="true" label="dmin angstroms" help="used to figure out the maximum sampling for g-vectors default 1.0"/> + <param name="tth_width" type="float" value="0.25" min="0" max="10" optional="true" label="tth tolerance in degrees" help="tth_width default 0.25 "/> + <param name="min_sfac_ratio" type="float" value="" min="0" max="1" optional="true" label="min percentage of max to exclude" help="min_sfac_ratio min percentage of max |F|^2 to exclude; default None"/> + <!-- <param name="active_material" type="text" value="" label="active material name"> <validator type="empty_field" /> </param> + --> </xml> <token name="@CMD_LINKS@"><![CDATA[@CMD_IMPORTS@ @@ -99,6 +110,8 @@ <token name="@CONVERT2TAB@"><![CDATA[for i in `find analysis -name '[gs]*.out'`; do sed -i.bak "s/[ ][ ][ ]*/\$(printf '\t')/g" \${i}; done]]></token> <token name="@COMMON_YML@"><![CDATA[@CMD_IMPORTS@ +#slurp +#set instrument_file = $ln_name($instrument,'yml') analysis_name: analysis multiprocessing: -1 @@ -106,8 +119,15 @@ material: definitions: $ln_name($material,'h5') active: $active_material - -instrument: $ln_name($instrument,'yml') +#if $dmin + dmin: $dmin # defaults to 1.0 angstrom +#end if +#if $tth_width + tth_width: $tth_width # defaults to 0.25 degrees +#end if +#if $min_sfac_ratio + min_sfac_ratio: $min_sfac_ratio # min percentage of max |F|^2 to exclude; default None +#end if image_series: format: frame-cache @@ -118,6 +138,8 @@ panel: $get_panel($input) # must match detector key #end for +instrument: $instrument_file + ]]></token> <xml name="find_orientations_config"> @@ -278,8 +300,8 @@ <xml name="fit_grains_config"> <expand macro="common_config" token_multiple_inputs="true"/> - <param name="ome_map" type="data" format="hexrd.npz" label="analysis eta-ome_maps.npz from find_orientations"/> - <param name="accepted_orientations" type="data" format="tabular" label="accepted_orientations from find_orientations"/> + <param name="ome_map" type="data" format="hexrd.eta_ome.npz" label="analysis eta-ome_maps.npz from find_orientations"/> + <param name="accepted_orientations" type="data" format="hexrd.accepted_orientations" label="accepted_orientations from find_orientations"/> <param name="grains_estimate" type="data" format="tabular" label="grains.out from find_orientations"/> <param name="do_fit" type="boolean" truevalue="true" falsevalue="false" checked="true" label="fit grains" help="if false, extracts grains but doesn't fit"/> <param name="npdiv" type="integer" value="2" min="1" label="number of polar pixel grid subdivisions"/>