This repository contains the code used in our Physical Review Letters paper:
Local Clustering and Global Spreading of Receptors for Optimal Spatial Gradient Sensing
Albert Alonso, Robert G. Endres, J. B. Kirkegaard
Create a virtual enviorment and install the required packages using the following commands:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Note
requirements.txt installs the CUDA 12-compatible version of JAX. Modify this if you're using CPU-only or a different CUDA version.
Run the core simulation:
python cramer.py
Visualize the results:
python visual.py
This code is released under the MIT License.