Mercurial > repos > ximgchess > hexrd
diff hexrd_fit_grains.xml @ 5:36f0e168e5ef draft
"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
author | ximgchess |
---|---|
date | Thu, 01 Apr 2021 18:31:47 +0000 |
parents | |
children | 164e881c40e2 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hexrd_fit_grains.xml Thu Apr 01 18:31:47 2021 +0000 @@ -0,0 +1,76 @@ +<tool id="hexrd_fit_grains" name="HEXRD fit-grains" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5"> + <description>Extracts G vectors, grain position and strain</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="requirements" /> + <command detect_errors="exit_code"><![CDATA[ + cp '$config_yml' $config && + cp '$config_yml' config.yml && + ## symlink input files + @FIT_GRAIN_LINKS@ + hexrd fit-grains config.yml -f && + cp analysis/*.log '$log' && + @CONVERT2TAB@ + && for i in analysis/*/spots*.out; do dest=`echo \${i\#*/} | tr '/' '_'`; mv \${i} analysis/\$dest; done + ]]></command> + <configfiles> + <configfile name="config_yml"><![CDATA[@FIT_GRAINS_YML@ +]]></configfile> + </configfiles> + <inputs> + <expand macro="fit_grains_config"/> + </inputs> + <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}:fit_grains_analysis_${active_material}.log"/> + <data name="grains" format="tabular" label="${tool.name} on ${on_string}: grains.out" from_work_dir="analysis/grains.out" /> + <collection name="spots" type="list" label="${tool.name} on ${on_string}:spots"> + <discover_datasets pattern="(?P<designation>.+_spots.+\.out)" ext="tabular" directory="analysis"/> + </collection> + </outputs> + <tests> + <test> + <param name="inputs" ftype="hexrd.npz" value="RUBY_0000-fc_GE.npz,RUBY_0001-fc_GE.npz,RUBY_0002-fc_GE.npz,RUBY_0003-fc_GE.npz,RUBY_0004-fc_GE.npz,RUBY_0005-fc_GE.npz"/> + <conditional name="detector"> + <param name="panel_assignment" value="infer_from_name"/> + </conditional> + <param name="instrument" ftype="hexrd.yml" value="ge_detector.yml"/> + <param name="material" ftype="hexrd.materials.h5" value="materials.h5"/> + <param name="active_material" value="ruby"/> + <param name="ome_map" ftype="hexrd.npz" value="analysis_ruby_eta-ome_maps.npz"/> + <param name="accepted_orientations" ftype="tabular" value="accepted_orientations_analysis_ruby.dat"/> + <param name="grains_estimate" ftype="tabular" value="grains.out"/> + <param name="do_fit" value="true"/> + <param name="npdiv" value="2"/> + <param name="threshold" value="25"/> + <section name="tolerance"> + <repeat name="tolerance_lists"> + <param name="tth" value="0.25"/> + <param name="eta" value="3.0"/> + <param name="omega" value="2.0"/> + <param name="refit" value="1"/> + </repeat> + <repeat name="tolerance_lists"> + <param name="tth" value="0.20"/> + <param name="eta" value="2.0"/> + <param name="omega" value="1.0"/> + <param name="refit" value="1"/> + </repeat> + <param name="tth_max" value="14.25"/> + </section> + <output name="grains"> + <assert_contents> + <has_text text="6.6655" /> + </assert_contents> + </output> + </test> + </tests> + <help><![CDATA[ +**HEXRD fit-grains** +@HEXRD_HELP@ +@FIT_GRAIN_INPUTS_HELP@ +@FIT_GRAINS_OUTPUTS_HELP@ + ]]></help> + <expand macro="citations" /> +</tool>