GR Count offers interactive, semi graphical user interface through Jupyter notebooks.
Follow these instructions if you do not already have Anaconda or Jupyter notebooks installed on your computer.
- GR Count is developed in Jupyter notebooks using Python 3. Since it benefits from a wide range of Python libraries, along with Jupyter notebooks, we suggest installing Anaconda distribution of Python (V 3.7). --> Download Anaconda You may follow the rest of the instructions if you do not already have OpenCV installed on your computer.
- While Anaconda installation takes care of most of the library requirements for CeMiA, there is only one more libary (OpenCV) that needs to be installed, which can be achieved through the command line. (You just need to copy and run the following command. (without the $))
- Windows: Use Anaconda Prompt.
- MacOS, Linux: Use Terminal.
$ pip install opencv-python==3.4.2.17
- It is important to install this specific version of OpenCV for compatibility.
- GR Count depends on grc.py to run. This module includes all the functions used in the develepment of GR Count. This file should be in the same folder as the GR_Count.ipynb jupyter notebook you are running.
Once you have satistfied the requirements, you can start your analysis by downloading or cloning this repository on your computer. The simplest way is to download the whole directory by pressing the green button (top right) and download the ZIP file.
- Input: Individual sequence of images exported from your stack of images using ImageJ
- Images should have the following naming format: name_of_the_image_z***_c***.tif
- GR Count reads the stack and channel info ((z*** and c***) from each image to automate the measurements. So this formatting is required for the code to run.
- Example: RGB_z011_c001: is the channel1 (red) from stack 11.
- GR Count reads the stack and channel info ((z*** and c***) from each image to automate the measurements. So this formatting is required for the code to run.
- Number channels with stains: 2
- Red and Green channels should be stained
- Images should have the following naming format: name_of_the_image_z***_c***.tif
- Output: Two csv files containing signal measurements over the stack of images, and the summary of the measurements.
- Stack_measurements.csv: Includes signal measurements over the stack of images.
- Stack_summary.csv: Includes statistical summary of the measured features across the stack.
- Run the GR_Count.ipynb using Jupyter notebook.
- You may find this video on Jupyter notebooks very helpful: Watch Here
- Note: We are not affiliated with the owner of the above video. We just found this video on Jupyter notebooks very helpful, There are plenty of great tutorials about this subject, and you may use any source your prefer.
- You may find this video on Jupyter notebooks very helpful: Watch Here
- The Jupyter notebook file provides the users with step-by-step instructions to analyze their data.
- 500+ images (3 stack images) were used to develop and test GR Count.
- Total red signal at each layer of the stack
- Total green signal at each layer of the stack
- The ratio of the red signal to green signal at each layer of the stack
- The ratio of the green signal to red signal at each layer of the stack
- The sum of green area of all the layers of the stack
- The sum of red area of all the layers of the stack
- The the ratio of "Total Green Area" to "Total Red Area"
- The the ratio of "Total Red Area" to "Total Green Area"
- copy
- cv2
- ipywidgets
- matplotlib.pyplot
- numpy
- os
- pandas
- re
- seaborn
- skimage