This project focuses on automating the analysis of calcium diffusion dynamics in mouse embryo fibroblast cells. By introducing ATP to trigger calcium release, fluorescence microscopy data is captured and processed to quantify calcium movement. The tool automates the generation of fluorescence decay plots and GIFs, providing an efficient alternative to manual data processing.
The program, written in Python, is designed to be user-friendly for biology students with minimal programming experience. It processes video files (TIFF) and corresponding region of interest (ROI) data, performing error checks and outputting visualizations and data files for further analysis.
-
Command Line Interface (CLI):
- Simplifies user interaction with commands for different functionalities.
- Validates input files and directories.
- Provides detailed help messages for each command.
-
Plotting Options:
- Generates fluorescence over time plots.
- Creates fluorescence decay plots for individual or multiple dishes.
- Visualizes data with optional line-of-best-fit and cell-specific coloring.
-
Additional Functionalities:
- Converts TIFF video frames into GIFs for easier visualization.
- Exports processed data as CSV files for additional analysis.
- Python 3.7 or higher
- Required Python libraries:
cell-detectionclickmatplotlibnumpycv2pandasPILroifilescipyseaborntifffileargparsepytorch
- Clone the repository:
git clone https://github.com/EulerFrog/Project-8.git cd Project-8 - Install dependencies:
pip install -r requirements.txt
python cli.py <command> [options]Commands
- plot
Options:
python cli.py plot --input <directory> --contrast <value> --type <fluorescence|decay>
- --input: Directory containing TIFF files and ROI data
- --contrast: Adjust image contrast for processing
- --type: Specify plot type (fluorescence or decay)
- gif
python cli.py gif -d path/to/dir
- export_csv
python cli.py export_csv -d path/to/dir
- --help
python cli.py --help
python cli.py plot fluo-plot -d path/to/dirpython cli.py plot decay-plot -d path/to/dir {True, False}python cli.py plot decay-plot -d path/to/dir -c {True, False}python cli.py plot decay-plot -d path/to/dir -bf True {True, False}python cli.py plot decay-plot -d path/to/dir -bf True -c {True, False}- Plots:
- Fluorescence over time
- Fluorescence decay with optional customization
- GIFs:
- Animated visualizations of calcium diffusion
- CSV Files:
- Normalized and processed fluorescence data
Michelle Fast, Hidemi Mitani Shen, Stella Brown, Joe Ewert, Evan Asche
Affiliations: Computer Science Department, Western Washington University