pymaid.get_annotations

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

Retrieve annotations for a list of skeleton ids.

If a neuron has no annotations, it will not show up in returned dict!

Notes

This API endpoint does not process more than 250 neurons at a time!

Parameters:
  • x

    Neurons for which to retrieve annotations. 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:

{skeleton_id: [annnotation, annotation], ...}

Return type:

dict

See also

get_annotation_details()

Gives you more detailed information about annotations of a set of neuron (includes timestamp and user) but is slower.