pymaid.get_edges

pymaid.get_edges(x, remote_instance=None)[source]

Retrieve edges between sets of neurons.

Synaptic connections only!

Parameters:
  • x

    Neurons for which to retrieve edges. Can be either:

    1. list of skeleton ID(s) (int or str)

    2. list of neuron name(s) (str, exact match)

    3. an annotation: e.g. ‘annotation:PN right’

    4. CatmaidNeuron or CatmaidNeuronList object

  • remote_instance (CatmaidInstance, optional) – If not passed directly, will try using global.

Returns:

DataFrame in which each row represents an edge:

  source     target     weight
1
2
3

Return type:

pandas.DataFrame