dvid.fetch.get_adjacency¶
- dvid.fetch.get_adjacency(sources, targets=None, pos_filter=None, ignore_autapses=True, server=None, node=None)[source]¶
Get adjacency between sources and targets.
- Parameters
sources (iterable) – Body IDs of sources.
targets (iterable, optional) – Body IDs of targets. If not provided, targets = sources.
pos_filter (function, optional) – Function to filter synapses by position. Must accept numpy array (N, 3) and return array of [True, False, …]
server (str, optional) – If not provided, will try reading from global.
node (str, optional) – If not provided, will try reading from global.
- Returns
adjacency matrix – Sources = rows; targets = columns
- Return type
pandas.DataFrame