emperipi/Chemotaxis-two-sources: Competing chemical gradients change chemotactic dynamics and cell distribution - Supplementary Data
Abstract
Supplementary Data/Codes - Competing chemical gradients change chemotactic dynamics and cell distribution Ipinã, E. P., & Camley, B. A. (2026). Competing chemical gradients change chemotactic dynamics and cell distribution. Physical Review E, DOI: https://doi.org/10.1103/z3zg-xrxx Ipinã, E. P., & Camley, B. A. (2025). Competing chemical gradients change chemotactic dynamics and cell distribution. ArXiv, arXiv-2507. These codes are shared to allow replication of our results and further exploration. Our codes were not developed with the goal of being efficient or easy to read, nor do they follow standard notations and conventions. We cannot guarantee that they will work as predicted if you try to change things without understanding them. In this sense, they are released in the spirit of the CRAPL license. The zip file includes: Python simulation code used in the article: "prw_2_grads.py": Simulates cell trajectories in a two-source chemotaxis model and saves downsampled positions over time. "prw_2_grads_hist.py": Simulates multiple trajectories, accumulates a 2D histogram of cell positions, and saves the spatial density. "prw_2_grads_steady_state.py": Simulates cell trajectories and saves only the final positions and orientations after reaching the steady-state. "prw_2_grads_module.py": Contains core functions for trajectory simulation, histogram generation, and chemotactic analysis. Jupyter notebooks to generate the paper figures based on the data stored in the "/Data" folder that was generated by the above codes: "Figure_1.ipynb": Generate paper's Fig. 1 panels. "Figure_2.ipynb": Generate paper's Fig. 2 panels. "Figure_3.ipynb": Generate paper's Fig. 3 panels. "Figure_4.ipynb": Generate paper's Fig. 4 panels. "Figure_S1.ipynb": Generate paper's Fig. S1 panels. Requirements: All python code runs in python 3, specifically we used Python 3.7.16. To install all required packages run 'pip install -r requirement.txt'. Note: numba-special requires Python 3.8 or earlier. Jupyter notebooks were run with Python 3.9.5.
Publication details
- Journal / source
- Zenodo (CERN European Organization for Nuclear Research)
- Publication date
- 11 February 2026