annotate measure_image_quality.xml @ 5:73ec291048a5 draft default tip

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 7d7a519c3a2cc612d38695b335d0f6c75a099de3"
author bgruening
date Fri, 26 Feb 2021 13:57:30 +0000
parents e4fad0ecf376
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
73ec291048a5 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 7d7a519c3a2cc612d38695b335d0f6c75a099de3"
bgruening
parents: 3
diff changeset
1 <tool id="cp_measure_image_quality" name="MeasureImageQuality" version="@CP_VERSION@+galaxy@VERSION_SUFFIX@">
2
cd9b9a048796 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 1907942bef43b20edfdbd1d1b5eb1cac3602848b"
bgruening
parents: 0
diff changeset
2 <description>measure features that indicate image quality</description>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
3
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
4 <macros>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
5 <import>macros.xml</import>
5
73ec291048a5 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 7d7a519c3a2cc612d38695b335d0f6c75a099de3"
bgruening
parents: 3
diff changeset
6 <token name="@VERSION_SUFFIX@">0</token>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
7 <xml name="macro_calc_threshold">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
8 <conditional name="con_use_all_methods">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
9 <param name="use_all_methods" type="select" display="radio" label="Use all thresholding methods?">
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
10 <help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
11 <![CDATA[
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
12 Select 'Yes' to calculate thresholds using all the available methods. Only the global methods are used. While most methods are straightfoward, some methods have additional parameters that require special handling:
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
13 <br> - Otsu: Thresholds for all combinations of class number, minimization parameter and middle class assignment are computed.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
14 <br> - Mixture of Gaussians (MoG): Thresholds for image coverage fractions of 0.05, 0.25, 0.75 and 0.95 are computed.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
15 See the IdentifyPrimaryObjects module for more information on thresholding methods.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
16 ]]>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
17 </help>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
18 <option value="Yes">Yes</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
19 <option value="No">No</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
20 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
21 <when value="Yes" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
22 <when value="No">
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
23 <repeat name="rpt_threshold_method" title="new threshold method" min="1">
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
24 <conditional name="con_threshold_methods">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
25 <param name="select_threshold_method" type="select" label="Select a thresholding method">
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
26 <help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
27 This setting allows you to apply automatic thresholding methods used in the Identify modules.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
28 Only the global methods are applied. For more help on thresholding, see the Identify modules.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
29 </help>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
30 <option value="Otsu">Otsu</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
31 <option value="MoG">MoG</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
32 <option value="Background">Background</option>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
33 <option value="RobustBackground">Robust background</option>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
34 <option value="RidlerCalvard">Ridler Calvard</option>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
35 <option value="Kapur">Kapur</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
36 <option value="MCT">MCT</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
37 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
38 <when value="Otsu">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
39 <expand macro="otsu_method" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
40 </when>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
41 <when value="MoG">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
42 <expand macro="mog_method" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
43 </when>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
44 <when value="Background" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
45 <when value="RobustBackground" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
46 <when value="RidlerCalvard" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
47 <when value="Kapur" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
48 <when value="MCT" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
49 </conditional>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
50 </repeat>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
51 </when>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
52 </conditional>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
53 </xml>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
54
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
55 <xml name="otsu_method">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
56 <param name="otsu_weighted_entropy" label="Minimize the weighted variance or the entropy?" type="select">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
57 <option value="Weighted variance">Weighted variance</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
58 <option value="Entropy">Entropy</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
59 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
60 <conditional name="con_threshold_classes">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
61 <param name="threshold_classes" label="Two-class or three-class thresholding?" type="select">
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
62 <help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
63 Select Two classes if the grayscale levels are readily distinguishable into foreground (i.e., objects) and background.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
64 Select Three classes if there is a middle set of grayscale levels that belongs to neither the foreground nor background.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
65 For example, three-class thresholding may be useful for images in which you have nuclear staining along with a low-intensity non-specific cell staining.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
66 Where two-class thresholding might incorrectly assign this intermediate staining to the nuclei objects, three-class thresholding allows you to assign it to the foreground or background as desired.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
67 However, in extreme cases where either there are almost no objects or the entire field of view is covered with objects, three-class thresholding may perform worse than two-class.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
68 </help>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
69 <option value="Two classes">Two classes</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
70 <option value="Three classes">Three classes</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
71 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
72 <when value="Three classes">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
73 <param name="pixel_foreground_or_background" label="Assign pixels in the middle intensity class to the foreground or the background?" type="select">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
74 <option value="Foreground">Foreground</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
75 <option value="Background">Background</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
76 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
77 </when>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
78 <when value="Two classes" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
79 </conditional>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
80 </xml>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
81
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
82 <xml name="mog_method">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
83 <param name="mog_fraction_cover" label="Typical fraction of the image covered by objects" type="float" value="0.1" min="0.0" max="1.0"/>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
84 </xml>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
85 </macros>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
86
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
87 <expand macro="py_requirements"/>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
88 <expand macro="cmd_modules" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
89
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
90 <configfiles>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
91 <inputs name="inputs" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
92
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
93 <configfile name="script_file">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
94 import json
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
95 import sys
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
96 import os
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
97
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
98 FOURSPACES=@SPACES@
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
99
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
100 input_json_path = sys.argv[1]
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
101 input_pipeline= sys.argv[2]
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
102
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
103 params = json.load(open(input_json_path, "r"))
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
104
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
105 def writemiq():
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
106 _str = "\nMeasureImageQuality:[module_num:%d|svn_version:\\'Unknown\\'|variable_revision_number:5|show_window:False|notes:\\x5B\\x5D|batch_state:array(\\x5B\\x5D, dtype=uint8)|enabled:True|wants_pause:False]\n" % new_count
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
107
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
108 for_images = params['calc_for_images']
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
109 selected_images = ""
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
110
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
111 if for_images == "All loaded images":
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
112 _str += FOURSPACES + "Calculate metrics for which images?:%s\n" % for_images
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
113 else:
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
114 _str += FOURSPACES + "Calculate metrics for which images?:Select...\n"
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
115 selected_images = params['calc_for_images']
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
116
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
117 image_count = 1
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
118 _str += FOURSPACES + "Image count:%d\n" % image_count
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
119
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
120 if 'rpt_blur_measurements' in params['con_calc_blur_metrics']:
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
121 scale_count = len(params['con_calc_blur_metrics']['rpt_blur_measurements'])
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
122 else:
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
123 scale_count = 1
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
124
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
125 _str += FOURSPACES + "Scale count:%d\n" % scale_count
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
126
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
127 calc_threshold = params['con_calc_threshold']['calc_threshold']
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
128 if calc_threshold == "No":
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
129 threshold_count = 1
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
130 all_method = "No"
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
131 else:
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
132 all_method = params['con_calc_threshold']['con_use_all_methods']['use_all_methods']
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
133 if all_method == "No":
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
134 threshold_count = 1
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
135 else:
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
136 threshold_count = len(params['con_calc_threshold']['con_use_all_methods']['rpt_threshold_method'])
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
137
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
138 _str += FOURSPACES + "Threshold count:%d\n" % threshold_count
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
139
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
140 _str += FOURSPACES + "Select the images to measure:%s\n" % selected_images
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
141
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
142 include_rescaling = params['include_rescaling_value']
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
143 _str += FOURSPACES + "Include the image rescaling value?:%s\n" % include_rescaling
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
144
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
145 calc_blur_metrics = params['con_calc_blur_metrics']['calc_blur_metrics']
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
146 _str += FOURSPACES + "Calculate blur metrics?:%s\n" % calc_blur_metrics
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
147
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
148 if calc_blur_metrics == "Yes" and 'rpt_blur_measurements' in params['con_calc_blur_metrics']:
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
149 for bm in params['con_calc_blur_metrics']['rpt_blur_measurements']:
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
150 _str += FOURSPACES + "Spatial scale for blur measurements:%d\n" % bm['blur_measurements']
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
151
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
152 calc_saturation = params['calc_saturation_metrics']
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
153 _str += FOURSPACES + "Calculate saturation metrics?:%s\n" % calc_saturation
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
154
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
155 calc_intensity = params['calc_intensity_metrics']
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
156 _str += FOURSPACES + "Calculate intensity metrics?:%s\n" % calc_intensity
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
157
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
158 calc_threshold = params['con_calc_threshold']['calc_threshold']
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
159 _str += FOURSPACES + "Calculate thresholds?:%s\n" % calc_threshold
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
160 _str += FOURSPACES + "Use all thresholding methods?:%s\n" % all_method
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
161
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
162 if all_method == "No":
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
163 for method in params['con_calc_threshold']['con_use_all_methods']['rpt_threshold_method']:
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
164 _str += FOURSPACES + "Select a thresholding method:%s\n" % method['con_threshold_methods']['select_threshold_method']
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
165
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
166 fraction_cover = method['con_threshold_methods']['mog_fraction_cover'] if 'mog_fraction_cover' in method['con_threshold_methods'] else 0.1
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
167
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
168 tt_classes = method['con_threshold_methods']['con_threshold_classes']['threshold_classes'] if 'con_threshold_classes' in method['con_threshold_methods'] else 'Two classes'
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
169
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
170 minimize = method['con_threshold_methods']['otsu_weighted_entropy'] if 'otsu_weighted_entropy' in method['con_threshold_methods'] else 'Entropy'
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
171
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
172 if tt_classes == "Three classes":
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
173 pixel_intensity = method['con_threshold_methods']['con_threshold_classes']['pixel_foreground_or_background']
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
174 else:
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
175 pixel_intensity = "Foreground"
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
176
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
177 _str += FOURSPACES + "Typical fraction of the image covered by objects:%.1f\n" % fraction_cover
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
178
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
179 _str += FOURSPACES + "Two-class or three-class thresholding?:%s\n" % tt_classes
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
180
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
181 _str += FOURSPACES + "Minimize the weighted variance or the entropy:%s\n" % minimize
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
182
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
183 _str += FOURSPACES + "Assign pixels in the middle intensity class to the foreground or the background?:%s\n" % pixel_intensity
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
184
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
185 return _str
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
186
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
187 with open(input_pipeline) as fin:
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
188 lines = fin.readlines()
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
189
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
190 k, v = lines[4].strip().split(':')
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
191
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
192 module_count = int(v)
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
193 new_count = module_count + 1
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
194 lines[4] = k + ":%d\n" % new_count
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
195
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
196 with open("output.cppipe", "w") as f:
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
197 f.writelines(lines)
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
198 f.write(writemiq())
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
199
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
200 f.close()
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
201 </configfile>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
202 </configfiles>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
203
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
204 <inputs>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
205 <expand macro="input_pipeline_param" />
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
206 <param name="calc_for_images" type="text" label="Calculate metrics for which images?" value="All loaded images">
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
207 <help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
208 Image names are separated by comma and correspond to the values in the section NameAndType of the 'Starting module' tool.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
209
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
210 </help>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
211 <expand macro="text_validator" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
212 </param>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
213
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
214 <param name="include_rescaling_value" type="select" display="radio" label="Include the image rescaling value?" help="Select 'Yes' to add the image’s rescaling value as a quality control metric. This value is recorded only for images loaded using the Input modules. This is useful in confirming that all images are rescaled by the same value, given that some acquisition device vendors may output this value differently. ">
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
215 <option value="Yes">Yes</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
216 <option value="No">No</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
217 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
218
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
219 <conditional name="con_calc_blur_metrics">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
220 <param name="calc_blur_metrics" type="select" display="radio" label="Calculate blur metrics?">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
221 <option value="Yes">Yes</option>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
222 <option value="No" selected="True">No</option>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
223 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
224 <when value="Yes">
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
225 <repeat name="rpt_blur_measurements" title="new scale" min="1">
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
226 <param name="blur_measurements" label="Spatial scale for blur measurements" type="integer" value="20">
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
227 <help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
228 Enter an integer for the window size N, in units of pixels. The LocalFocusScore is measured within an N × N pixel window applied to the image, and the Correlation of a pixel is measured with respect to its neighbors N pixels away.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
229 A higher number for the window size N measures larger patterns of image blur whereas smaller numbers measure more localized patterns of blur. We suggest selecting a window size that is on the order of the feature of interest (e.g., the object diameter). You can measure these metrics for multiple window sizes by selecting additional scales for each image.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
230 </help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
231 </param>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
232 </repeat>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
233 </when>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
234 <when value="No" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
235 </conditional>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
236
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
237 <param name="calc_intensity_metrics" type="select" display="radio" label="Calculate intensity metrics?">
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
238 <help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
239 Select 'Yes' to calculate image-based intensity measures, namely the mean, maximum, minimum, standard deviation and median absolute deviation of pixel intensities. These measures are identical to those calculated by MeasureImageIntensity.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
240 </help>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
241 <option value="Yes">Yes</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
242 <option value="No">No</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
243 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
244 <param name="calc_saturation_metrics" type="select" display="radio" label="Calculate saturation metrics">
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
245 <help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
246 Select 'Yes' to calculate the saturation metrics PercentMaximal and PercentMinimal, i.e., the percentage of pixels at the upper or lower limit of each individual image.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
247 For this calculation, the hard limits of 0 and 1 are not used because images often have undergone some kind of transformation such that no pixels ever reach the absolute maximum or minimum of the image format. Given the noise typical in images, both these measures should be a low percentage but if the images were saturated during imaging, a higher than usual PercentMaximal will be observed, and if there are no objects, the PercentMinimal value will increase.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
248 </help>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
249 <option value="Yes">Yes</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
250 <option value="No">No</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
251 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
252
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
253 <conditional name="con_calc_threshold">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
254 <param name="calc_threshold" type="select" display="radio" label="Calculate thresholds?">
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
255 <help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
256 Automatically calculate a suggested threshold for each image. One indicator of image quality is that these threshold values lie within a typical range. Outlier images with high or low thresholds often contain artifacts.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
257 </help>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
258 <option value="Yes">Yes</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
259 <option value="No">No</option>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
260 </param>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
261 <when value="Yes">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
262 <expand macro="macro_calc_threshold" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
263 </when>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
264 <when value="No" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
265 </conditional>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
266
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
267 </inputs>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
268
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
269 <outputs>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
270 <expand macro="output_pipeline_param" />
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
271 </outputs>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
272
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
273 <tests>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
274 <test>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
275 <expand macro="test_input_pipeline_param" />
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
276
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
277 <param name="calc_for_images" value="All loaded images" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
278 <param name="include_rescaling_value" value="Yes" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
279
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
280 <conditional name="con_calc_blur_metrics">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
281 <param name="calc_blur_metrics" value="Yes" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
282 <repeat name="rpt_blur_measurements">
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
283 <param name="blur_measurements" value="20" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
284 </repeat>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
285 </conditional>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
286
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
287 <param name="calc_intensity_metrics" value="Yes" />
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
288 <param name="calc_saturation_metrics" value="Yes" />
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
289 <conditional name="con_calc_threshold">
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
290 <param name="calc_threshold" value="Yes" />
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
291 </conditional>
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
292
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
293 <conditional name="con_use_all_methods">
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
294 <param name="use_all_methods" value="No" />
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
295 <repeat name="rpt_threshold_method">
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
296 <conditional name="con_threshold_methods">
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
297 <param name="select_threshold_method" value="Otsu" />
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
298 <param name="otsu_weighted_entropy" value="Weighted variance" />
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
299 <conditional name="con_threshold_classes">
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
300 <param name="threshold_classes" value="Two classes" />
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
301 </conditional>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
302 </conditional>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
303 </repeat>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
304 </conditional>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
305
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
306 <expand macro="test_out_file" file="measure_image_quality.cppipe" />
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
307 </test>
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
308 </tests>
3
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
309
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
310 <help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
311 <![CDATA[
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
312
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
313 .. class:: infomark
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
314
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
315 **What it does**
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
316
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
317 This tool collects measurements indicating possible image aberrations, e.g., blur (poor focus), intensity, saturation (i.e., the percentage of pixels in the image that are at/near the maximum possible value, and at/near the minimum possible value).
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
318 Details and guidance for each of these measures is provided in the settings help.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
319 Please note that for best results, this module should be applied to the original raw images, rather than images that have already been corrected for illumination.
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
320
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
321 @COMMON_HELP@
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
322 ]]>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
323 </help>
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
324
e4fad0ecf376 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
bgruening
parents: 2
diff changeset
325 <expand macro="citations" />
0
03766f122074 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6d73056a625002d0275b5a9a90a9fae329ce47f1"
bgruening
parents:
diff changeset
326 </tool>