Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTBP1 Subcellular Localization — ImageJ & Python Analysis Pipeline

An automated ImageJ/Fiji and Python pipeline for quantifying the nuclear vs. cytoplasmic distribution of PTBP1 (Polypyrimidine Tract Binding Protein 1) and its RRM2 domain from fluorescence microscopy images of heterokaryon assays.

N/C Ratio Distribution Nuclear/cytoplasmic ratio distributions across experimental conditions (26,040 cells analyzed)


Background

PTBP1 is an RNA-binding protein with four RNA Recognition Motifs (RRMs) that shuttles between the nucleus and cytoplasm. This project asks whether the RRM2 domain specifically mediates nuclear retention by quantifying the subcellular localization of full-length PTBP1 and domain mutants in heterokaryon assays — a classical approach for testing nucleocytoplasmic shuttling of RNA-binding proteins.


Live Demo

Dashboard Demo

An interactive Dash dashboard allows real-time exploration of PTBP1 localization data — filter by experimental condition, view N/C ratio distributions, and export publication-ready plots.


Pipeline Overview

The workflow consists of two stages:

1. Image segmentation & quantification (ImageJ/Fiji)

  • Automated nuclear/cytoplasmic ROI segmentation from fluorescence images
  • Per-cell fluorescence intensity extraction
  • Batch processing across all 96 images in the dataset

2. Statistical analysis & visualization (Python)

  • N/C ratio computation per cell
  • Statistical comparisons across experimental conditions (scipy, statsmodels)
  • Publication-quality figures (matplotlib, seaborn, Plotly)
  • Interactive Dash dashboard for exploratory data analysis

Repository Structure

ptbp1-imagej-analysis/
├── data/
│   ├── raw_images/
│   │   ├── BBBC013/images/          # Raw fluorescence microscopy images
│   │   └── BBBC013_v1_platemap_all.txt  # Plate map metadata
│   └── processed/                   # Analysis outputs (N/C ratios, cell stats)
├── scripts/
│   └── analyze_ptbp1.py            # Batch image processing script
├── notebooks/
│   └── analysis.ipynb              # Statistical analysis notebook
├── app/
│   └── app.py                      # Interactive Dash dashboard
├── figures/
│   ├── localization_plots/         # Output plots
│   └── gif/                        # Dashboard demo animation
├── directory_structure.json        # Data directory manifest
├── requirements.txt                # Python dependencies
└── README.md

Getting Started

Prerequisites

  • Python 3.8+
  • ImageJ/Fiji (for image segmentation step)
  • Git

Installation

git clone https://github.com/ceugenia/ptbp1-imagej-analysis.git
cd ptbp1-imagej-analysis
pip install -r requirements.txt

Data

This pipeline uses the BBBC013 public dataset from the Broad Bioimage Benchmark Collection — fluorescence microscopy images of cells stained for subcellular protein localization. Place the downloaded images in data/raw_images/BBBC013/images/.

The BBBC013 dataset is used here to validate and demonstrate the analytical approach. Results reflect the pipeline's performance rather than specific biological findings about endogenous PTBP1 localization.

Running the analysis

Step 1 — Image quantification

Run the batch processing script to extract per-cell fluorescence intensities:

python scripts/analyze_ptbp1.py

Output CSVs will be written to data/processed/.

Step 2 — Statistical analysis

Open and run the Jupyter notebook for statistical comparisons and figure generation:

jupyter notebook notebooks/analysis.ipynb

Step 3 — Interactive dashboard

Launch the Dash app for interactive exploration:

python app/app.py

Then open http://localhost:8050 in your browser.


Key Results

  • Automated analysis of 26,040 cells across 96 fluorescence microscopy images
  • Per-cell nuclear/cytoplasmic (N/C) ratio quantification
  • Statistical comparisons of localization patterns across experimental conditions
  • Initial findings presented at the CSUF Summer Research Symposium (2021)

Tools & Dependencies

Tool Purpose
ImageJ/Fiji Nuclear/cytoplasmic segmentation
OpenCV, scikit-image Python image processing
pandas, numpy Data wrangling
scipy, statsmodels Statistical testing
matplotlib, seaborn, Plotly Visualization
Dash Interactive dashboard

Install all Python dependencies with:

pip install -r requirements.txt

Future Directions

  • Integrate deep learning segmentation (StarDist / Cellpose) for improved nuclear ROI accuracy
  • Expand to multi-protein co-localization studies
  • Develop a cloud-based pipeline for collaborative use
  • Build a public web interface

Citation

If you use this pipeline in your work, please cite:

Perez, C.E. (2021). PTBP1 Subcellular Localization ImageJ Analysis Pipeline. GitHub. https://github.com/ceugenia/ptbp1-imagej-analysis


License

This project is licensed under the MIT License — see the LICENSE file for details.


Contact

Developed by Constanza Eugenia Perez (@ceugenia).
Questions or suggestions? Open an issue on GitHub.

About

Automated ImageJ/Fiji and Python pipeline for quantifying PTBP1 and RRM2 domain subcellular localization from fluorescence microscopy images in heterokaryon assays.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages