Installation
Follow the base package installation below. Using the package manager miniconda is highly recommened.
Base package
- Create a conda or virtual enviroment and activate it (optional, but recommended).
python -m venv ./photometry_env
source ./photometry_env/Scripts/activate # for MacOS / Linux
photometry_env\Scripts\activate # for Windows
- Install from PyPi or GitHub. Installing from GitHub will install the latest version.
You can update the package with by including the --force-reinstall flag in the pip install command.
FMM support
Follow the next step after the basic installation to add support for the advanced analysis method Functional Linear Mixed Modeling. It is highly recommended that you install PhoPro in a conda enviroment if you want FMM support.
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.