comparison measure_object_intensity.xml @ 3:b867e9317a06 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit c3917e27eb1c1deeb381aa0dc8161c07699562fb"
author bgruening
date Mon, 11 May 2020 07:49:31 -0400
parents ae299f107121
children 407925835dd9
comparison
equal deleted inserted replaced
2:ae299f107121 3:b867e9317a06
1 <tool id="cp_measure_object_intensity" name="MeasureObjectIntensity" version="@CP_VERSION@"> 1 <tool id="cp_measure_object_intensity" name="MeasureObjectIntensity" version="@CP_VERSION@">
2 <description>measure several intensity features for identified objects</description> 2 <description>measure several intensity features for identified objects</description>
3 3
4 <macros><import>macros.xml</import></macros> 4 <macros>
5 <import>macros.xml</import>
6 </macros>
5 7
6 <expand macro="py_requirements"/> 8 <expand macro="py_requirements"/>
7 <expand macro="cmd_modules" /> 9 <expand macro="cmd_modules" />
8 10
9 <configfiles> 11 <configfiles>
42 k, v = lines[4].strip().split(':') 44 k, v = lines[4].strip().split(':')
43 45
44 module_count = int(v) 46 module_count = int(v)
45 new_count = module_count + 1 47 new_count = module_count + 1
46 lines[4] = k + ":%d\n" % new_count 48 lines[4] = k + ":%d\n" % new_count
47 with open("output", "w") as f: 49 with open("output.cppipe", "w") as f:
48 f.writelines(lines) 50 f.writelines(lines)
49 f.write(writemoi()) 51 f.write(writemoi())
50 52
51 f.close() 53 f.close()
52 </configfile> 54 </configfile>
53 </configfiles> 55 </configfiles>
54 56
55 <inputs> 57 <inputs>
56 <expand macro="input_pipeline_macro" /> 58 <expand macro="input_pipeline_param" />
57 <repeat name="rpt_image" title="Add another image"> 59 <repeat name="rpt_image" title="new image" min="1">
58 <param name="image_to_measure" label="Select an image to measure" type="text"> 60 <param name="image_to_measure" label="Enter the name of an image to measure" type="text">
59 <expand macro="text_validator" /> 61 <expand macro="text_validator" />
60 </param> 62 </param>
61 </repeat> 63 </repeat>
62 64
63 <repeat name="rpt_object" title="Add another object"> 65 <repeat name="rpt_object" title="new object" min="1">
64 <param name="objects_to_measure" label="Select objects to measure" type="text" > 66 <param name="objects_to_measure" label="Enter the name of the objects to measure" type="text">
65 <expand macro="text_validator" /> 67 <expand macro="text_validator" />
66 </param> 68 </param>
67 </repeat> 69 </repeat>
68 </inputs> 70 </inputs>
69 71
70 <outputs> 72 <outputs>
71 <expand macro="output_pipeline_macro" /> 73 <expand macro="output_pipeline_param" />
72 </outputs> 74 </outputs>
73 75
74 <tests> 76 <tests>
75 <test> 77 <test>
76 <expand macro="test_input_pipeline_param" /> 78 <expand macro="test_input_pipeline_param" />
77 <repeat name="rpt_image"> 79 <repeat name="rpt_image">
78 <param name="image_to_measure" value="DNA"/> 80 <param name="image_to_measure" value="DNA"/>
79 </repeat> 81 </repeat>
80 <repeat name="rpt_object" > 82 <repeat name="rpt_object">
81 <param name="objects_to_measure" value="Nuclei" /> 83 <param name="objects_to_measure" value="Nuclei" />
82 </repeat> 84 </repeat>
83 <expand macro="test_out_file" file="measure_object_intensity.txt" /> 85 <expand macro="test_out_file" file="measure_object_intensity.cppipe" />
84 </test> 86 </test>
85 </tests> 87 </tests>
86 88
87 <expand macro="help" module="MeasureObjectIntensity" /> 89 <help>
88 <expand macro="citations" /> 90 <![CDATA[
91
92 .. class:: infomark
93
94 **What it does**
95
96 MeasureObjectIntensity measures several intensity features for identified objects.
97
98 Given an image with objects identified (e.g., nuclei or cells), this module extracts intensity features for each object based on one or more corresponding grayscale images.
99 Measurements are recorded for each object.
100 Intensity measurements are made for all combinations of the images and objects entered.
101 If you want only specific image/object measurements, you can use multiple MeasureObjectIntensity modules for each group of measurements desired.
102 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.
103 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.
104 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.
105 This “maximum possible” value is defined by the “Set intensity range from” setting in NamesAndTypes; see the help for that setting for more details.
106
107 @COMMON_HELP@
108 ]]>
109 </help>
110
111
112
113 <expand macro="citations" />
89 114
90 </tool> 115 </tool>