view hexrd_fit_grains.xml @ 0:72deb053b5a5 draft

"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 3e41869cdb6ad4c9a60a4b60dcf9bb4a40955cfa-dirty"
author ximgchess
date Sat, 21 Nov 2020 03:34:48 +0000
parents
children f0db3e3b9d99
line wrap: on
line source

<tool id="hexrd_fit_grains" name="HEXRD fit-grains" version="@TOOL_VERSION@.0" 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&lt;designation&gt;.+_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="material.hexrd" value="materials_py38.hexrd"/>
            <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[
        TODO: Fill in help.
    ]]></help>
    <expand macro="citations" />
</tool>