Cell Segmentation And Quantification Of Immunofluorescence In Python
3
2
Entering edit mode
13.7 years ago
User 9996 ▴ 840

How can I segment cells from an image taken on a microscope, along the lines of what was done here in Matlab?

http://blogs.mathworks.com/steve/2006/06/02/cell-segmentation/

Also, if I take multiple image in different fluorescent channels (after staining the cells with some antibody/maker), how can I automatically quantitate the fraction of cells positive for each marker? Has anyone done something like this in Python? Or is there a library in Python that can be used to do this?

Thanks.

python gene • 8.1k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
1
Entering edit mode
13.7 years ago
Thouis Jones ▴ 10

CellProfiler is written in python. But it may be more than you want, if you want to do the analysis coding yourself. But it would allow you to do most of what you have written, above.

ADD COMMENT
1
Entering edit mode
13.7 years ago

There are many ways of solving this problem.

  1. Use scikits.image a nice little library for image processing in python with bindings to OpenCV (big computer vision C++ library). You can do segmentation with cvThreshold(). But this solution requires installing OpenCV which might be cumbersome.

  2. Other approach is to use ImageJ - a very powerfull microscope image processing software. Fiji is its incarnation, in which you can write plugins in jython. See homepage of Albert Cardona for lost of usefull tutorials. Fiji has loads of different segmentation algorithms and you can test all to see which works best with your images. You can use macro recording to catch all needed class and function names, just do manually what you like and than copy and paste into your script/plugin. ImageJ API is also very useful resource.

  3. As mentioned by Thouis, you can use CellProfiler. In fact you can just use usefull functions, which you can find here.

  4. Speaking of pure python solutions, scipy and numpy are very useful, especially ndarray.

Hope it's helpful. Good luck.

ADD COMMENT
1
Entering edit mode
13.7 years ago
Michael 55k

The Bioconductor package EBImage contains functions for general image processing and analysis as well as for segmentation of microscopy images.

ADD COMMENT

Login before adding your answer.

Traffic: 2082 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6