PyFRAP: A Python based FRAP analysis tool box

View the Project on GitHub

PyFRAP: A Python based FRAP analysis tool box

Fluorescence Recovery After Photobleaching (FRAP) is a common technique to assess molecular diffusion. PyFRAP is a novel simulation-based analysis software that makes use of PDE simulations to analyze FRAP experiments in 3D geometries. It uses the first post-bleach image as initial condition, making assumptions about the underlying initial conditions obsolete. PyFRAP can fit different reaction-diffusion models to FRAP data, providing quantitative information about effective diffusion.



PyFRAP comes with a full image analysis and simulation toolbox. In particular, PyFRAP can


PyFRAP can be installed in different ways. We provide installation scripts that allow an easy installation of PyFRAP in combination with Anaconda, including all necessary Python packages and external softwares. Installation instructions can be found here.

If you are familiar with Python and git, you can install PyFRAP via

git clone


python install --user

We highly recommend installing with the –user option, since PyFRAP needs to read/write data files in the installation folder. In some cases, this might lead to file permission issues. For a full installation documentation, have a look at the wiki.


PyFRAP depends on

Note that the installation described here installs all necessary requirements.

Getting Started

Running PyFRAP GUI

PyFRAP comes with a comprehensive GUI. It can easily be started by clicking on runPyFRAP.bat (Windows), runPyFRAP.command (OSX) or (Linux).

If you are using a terminal, cd to your PyFRAP directory and type

python pyfrp/

If you are already in a python session, you can simply run

import pyfrp

Note that in the latter method PyFRAP’s stdout might get redirected to the python shell you are executing it from.

Running PyFRAP from the command line

PyFRAP is a complete python package and can be imported via

	import pyfrp

Note that PyFRAP has three main submodules: pyfrp.modules, pyfrp.subclasses and pyfrp.gui. If you do not want to use any GUI elements, we recommend only importing the modules you need.

Using the PyFRAP GUI to analyze a FRAP experiment

Check out the PyFRAP wiki’s First Steps Section.


PyFRAP is fully documented, allowing easy creation of scripts and extensions of the PyFRAP toolbox. The API of PyFRAP can be found here .


To learn more about PyFRAP, check out the PyFRAP Wiki.