Online Resource 2. Analysis code
Caetano JPC, Perez JR, Welter FCS, Farias Junior V, Rezende RM, Prado FS, Simões LD, Molina AR. A connectomic census of axo-axonic inhibition in Drosophila: control of nociceptors is concentrated in one body-wide inhibitor. Journal of Comparative Physiology A.
Corresponding author: João Pedro do Couto Caetano, Postgraduate Program in Dentistry, School of Dentistry, Federal University of Pelotas, Pelotas, Brazil; e-mail: jpcaetano8@gmail.com

analysis/   Python 3 scripts for every analysis in the paper (pandas, NumPy, SciPy, Numba). Each script begins with a header stating what it computes and which figure or table it supports. sim.py is the leaky integrate-and-fire network model with the parameters of Shiu et al. (2024).
figures/    Scripts that draw Figs. 1 to 8 and Figs. S1 to S5 from the derived tables in Online Resource 3 (matplotlib); skel_ids.json and aff_ids.json list the male-CNS body IDs whose skeletons are drawn.
independent_reimplementation/   The reimplementation of the structural analysis written from the Methods alone, without access to the primary code, and its output.

Input data are the public male-CNS v1.0, MANC v1.2.1 and BANC 888 releases (see Data availability in the paper). The analyses were implemented and executed with large language models and were verified and reproduced by the authors, as described in Materials and methods.

Running the code
Data paths are set by the environment variable JCPA_DATA_DIR (default: the current folder). It should point to one root folder with these subfolders:
  rep/      harmonised MANC v1.2.1 and BANC 888 files (feather) from the fly connectome data resource cited in Data availability.
  data/     male-CNS v1.0 files (feather): body annotations, neurotransmitter predictions, connectome weights and synapse partners.
  skel/     male-CNS neuron skeletons (SWC); skelhi/ holds higher-resolution skeletons, used for drawing when available.
  work/     working folder holding the intermediate tables (e.g. nodes.parquet, edges.parquet) and the derived tables of Online Resource 3; figures are written to work/figj.
Example: set JCPA_DATA_DIR=C:\jcpa_data (Windows) or export JCPA_DATA_DIR=/path/to/jcpa_data (Linux/macOS), then run the analysis scripts from the work/ folder.
