2011-11-23: google is closing knol, so I move it here.
a way to quantify protein localization based on its fluorescence intensity distribution
Authors: Liang Cai
Published: Creative Commons Attribution-Noncommercial 3.0 License
Last edited: 05 Oct 2011
Exported: 23 Nov 2011
Original URL: http://knol.google.com/k/-/-/3ez005w9gduud/4
Prepare files for the analysis
Before using the macro, one value in EdgeRatio.txt need to be adjusted. Looking into the file, and change the 787 to an appropriate value. With the demo-RGB-file.tif capture condition, 787 pixel equals to 50 micron.
// 787 pix == 50 um
xValues = ((i - realpair) * steppix) * 50 / 787;
Edge detection process
As shown above, a window pops up. Step pixel is the step the mask dilating or shrinking in each measurement. Total pixel distance is how far inside the cell will be measured. With the demo-RGB-file.tif, input 36 pixel will measure about 2.29 micron inside the cell.
As shown above, ImageJ will open many windows automatically. So, this macro cannot be run in batch mode. The polygon selections tool is enabled. Outline the area of interested. Make sure enough space is left inside and outside of the cell. The yellow line show the ROI for lamellipodial measure, which covers the major protrusion on the right and avoid the ruffle in the middle. Convert the selection to mask by Edit->Selection->Create Mask.
The wand tool is selected now. Using Image->Adjust->Threshold to set the image as a binary image (usually, single press "Auto" will do the trick; no need to "Apply" or "Set"; occasionally, drag the bar to get it precise). Use the wand tool to select the outline of the cell, as shown below.
To archive a good outline for the cell edge, which is the critical step in the whole process, adjusting the bars in the Threshold windows helps. Only the region within the ROI needs to be precise. It is OK to use the Paintbrush tool to fill some gaps or smooth the regions outside the ROI to help the selection. Using the wand tool NOT the freehand tool to generate the outline, which minimizes the bias.
Once select the cell with its cell boundary highlighted, please create the second mask (Edit->Selection->Create Mask).
From this point, the macro starts running by itself, and many windows are open and close. DO NOT INTERRUPT! NO MOUSE MOVING OR KEYBOARD CLICK. The progression bar in ImageJ shows the status of each dilating/shrinking operation, which takes most of the calculation time.
After a while, all the images are close and only the Results window left in ImageJ. This result table is stored as CVS format with a name end with .xls, which means it can be opened with Excel etc. No more operation is need in ImageJ. The content of Results window will be flushed when the macro starts running.
Check the result file
In the xls file, RGB/rgb means the red, green and blue. 0/1/2 = r/g/b. Distance is the real distance in micron, with "-" means inside the cell. Intensity is the raw value of the channel, which is averaged over the edge within ROI. SemOfInt is the standard error of the mean of the raw value, which is calculated from the thousands point of the edge. PercInt is the percentage value of the intensity, with the maximal raw value as 1 and the minimal raw value as 0. The PercInt is the most consistent value between different cells. Group different cells and a new SEM can be calculated to show the variance between cells. B2g-Ratio is (raw value of blue channel) / (raw value of red channel), etc. Exact the same microscopy setting is required for the ratio and raw value meaningful between different cells.
ImageJ macro for the analysis
It fix a NaN bug. The script from my homepage doesn't have this fix.
New in 'Experiment'
- Haploid stem cells fertilize oocytes to generate live mice
- How to use ImageJ to quantify fluorescent distribution?
- Two fluorescence protein from Atsushi Miyawaki group
- Use ImageJ macro to facilitate and automate image processing
- Spot detection from noise images: averaging, filtering, fitting
- Batch extract PubMed ID from EndNote database, and else...