Installation
Follow the Base Package installation below. Using the package manager miniconda is highly recommened.
Base package
For a basic install there are 3 main options:
-
Download and unzip the package repository and run the following command from the project's root folder:
-
(Requires git) Create a new venv or conda enviroment and run:
-
(Requires conda) Download and unzip the package repository. In the terminal navigate to the project's root folder and run:
Then activate your enviroment and install pyFiberPhotometry through pip:
FLMM support (requires conda)
The following tutorial is for adding support for the advanced analysis method Functional Linear Mixed Modeling after installing the basic enviroment. The setup can be a pain but the FMM analysis framework can be very insightful. For more information about FMM for photometry data see the original paper by Dr. Loewinger.
-
Install all R packages avaliable from conda:
-
Then run the install_FLMM.R script with your conda enviroment active.
- If you get an error like
Error: C17 standard requested but CC17 is not definedfor any of your packages try creating the file~/.R/Makevarsand add the following to it depending on your platform:
-
Install the fastFMM Python wrapper with:
-
With your conda enviroment active verify
rpy2is working properly with:
- If you get a and error similar to
Error importing in API mode: ImportError("dlopen(..._rinterface_cffi_api.abi3.so, 0x0002): Library not loaded: .../lib/libRblas.dylib, you will have to set the enviroment variable R_HOME within your conda enviroment then unintall and reinstallrpy2.