pymaid.add_annotations

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

Add annotation(s) to a list of neuron(s).

Parameters:
  • x

    Neurons to add new annotation(s) to. 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

  • annotations (list) – Annotation(s) to add to neurons.

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

Returns:

Server response.

Return type:

dict

See also

remove_annotations()

Delete given annotations from neurons.