Installation¶
The code is designed for developers. To install, first clone the repository and then create a conda environment called vrAnalysis. You can use the environment.yml file to create the environment, but I'd actually recommend not doing this and instead making an empty environment (python >= 3.9!!!!) and then installing the package locally with pip install -e ..
Basic Code Installation¶
- Clone the repository:
- Create a conda environment called vrAnalysis:
- Install the package in development mode:
Note: there are "extra" dependencies that will not be installed by this method. The options are:
- registration: includes packages that require special compilers
- oasis-deconv
- cvxpy
- gui: includes packages that are used for the GUI for manually adding data to the database
- pyqt5
- pyqtgraph
- napari[all]
- all: includes all of the above
To install the extra dependencies, use one of the following commands:
Other dependencies¶
As an analysis package of experimental data, there are a few other things that need to happen before you can actually use the package. They primarily relate to setting up your database, your data directories, and some other preprocessing that needs to happen with other python packages (primarily suite2p and ROICaT).
For a detailed guide on all of this, see the registration workflow page which walks you through the whole process.
PyTorch¶
Some of the package uses pytorch. For reasons that escape me, meta has not found a good way to install pytorch inside other packages using pip install or conda install. My workaround is to make my environment as described above, install vrAnalysis, then install pytorch manually using the instructions on the pytorch website.
If you try to use things that depend on pytorch and haven't done this, you'll get import errors. Sorry.
Tip
Make sure to install PyTorch with the correct CUDA version for your GPU, and verify that GPU acceleration is working properly after installation.
Configuration¶
After installation, you have to configure paths for your data:
- Data Directory: Set your local data path in
vrAnalysis/files.py:
- Database Paths: Configure database paths in
vrAnalysis/database.pyusing theget_database_metadata()function.