You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Get all synaptic connections between individual neurons of `upstream_type` and `downstream_type` where
526
-
synapse count >= `weight`. At least one of 'upstream_type' or downstream_type must be specified.
526
+
synapse count >= `weight`. At least one of `upstream_type` or `downstream_type` must be specified.
527
527
528
+
When `group_by_class=True`, results are aggregated by class with subclass closure: a connection
529
+
contributes to the row for every (upstream_ancestor, downstream_ancestor) pair within the
530
+
`upstream_type`/`downstream_type` scope, not only the directly asserted INSTANCEOF class. This
531
+
means a single connection appears in multiple rows (once per ancestor pair) and the per-row
532
+
`pairwise_connections` and `total_weight` will not sum to the underlying connection counts.
533
+
`total_upstream_count` is also computed with subclass closure, so `percent_connected` is
534
+
internally consistent within each row.
535
+
536
+
:param weight: Minimum synapse count for a connection to be included.
528
537
:param upstream_type: The upstream neuron type (e.g., 'GABAergic neuron').
529
538
:param downstream_type: The downstream neuron type (e.g., 'Descending neuron').
530
-
:param group_by_class: If `True`, return connectivity results aggregated by class rather than per neuron. Default `False`.
531
539
:param query_by_label: Optional. Specify neuron type by label if `True` (default) or by short_form ID if `False`.
540
+
:param group_by_class: Optional. If `True`, return connectivity results aggregated by class (with subclass closure, see note above) rather than per neuron. Default `False`.
532
541
:param exclude_dbs: Optional. List of databases (short_forms or symbols) to exclude from results. Hemibrain and catmaid FAFB excluded by default.
533
542
:param return_dataframe: Optional. Returns pandas DataFrame if `True`, otherwise returns list of dicts. Default `True`.
543
+
:param verbose: Optional. If `True`, print the Cypher queries used. Default `False`.
534
544
:return: A DataFrame or list of synaptic connections between specified neuron types.
0 commit comments