Py-Neurospheres is a Python CLI tool for batch analysis of neurosphere images. It can be used to hasten the process of counting and measuring the diameter of the neurospheres.
- Python 2.7x or 3.x
Call the program from the command line and provide some parameters for analysis. The analysis output will be written to the source folder, within a subdirectory titled "analysis."
$ python py-neurospheres.py -i <folder> -d <min_d> -s <px_per_micron>
folder: The location of folder containing the images, relative to the script
min_d: The minimum threshold (in microns) for inclusion
px_per_micron: The number of pixels per micron
$ python py-neurospheres.py -i ../folder -d 15 -s 10
When run, two CSV output files will be generated in the containing folder: a list of all neurosphere diameters (grouped by filename) and the number of neurospheres counted in each file.
|Filename||Number of Neurospheres|
Additionally, processed PNG images corresponding to each neurosphere input image will be generated, which will contain lines across the widest section of each neurosphere counted (and indicating an ID). This is useful for verification of the data.
- Brian Nelson for his development help :)
If you have questions or comments, please contact Brianna Goldenstein. Contributions welcome!