confocal_z-stack_analysis

Imaging experiments in Biology often involve the acquisition of confocal z-stack images to quantify fluorescent signal in a biological sample. These z-stacks are usually analyzed using open-source programs such as FIJI, which are notoriously frustrating to work with, and do not facility intuitive high-throughput analysis of many images at once. Manual image analysis is labor-intensive, time-consuming, and prone to human error. I compiled two notebooks to streamline two of the most commonly performed tasks in the analysis of confocal z-stack images: the generation of "pretty" maximum projections, and the analysis of pixel values/ fluorescence from sum projections.

https://github.com/lauraluebbert/confocal_z-stack_analysis

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.8%) to scientific vocabulary

Keywords

confocal-images confocal-microscopy confocal-zstack-images despeckle image-processing maximum-projection scalebar scikit-image
Last synced: 6 months ago · JSON representation ·

Repository

Imaging experiments in Biology often involve the acquisition of confocal z-stack images to quantify fluorescent signal in a biological sample. These z-stacks are usually analyzed using open-source programs such as FIJI, which are notoriously frustrating to work with, and do not facility intuitive high-throughput analysis of many images at once. Manual image analysis is labor-intensive, time-consuming, and prone to human error. I compiled two notebooks to streamline two of the most commonly performed tasks in the analysis of confocal z-stack images: the generation of "pretty" maximum projections, and the analysis of pixel values/ fluorescence from sum projections.

Basic Info
  • Host: GitHub
  • Owner: lauraluebbert
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: master
  • Homepage:
  • Size: 177 KB
Statistics
  • Stars: 5
  • Watchers: 1
  • Forks: 4
  • Open Issues: 0
  • Releases: 1
Topics
confocal-images confocal-microscopy confocal-zstack-images despeckle image-processing maximum-projection scalebar scikit-image
Created over 5 years ago · Last pushed almost 4 years ago
Metadata Files
Readme License Citation

README.md

confocalz-stackanalysis

DOI
Imaging experiments in Biology often involve the acquisition of confocal z-stack images to quantify fluorescent signal in a biological sample. These z-stacks are usually analyzed using open-source programs such as FIJI, which are notoriously frustrating to work with, and do not facility intuitive high-throughput analysis of many images at once. Manual image analysis is labor-intensive, time-consuming, and prone to human error.

I compiled two notebooks to streamline two of the most commonly performed tasks in the analysis of confocal z-stack images:

  1. The first notebook ("TEMPLATEmaxprojec") allows the user to generate and save maximum projection images with a variety of adjustable parameters, such as filters, channel colors, adjustable scale bar (position, size, and color), and more. These parameters are defined once at the beginning of the notebook, in addition to a directory containing the raw tif files. The notebook then automatically generates and saves maximum projections (the saving folder and data format of the generated images can be adjusted too). Remember that one time you spent hours changing the lookup table (LUT) and scale bar size in hundreds of images for a presentation or publication? All of that is just two clicks away now.

  2. The second notebook ("TEMPLATEfluoanalysis") is designed to aid you in the analysis of the pixel (or fluorescence) values in your images. For this purpose, it first generates sum projections from your z-stacks (the notebook includes the option to save these locally too). You can then manually draw regions of interest (ROIs) and define background (BG) areas to normalize against using the package bebi103 written by Prof. Justin Bois. From your manually drawn ROIs, the notebook will compute the fold change from the mean and median pixel values, the raw integrated density (sum of all BG normalized pixel values in ROI) as well as the integrated density (product of ROI area (number of pixels in ROI) and mean BG normalized pixel value inside the ROI) for each sample and save them to a clean csv file for further analysis. The images, ROI coordinates, and pixel values are saved to a dictionary and continuously linked to their sample ID, channel, condition, and original filename, so nothing ever gets confused. These dictionaries are also saved locally as pickle files, which you could import into a new notebook for further analysis. They also contain your ROIs, which means that you will never ever have to redraw ROIs again over and over in FIJI just to change that one parameter in your analysis.

Alt Alt

A few ground rules:

  1. Please read the text at the top of each notebook for instructions on how to use it.
  2. Name your tif files as follows: "Xsampleconditionsample_channel" , where "X" is optional and can be filled as desired by the user (do not use spaces).
    • "Samplecondition" can be a string of text separated by "-", e.g., "GCaMP-30C-6dsamplechannel" (Do not use spaces or "_" within the condition, else part of it will be cut out in the dictionary.)
    • "Sample" and "channel" can be a simple number or a description, e.g.: "samplecondition11" or "sampleconditionBrain1DAPI". (Do not use spaces or "_" within the sample or channel.)
  3. The code currently only works for tif files containing one fluorescence channel each. (The maximum projection notebook does not have a merging option, yet.)
  4. Let me know if you run into issues; I would love to hear your feedback! This code is quite versatile and can be tailored to analyze 2D images and time series (including 2-photon images).
  5. Please cite this GitHub repository if you found it to be useful.

ENJOY!

Owner

  • Name: Laura Luebbert
  • Login: lauraluebbert
  • Kind: user
  • Company: @pachterlab

Ph.D. candidate in the @pachterlab at Caltech · Author of gget

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Luebbert"
  given-names: "Laura"
  orcid: "https://orcid.org/0000-0003-1379-2927"
title: "confocal_z-stack_analysis"
version: 1.0.0
doi: 10.5281/zenodo.3995395
date-released: 2021-11-05
url: "https://github.com/lauraluebbert/confocal_z-stack_analysis"

GitHub Events

Total
  • Watch event: 3
  • Fork event: 1
Last Year
  • Watch event: 3
  • Fork event: 1

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels