Giter VIP home page Giter VIP logo

calcium-imaging-analysis-with-r's Introduction

Calcium Imaging code

The purpose of this toolbox is to analyze calcium imaging data obtained by using Fluo4 (non-ratiometric Calcium indicator) and raw mean gray values obtained from the ImageJ software.

Installation instructions

  • Download and install R. Instructions can be found here.
  • Clone/download this repository on to your local machine. Extract all contents from the zip file, if necessary.
  • Open R interface.
  • Select File > Change dir: set Working Directory to the folder 'Calcium-Imaging-Analysis-with-R' that you downloaded and extracted. All the source R files and input csv files should be at the root of this directory. The output files will also be written there. You have to set this at the beginning of each session.
  • In the R interface, select File > Source R code : select each R file. Repeat the process until all source files, namely Threshold_iono.R, Threshold.R, Normalization_ionomycin.R and Peakcurrent.R. All other files are optional.

Part 1: Identify % of cells that have responded to the drug of interest and positive control

Description: This function takes a separate drug response file and ionomycin response file(or any other drug you want to normalize to, for e.g. KCl) from a Calcium Imaging dataset as input and generates a .csv file with normalized intensity (F/Fmax) values for all the cells that meet threshold (mean + 5 * st.dev). The inputs are mean gray values of ROIs obtained directly from ImageJ. Read CaImagingFunctionsRDocumentation.docx for detailed methodology and variable listing.

Filename: Normalization_ionomycin.R

Important considerations:

  • Make sure the input file is in .csv format.
  • Column headers are [Time/frame#, cell number (1, 2, 3, ... n), column with background intensity (obtained by selecting a dark area in the field of view in ImageJ] from left to right.
  • Each row of the csv file should contain intensity value for a single time instant/frame.
  • Two sample input files are provided: one with ph5 response named TestR.csv and another with ionomycin response called ionotest.csv.
  • SampleCalculations.xlsx shows a step-by-step breakdown of the calculations performed by this software in an excel format for ease of understanding.

To run this program: Type Normalization_ionomycin() in the R console and follow along with the prompt

Part 2: Record peak response of a drug responder

Description: This function computes the maxima of each column from the data produced in Part 1.

Filename: Peakcurrent.R

Important consideration: Use the normalized (output) file from the above function in a .csv format.

To run this program: Type peakresponse() in your R prompt and follow subsequent instructions

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.