/connectome-interpreter:connectome-interpreterfrom connectome-interpreter
Analyzes Drosophila connectomes (FAFB/FlyWire, maleCNS, BANC) using the connectome_interpreter Python package. Computes effective connectivity, path-finding between neuron groups, receptive fields, and differentiable rate models with activation maximization and saliency.
Ships in connectome-interpreter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
connectome_interpreter (import as coin) turns a weighted, signed wiring diagram into testable hypotheses about circuit function. Docs: https://connectome-interpreter.readthedocs.io. Source + Colab tutorials: https://github.com/YijieYin/connectome_interpreter. Preprint: https://www.biorxiv.org/content/10.1101/2025.09.29.679410v2.
Neuroscience interprets uncharacterised circuits through characterised ones. The package formalises this as the contextual receptive field (RFc): a neuron's receptive field expressed not only in peripheral sensory neurons, but in any functionally characterised neurons anywhere in the brain (e.g. "excited by appetitive MBONs, inhibited by aversive ones", "driven by looming-sensitive LPLC1 on the contralateral side", "tuned to these odours").
Anchors for "known":
coin.load_dataset), mapped onto downstream neurons.Report findings as hypotheses with the evidence chain (which known neurons, path length, sign, strength), and cite the source papers from the known-function table.
inprop matrix, pre in rows, post in columns, input-normalised) + metadata. See references/data.md.MultilayeredNetwork; read out activity, active pathways; saliency for which inputs/intermediates mattered; activation maximisation for which input best drives a target; train_model to fit to data. See references/model.md.Start linear (cheap, interpretable); go non-linear when the questions below apply.
Effective connectivity = sum over all paths of length n of the product of weights = n-th power of the connectivity matrix; it equals the steady state of a linear rate model. It is the average influence, independent of state. The non-linear model (tanh(relu(.))) adds context-dependence. They diverge in two regimes:
Use the model when the question is about a specific stimulus/state, when many inhibitory routes are involved, or when asking "what input best drives X". Saliency in a linear model equals signed effective connectivity; in the non-linear model it predicts perturbation responses better, increasingly so at longer path lengths.
enumerate_paths(loop_mode=...) / effconn_without_loops to exclude them.sign column, +1/-1). Two inhibitory steps count as excitation (disinhibition), which only works if the intermediate is active - a reason to check with the model.root=True ("equivalent per-hop strength") knowing rooted values grow with length because of convergence.type_side) for interpretable results; laterality matters (e.g. LPLC1 excites the contralateral DNa05).Runs on laptop, workstation, HPC, or Colab; GPU accelerates matrix multiplication and the model but is optional.
torch.device("cuda" if torch.cuda.is_available() else "cpu"). Note compress_paths defaults device=cuda; pass the device explicitly on CPU machines.compress_paths(inprop, n, chunkSize=..., save_to_disk=True, save_path=...). Memory ~ sparse matrix + a few dense chunks of chunkSize x n_neurons float32 (2000 x 140k ~ 1.1 GB each). Lower chunkSize on small RAM/GPU. Precompute once (HPC/GPU), save .npz per step, reload with coin.read_precomputed.conn_by_path_length, find_paths_of_length + effective_conn_from_paths): seconds on a laptop, no precompute needed.display_output=False, save plotly figures with fig.write_html(...), and plot_paths(..., interactive=False, save_plot=True, show=False).pip install "connectome_interpreter[get_ngl_link]" (neuroglancer links), [compute_flow_hitting_time] (navis, information-flow layers), [plot_layered_paths] (pyvis), [wandb].Signatures and docstrings are thorough: help(coin.find_paths_of_length). When unsure of an argument, read the docstring rather than guessing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub yijieyin/connectome_interpreter --plugin connectome-interpreterOther plugins' skills for the same job