chlamy_clusters
Introduction
This utility analyzes microscopy images to quantify the number and size of cell clusters. This is determined by using threshold values and gaussian blurring, followed by identification of contiguous regions. The utility was written for use on a project in the King Lab at UConn Health to study Chlamydomonas; the code and concept are suitably general to be applied in other applications.
Parameters
- imageDir: source directory that contains micrscopy image files
- imageFormat: list of file extensions to process (default=['.tif'])
- grayThresh: threshold pixel value for identifying features in image (default=150, on 0-255 scale)
- blurKernel: radius of Gaussian blur (default=9)
- histogramPlots: boolean flag, when provided, generates histogram plots
- outputDir: directory for stats and figures (default='/output-blurX-threshY')
Input
Input:
<imageDir>
├── KO/ -> input images for KO (arbitrary file names)
└── WT/ -> input images for WT (arbitrary file names)
Output
<imageDir>
└── images/ -> raw images, relocated and renamed into single collection
├── KO-#.pdf -> indexed KO images
└── WT-#.pdf -> indexed WT images
<outputDir>
├── histograms/ -> figures showing comparitive distrubutions
├── KO-#.pdf -> figure showing raw image, processed image, and histogram for each KO image
└── WT-#.pdf -> figure showing raw image, processed image, and histogram for each WT image
├── cumultive.pdf -> lineplots and violin plots comparing cluster size distributions in WT and KO images
├── data.csv -> data export for use outside chlamy_clusters
└── data.pkl -> pickle file containing processed data (auto-loads)
Analysis
The cumulative.pdf gives various summary metrics on the collection of WT amd KO images. The stats show raw counting of numbers of clusters. However, since the number of cells captured in each image is not uniform, additional plots are provided, which include normalization.
Getting Started
Create a python virtual environment, activate the environment, and install chlamy-cluster:
python3.14 -m venv cc-venv
source cc-venv/bin/activate
pip3 install chlamy-clusters
Check that the software is installed by getting version number or the help dialog
chlamy-clusters -v
chlamy-clusters -h
Run the package and provide your image files:
chlamy-clusters --imageDir /path/to/your/image/files --grayThresh 150 --blurKernel 9 --histogramPlots
Release files for chlamy-clusters 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chlamy_clusters-1.0.0.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chlamy_clusters-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / chlamy_clusters-1.0.0.tar.gz
| Download URL | chlamy_clusters-1.0.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
733572cfb523feeb46518098fa3350a10cfde84c1b8b836ed3796d46a56b42e5
|
|
BLAKE2b-256 checksum How to use checksums |
f40c285e36fc2f6f81c6e1331ceb5f9ee9775dbf8e33c8d1bcd41d9134a84c2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / chlamy_clusters-1.0.0-py3-none-any.whl
| Download URL | chlamy_clusters-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1de66e2df60248d60f37182cde160b6a3b80b86583cb3103f8612b4f277f1ebe
|
|
BLAKE2b-256 checksum How to use checksums |
4dc3bc107cbb337e1bdca148d952869faffaf981e0ad5670b57c8cbf52ad47c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|