pymaid.remove_annotations

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

Remove annotation(s) from a list of neuron(s).

Parameters:
  • x

    Neurons to remove given annotation(s) from. 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

    5. None to remove annotation(s) from all neurons.

  • annotations (list) – Annotation(s) to remove from neurons.

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

Returns:

Server response.

Return type:

dict

See also

add_annotations()

Add given annotations to neuron(s).