Mercurial > repos > ximgchess > hexrd
annotate hexrd_fit_grains.xml @ 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 |
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> |
36f0e168e5ef
"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff
changeset
|
25 <data name="config" format="hexrd.yml" label="${tool.name} on ${on_string}: ${active_material}_config.yml"/> |
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<designation>.+_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> |
36f0e168e5ef
"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff
changeset
|
34 <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"/> |
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> |
36f0e168e5ef
"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff
changeset
|
38 <param name="instrument" ftype="hexrd.yml" value="ge_detector.yml"/> |
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"/> |
36f0e168e5ef
"planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 0db0d2633f65e2ceca2e34c8899a52b18965d059-dirty"
ximgchess
parents:
diff
changeset
|
41 <param name="ome_map" ftype="hexrd.npz" value="analysis_ruby_eta-ome_maps.npz"/> |
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> |