find_circuit_paths
Find the strongest multi-hop synaptic pathways from one Drosophila neuron class (or neuron) to another, e.g. "how does LC12 reach the giant fiber?" or "what routes lead from DA1 ORNs to MBON01?". Answers from precomputed graphs, so class and neuron paths take a second or two. Use this for indirect routes; for direct connections between two classes use query_connectivity, and for one-sided partner lists use run_query with UpstreamClassConnectivity / DownstreamClassConnectivity. INPUT: ids only — FBbt class ids, or VFB ids for individual neurons; labels are refused, so resolve names with search_terms (filter_types ["neuron","class"]) first. Several ids per end are allowed. SCORING: each step is weighted by its input proportion (inprop_in: the fraction of the downstream class's total synaptic input that comes from the upstream class); a path's score is the product of its steps, so a 3-step path at 0.1 per step scores 0.001. Paths are ranked best first; scores are comparable within a dataset, not as absolute strengths. normalise="output" uses the fraction of the upstream class's output instead. HOW CLASSES ARE COUNTED: each neuron is assigned to its single most specific (leaf) cell type in that connectome, so broad classes do not act as shortcuts. A broad term such as "Kenyon cell" expands to the leaf classes beneath it (listed under sources/targets). Neurons with no leaf type, or more than one, are left out (neurons_left_out counts them). They can still appear in neuron-level paths, as nodes with class null plus status (no_leaf: only general types; multi_leaf: several leaf types; only_axis: only transmitter/lineage-type classes; untyped) and types (the most specific types they do have). Because of this the figures differ from query_connectivity with group_by_class=true, which rolls connections up to every ancestor class and pools datasets: do not compare the two numbers directly. LEVELS: if both ends are classes the search runs on the class graph; if either end is a VFB neuron id, it runs on the neuron graph (class ends expand to their neurons). DATASETS: each connectome is searched separately and reported in its own block; shared_class_paths lists class paths found in more than one dataset, which are the most robust. instance_graph=true adds the best individual-neuron chains along each class path, but takes tens of seconds on the large connectomes: use it only when the user asks about individual neurons, and then with k at most 5 and instance_k at most 3. RECOMMENDED DEFAULTS: k=5, min_synapses=5, exclude_dbs omitted (= ["hb","fafb"]). If no paths are found, try min_synapses=1, then exclude_dbs=[]. Every response names the data release (run) it came from.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"target": "<target>"
},
"name": "find_circuit_paths"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Paths to return per dataset, best first (default 5, max 20; max 5 with instance_graph). | |
| source | Yes | Start of the path: FBbt class id(s) (e.g. "FBbt_00100484") or VFB neuron id(s) (e.g. "VFB_fw011554"). A broad class expands to its leaf classes. Not labels — use search_terms first. | |
| target | Yes | End of the path, in the same form as source. | |
| normalise | No | "input" (default): weight each step by the fraction of the downstream partner's input. "output": by the fraction of the upstream partner's output. | input |
| instance_k | No | Neuron chains per class path when instance_graph is true (default 3, max 3). | |
| min_inprop | No | Ignore steps whose input proportion is below this (0..1, default 0). Raise it (e.g. 0.01) to keep only substantial steps. | |
| exclude_dbs | No | Dataset symbols to leave out. Omit for the default (["hb","fafb"], as on query_connectivity); pass [] to search every dataset. Must be symbols from list_connectome_datasets — an unknown name is rejected. | |
| min_synapses | No | Ignore class-to-class (or neuron-to-neuron) connections with fewer synapses than this (default 5). Lower to 1 if nothing is found. | |
| instance_graph | No | If true, add the best individual-neuron chains along each class path (instances). Slow: tens of seconds on the large connectomes, so only when the user asks about individual neurons. With it, k is at most 5 and instance_k at most 3. Default false. |