Skip to main content

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.

Release files for chlamy-clusters 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chlamy-clusters 0.0.1
File Size Uploaded
chlamy_clusters-0.0.1.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chlamy-clusters 0.0.1
File Interpreter ABI Platform
chlamy_clusters-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / chlamy_clusters-0.0.1.tar.gz

Download URL chlamy_clusters-0.0.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0d3b5eab576cb273c40729e03ca6cb415e47db76f0d83325b63fc393a17a06a6
BLAKE2b-256 checksum
How to use checksums
24e21319b5a4617302d4eadfe8984596a1cd0bf3db519e14d2e212238f6de264
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-0.0.1-py3-none-any.whl

Download URL chlamy_clusters-0.0.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10a8a28bb9f603a67932e8013b63d973a038cca1c5ecaa0b5e0579e7ddf1c338
BLAKE2b-256 checksum
How to use checksums
d3db26427716e72d0a8ec61c88593df7cb40547f89cdc26d38129d25c5e0c89f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

1.0.1

2 release files

1.0.0

2 release files

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page