Analysis code for v1 depth map project.
- Create an empty environment
conda create --name <env_name>
- Activate the environment by
conda activate <env_name>
. - Install pip
conda install pip
. - Install this package by
pip install .
.
- Follow installation instructures for https://github.com/znamlab/flexiznam.git.
- Set up config for the
flexiznam
package byflexiznam config
. The config file should be found at~/.flexiznam/config.yml
. - Make sure that the path under project_paths points to the path you have downloaded the data. e.g.:
project_paths:
hey2_3d-vision_foodres_20220101:
processed: your_data_path
raw: your_data_path
- Turn on the offline mode by adding the following to your config:
offline_mode: true
offline_yaml: offline_database.json
- Run the notebooks under
./v1_depth_map/figures
to plot the corresponding figures. - When first running the figure notebooks, change
reload
toTrue
to reload data.
- Run the bash script in each folder under
./v1_depth_map/batch_analysis
to conduct corresponding analysis for all sessions. - Remember to change the path in the bash script for
#SBATCH --output=
andcd
to your local path to this repo. - Remember to change the conda environment name to your own environment.
- To precompute data for plotting figures, run the corresponding bash script.