comparison measure_image_intensity.xml @ 3:2681008d726f draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
author bgruening
date Mon, 11 May 2020 07:52:05 -0400
parents 20525bc7f6f4
children 8536b1ae0254
comparison
equal deleted inserted replaced
2:20525bc7f6f4 3:2681008d726f
1 <tool id="cp_measure_image_intensity" name="MeasureImageIntensity" version="@CP_VERSION@"> 1 <tool id="cp_measure_image_intensity" name="MeasureImageIntensity" version="@CP_VERSION@">
2 <description>measure several intensity features across an entire image</description> 2 <description>measure several intensity features across an entire image</description>
3 3
4 <macros> 4 <macros>
5 <import>macros.xml</import> 5 <import>macros.xml</import>
6 </macros> 6 </macros>
7 7
8 <expand macro="py_requirements"/> 8 <expand macro="py_requirements"/>
44 k, v = lines[4].strip().split(':') 44 k, v = lines[4].strip().split(':')
45 45
46 module_count = int(v) 46 module_count = int(v)
47 new_count = module_count + 1 47 new_count = module_count + 1
48 lines[4] = k + ":%d\n" % new_count 48 lines[4] = k + ":%d\n" % new_count
49 with open("output", "w") as f: 49 with open("output.cppipe", "w") as f:
50 f.writelines(lines) 50 f.writelines(lines)
51 f.write(writemii()) 51 f.write(writemii())
52 52
53 f.close() 53 f.close()
54 </configfile> 54 </configfile>
55 </configfiles> 55 </configfiles>
56 56
57 <inputs> 57 <inputs>
58 58 <expand macro="input_pipeline_param" />
59 <expand macro="input_pipeline_macro" /> 59 <repeat name="rpt_intensity" title="new image" min="1">
60 <repeat name="rpt_intensity" title="Add another image"> 60 <param name="image_to_measure" label="Enter the name of the image to measure" type="text">
61 <param name="image_to_measure" label="Select image to measure" type="text" >
62 <expand macro="text_validator" /> 61 <expand macro="text_validator" />
63 </param> 62 </param>
64 <conditional name="con_intensity"> 63 <conditional name="con_intensity">
65 <param name="only_from_objects" label="Measure the intensity only from areas enclosed by objects?" display="radio" type="select"> 64 <param name="only_from_objects" label="Measure the intensity only from areas enclosed by objects?" type="select" help="Select 'Yes' to measure only those pixels within an object type you choose, identified by a prior tool. Note that this module will aggregate intensities across all objects in the image: to measure each object individually, see MeasureObjectIntensity instead. ">
66 <option value="Yes">Yes</option> 65 <option value="Yes">Yes</option>
67 <option value="No">No</option> 66 <option value="No">No</option>
68 </param> 67 </param>
69 <when value="Yes"> 68 <when value="Yes">
70 <param name="input_objects" label="Select the input objects" type="text"> 69 <param name="input_objects" label="Enter the name of the objects that the intensity will be aggregated within" type="text" help="The intensity measurement will be restricted to the pixels within these objects. ">
71 <expand macro="text_validator" /> 70 <expand macro="text_validator" />
72 </param> 71 </param>
73 </when> 72 </when>
74 <when value="No" /> 73 <when value="No" />
75 </conditional> 74 </conditional>
76 </repeat> 75 </repeat>
77 </inputs> 76 </inputs>
78 77
79 <outputs> 78 <outputs>
80 <expand macro="output_pipeline_macro" /> 79 <expand macro="output_pipeline_param" />
81 </outputs> 80 </outputs>
82 81
83 <tests> 82 <tests>
84 <test> 83 <test>
85 <expand macro="test_input_pipeline_param" /> 84 <expand macro="test_input_pipeline_param" />
94 <conditional name="con_intensity"> 93 <conditional name="con_intensity">
95 <param name="only_from_objects" value="Yes" /> 94 <param name="only_from_objects" value="Yes" />
96 <param name="input_objects" value="Nuclei" /> 95 <param name="input_objects" value="Nuclei" />
97 </conditional> 96 </conditional>
98 </repeat> 97 </repeat>
99 <expand macro="test_out_file" file="measure_image_intensity.txt" /> 98 <expand macro="test_out_file" file="measure_image_intensity.cppipe" />
100 </test> 99 </test>
101 </tests> 100 </tests>
102 <expand macro="help" module="MeasureImageIntensity" /> 101
102 <help>
103 <![CDATA[
104
105 .. class:: infomark
106
107 **What it does**
108
109 MeasureImageIntensity measures several intensity features across an entire image (excluding masked pixels).
110 For example, this module will sum all pixel values to measure the total image intensity. You can choose to measure all pixels in the image or restrict the measurement to pixels within objects that were identified in a prior module. If the image has a mask, only unmasked pixels will be measured.
111 Note that for publication purposes, the units of intensity from microscopy images are usually described as “Intensity units” or “Arbitrary intensity units” because microscopes are not calibrated to an absolute scale. Also, it is important to note whether you are reporting the mean vs. the integrated intensity, so specify “Mean intensity units” or “Integrated intensity units” accordingly.
112 Keep in mind that the default behavior in CellProfiler is to rescale the image intensity from 0 to 1 by dividing all pixels in the image by the maximum possible intensity value. This “maximum possible” value is defined by the “Set intensity range from” setting in NamesAndTypes; see the help for that setting for more details.
113
114 @COMMON_HELP@
115 ]]>
116 </help>
117
103 <expand macro="citations" /> 118 <expand macro="citations" />
104 </tool> 119 </tool>