pymaid.arbor_confidence

pymaid.arbor_confidence(x, confidences=(1, 0.9, 0.6, 0.4, 0.2), inplace=True)[source]

Calculate along-the-arbor confidence for each treenode.

Calculates confidence for each treenode by walking from root to leafs starting with a confidence of 1. Each time a low confidence edge is encountered the downstream confidence is reduced (see confidences).

Parameters:
  • x (CatmaidNeuron | CatmaidNeuronList) – Neuron(s) to calculate confidence for.

  • confidences (list of five floats, optional) – Values by which the confidence of the downstream branche is reduced upon encounter of a 5/4/3/2/1- confidence edges.

  • inplace (bool, optional) – If False, a copy of the neuron is returned.

Return type:

Adds arbor_confidence column in neuron.nodes.