Code Monkey home page Code Monkey logo

fluorescence-analysis's Introduction

Yeast fluorescent protein intensity pipeline to extract relative expression levels of proteins in yeast cells

This is a tool for processing of fluorescent microscopy images of yeast cells. This tool is based on neural network image segmentation from Alex Xijielu - YeastSpotter (https://github.com/alexxijielu/yeast_segmentation), scientific paper. Set of functions from postprocess.py module extract data from single cells, such as mean pixel intensity and area. Suitable for user-friendly high-throughput data extraction (mean intensity and area) following precise yeast cell segmentation by YeastSpotter. It can be used to estimate differences between relative protein expression from fluorescent images.

STEPS:

1. Clone this repository, and setup its dependencies to your environment, including downloading the weights
2. Replace the opts.py file from YeastSpotter with an opts.py file in this repository, and add the postprocess.py and process.py to the same directory as the opts.py
3. Setup a directory where will your analysis take place and the outputs will be saved (i.e. '/home/analysis/').
4. In this directory, create a directory called 'originals' and copy there your original images ('/home/analysis/originals/')
5. Open file opts.py and specify path to the directory with the scripts (i.e. '/home/scripts/') and path to the directory with your analysis ('/home/analysis/').
6. In the opts.py file, specify parameters for processing and segmentation, and save it
7. Run process.py file

This pipeline will:

  1. Crop your images to desired size
  2. Segment individual yeast cells (YeastSpotter) and output masks '/analysis/seg_out/masks/'
  3. Match your images with masks for control of the segmentation output and save them to '/analysis/outlines/'
  4. Removes edge touching objects from the mask to exclude them from te analysis
  5. Measures the specified properties (see function measure_img in postprocess.py)
  6. Plot the mean intensities per sample (violin plot)
  7. Convert the area of the cells to square microns, and categorize them big/small to see the growth ratio (small cells are after division) to see whether they don't have a growth deffect
  8. Save results in '/home/analysis/results/' (csv tables, png plot)

Example result plot + segmentation

Plot of mean intensities (observations = single cells of each sample).

Dependencies

Dependencies from YeastSpotter
skimage
pandas
numpy
cv2
glob
matplotlib
PIL
seaborn

Contact me to share with you the copy of the Anaconda environment used for this complete pipeline!

fluorescence-analysis's People

Contributors

milieere avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.