pymaid.shared_partners

pymaid.shared_partners(a, b, upstream=True, downstream=True, syn_threshold=None, restrict_to=None, remote_instance=None)[source]

Return shared partners between neuron(s) A and B.

Parameters:
  • a (CatmaidNeuron/List) – Neurons to search shared partners for.

  • b (CatmaidNeuron/List) – Neurons to search shared partners for.

  • upstream (bool, int, optional) – Set to True/False to restrict direction.

  • downstream (bool, int, optional) – Set to True/False to restrict direction.

  • syn_threshold (int, optional) – Synapse threshold. Edges to both neurons A and B must be above threshold!

  • restrict_to (str | pymaid.Volume, optional) – Volume to restrict connectivity to.

  • remote_instance (CatmaidInstance, optional) – If not passed, will try using globally defined.

Returns:

Pandas DataFrame with shared partners and edges:

   neuron_name  skeleton_id  relation edges_a  edges_b
0
1
2

Return type:

pandas.DataFrame