Simple dF/F calculation for neural calcium traces, based on https://www.nature.com/articles/nprot.2010.169
from dff_calc import dff_calc
- Coerce your data to be in a (cell x time) 2D numpy array.
- To calculate the dF/F, call
dff = dff_calc(raw_data)
. Other parameters are listed in the docstring.
pip install dff-calc
Python 3.6+, numpy, pandas, scipy
Apache 2.0
dff_calc was written by Hagai Har-Gil, graduate student in Dr. Pablo Blinder's Lab.