A unified computational and behavioral framework for analyzing goal-directed navigation in complex maze environments using hierarchical probabilistic models.
Project description
CoMPASS-Labyrinth
CoMPASS-Labyrinth is a unified computational and behavioral framework for analyzing goal-directed navigation in complex, ethologically valid maze environments using hierarchical probabilistic models. This project integrates behavioral modeling with neural data analysis to uncover latent cognitive states and their underlying neural dynamics during complex decision-making tasks.
Key Features
-
Naturalistic Maze Framework: A Novel Labyrinth maze paradigm that elicits spontaneous, intrinsically motivated, and untrained navigation behavior in rodents, closely mimicking real-world foraging.
-
CoMPASS: A Hierarchical Probabilistic Framework integrating local movement dynamics with goal-directed cognitive states.
-
Latent State Inference: Identification of fine-grained cognitive states that underlie navigation strategies, beyond what is captured by task performance alone.
-
Neural-Behavioral Integration: Linking probabilistically inferred behavioral states with neural oscillatory signatures, reflecting how internal cognitive processes manifest in circuit-level dynamics.
-
Translational Relevance: Sensitive detection of early cognitive deficits in models of neurodegenerative disease (e.g., App-KI mice), with broader implications for human cognition, learning, and memory.
Prerequisites
- Python 3.11 or higher
- R version 4.4.0 or lower
Installation
Option A: Using Conda
-
Clone the repository
git clone https://github.com/CoMPASS-Framework/CoMPASS-Labyrinth.git cd CoMPASS-Labyrinth
-
Create Python environment
conda env create -f environment.yml conda activate compass-labyrinth
This automatically installs the package with all dependencies from
pyproject.toml. -
Initialize R environment
Rscript init_renv.RThis installs all required R packages using renv. First run may take several minutes.
Option B: Using pip with pyproject.toml
-
Clone the repository
git clone https://github.com/CoMPASS-Framework/CoMPASS-Labyrinth.git cd CoMPASS-Labyrinth
-
Create Python virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the package with all dependencies
pip install -e ".[dev]" # Includes Jupyter and development tools # or pip install -e . # Core dependencies only
-
Initialize R environment
Rscript init_renv.R
Notes on Dependency Management
- Python packages: Managed via
pyproject.toml - R packages: Managed via
renv - When you start R in this directory, renv will automatically activate
Usage
-
See individual README.md files within src\compass-labyrinth for detailed instructions for descriptions of individual modules and code elements.
-
See tutorials for examples of running the code and instructions for usage. The tutorials have been numbered in order of usage and contain a description on the code and how to run it.
-
Tutorials included:
- 00_dlc_processing_template : Custom processing using DLC (outside of the compass-labyrinth env)
- 01_create_project : Initialization of project and concatenating post-DLC results
- 02_task_performance : Task performance metrics
- 03_simulated_agent_modeling : Simulated Agent modeling
- 04_compass_level_1 : CoMPASS Level 1 model
- 05_compass_level_1_post_analysis : CoMPASS Level 1 post analysis
- 06_compass_level_2 : CoMPASS Level 2 model
- Test datasets present in tests/assests
- Go through src/compass_labyrinth/compass/level_1/README.md and src/compass_labyrinth/compass/level_2/README.md for instructions on optimal model parameters. NOTE: Please test all and input all parameters to get optimal results.
Citation
If you use this framework, please cite the below manuscript:
Decoding hidden goal-directed navigational states and their neuronal representations using a novel labyrinth paradigm and probabilistic modeling framework. bioarxiv (2025)
Patrick S Honma*, Shreya C Bangera*, Reuben R Thomas, Nicholas Kaliss, Dan Xia, Jorge J Palop
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file compass_labyrinth-0.1.0.tar.gz.
File metadata
- Download URL: compass_labyrinth-0.1.0.tar.gz
- Upload date:
- Size: 104.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c36c79f1899b5c30a57db1835939e205c2266549c2e0b0f122dc85ca199f7b51
|
|
| MD5 |
417df7cd72495da4258719fb5f29f242
|
|
| BLAKE2b-256 |
38b677ebb8b9245973f935729b4ab48d324cadee3edb12f6ece3fb83e0264537
|
File details
Details for the file compass_labyrinth-0.1.0-py3-none-any.whl.
File metadata
- Download URL: compass_labyrinth-0.1.0-py3-none-any.whl
- Upload date:
- Size: 118.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65e5123d641055eed8377228bf05f9eb7117607b0e4828eb2fcbb20c379bdacd
|
|
| MD5 |
bd6263dadd2ddbf285da0cdd77597329
|
|
| BLAKE2b-256 |
0141a2412889d5d0a87a9cf4fd1fa60fc4e6edec437c7f37c21e6e51f239c96c
|