annotate hexrd_fit_grains.xml @ 9:e67ad9795525 draft

"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 651b632c7df8d289251f63b81f06f82ec492b436-dirty"
author ximgchess
date Wed, 02 Feb 2022 16:40:24 +0000
parents baba452d0613
children a35bda7ed678
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
164e881c40e2 "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit c726809ab8080a1196c537fba343d0ba78333636"
ximgchess
parents: 5
diff changeset
1 <tool id="hexrd_fit_grains" name="HEXRD fit-grains" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" python_template_version="3.5">
5
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
2 <description>Extracts G vectors, grain position and strain</description>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
3 <macros>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
4 <import>macros.xml</import>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
5 </macros>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
6 <expand macro="requirements" />
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
8 cp '$config_yml' $config &&
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
9 cp '$config_yml' config.yml &&
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
10 ## symlink input files
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
11 @FIT_GRAIN_LINKS@
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
12 hexrd fit-grains config.yml -f &&
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
13 cp analysis/*.log '$log' &&
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
14 @CONVERT2TAB@
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
15 && for i in analysis/*/spots*.out; do dest=`echo \${i\#*/} | tr '/' '_'`; mv \${i} analysis/\$dest; done
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
16 ]]></command>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
17 <configfiles>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
18 <configfile name="config_yml"><![CDATA[@FIT_GRAINS_YML@
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
19 ]]></configfile>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
20 </configfiles>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
21 <inputs>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
22 <expand macro="fit_grains_config"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
23 </inputs>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
24 <outputs>
7
baba452d0613 "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit c6c9ce811a27cdee735c2eeac9f6a29f95d9ae90"
ximgchess
parents: 6
diff changeset
25 <data name="config" format="yaml" label="${tool.name} on ${on_string}: ${active_material}_config.yml"/>
5
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
26 <data name="log" format="txt" label="${tool.name} on ${on_string}:fit_grains_analysis_${active_material}.log"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
27 <data name="grains" format="tabular" label="${tool.name} on ${on_string}: grains.out" from_work_dir="analysis/grains.out" />
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
28 <collection name="spots" type="list" label="${tool.name} on ${on_string}:spots">
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
29 <discover_datasets pattern="(?P&lt;designation&gt;.+_spots.+\.out)" ext="tabular" directory="analysis"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
30 </collection>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
31 </outputs>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
32 <tests>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
33 <test>
7
baba452d0613 "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit c6c9ce811a27cdee735c2eeac9f6a29f95d9ae90"
ximgchess
parents: 6
diff changeset
34 <param name="inputs" ftype="hexrd.iamges.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"/>
5
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
35 <conditional name="detector">
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
36 <param name="panel_assignment" value="infer_from_name"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
37 </conditional>
7
baba452d0613 "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit c6c9ce811a27cdee735c2eeac9f6a29f95d9ae90"
ximgchess
parents: 6
diff changeset
38 <param name="instrument" ftype="yaml" value="ge_detector.yml"/>
5
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
39 <param name="material" ftype="hexrd.materials.h5" value="materials.h5"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
40 <param name="active_material" value="ruby"/>
7
baba452d0613 "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit c6c9ce811a27cdee735c2eeac9f6a29f95d9ae90"
ximgchess
parents: 6
diff changeset
41 <param name="ome_map" ftype="hexrd.eta_ome.npz" value="analysis_ruby_eta-ome_maps.npz"/>
5
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
42 <param name="accepted_orientations" ftype="tabular" value="accepted_orientations_analysis_ruby.dat"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
43 <param name="grains_estimate" ftype="tabular" value="grains.out"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
44 <param name="do_fit" value="true"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
45 <param name="npdiv" value="2"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
46 <param name="threshold" value="25"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
47 <section name="tolerance">
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
48 <repeat name="tolerance_lists">
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
49 <param name="tth" value="0.25"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
50 <param name="eta" value="3.0"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
51 <param name="omega" value="2.0"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
52 <param name="refit" value="1"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
53 </repeat>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
54 <repeat name="tolerance_lists">
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
55 <param name="tth" value="0.20"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
56 <param name="eta" value="2.0"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
57 <param name="omega" value="1.0"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
58 <param name="refit" value="1"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
59 </repeat>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
60 <param name="tth_max" value="14.25"/>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
61 </section>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
62 <output name="grains">
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
63 <assert_contents>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
64 <has_text text="6.6655" />
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
65 </assert_contents>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
66 </output>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
67 </test>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
68 </tests>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
69 <help><![CDATA[
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
70 **HEXRD fit-grains**
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
71 @HEXRD_HELP@
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
72 @FIT_GRAIN_INPUTS_HELP@
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
73 @FIT_GRAINS_OUTPUTS_HELP@
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
74 ]]></help>
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
75 <expand macro="citations" />
36f0e168e5ef "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff changeset
76 </tool>