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:
list of skeleton ID(s) (int or str)
list of neuron name(s) (str, exact match)
an annotation: e.g. ‘annotation:PN right’
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.