from pymaid.neuron_label import NeuronLabeller, SkeletonId, NeuronName, Annotations, ThinNeuron
labeller = NeuronLabeller(
[SkeletonId(), NeuronName(), Annotations(annotator_name="me"), Annotations(annotated_with="my useful annotation")],
"%1 (%0) personal:%2 annotations:%3{ | }"
)
skid = 1234567
nrn = ThinNeuron(skid) # only holds the info needed by the labeller, and fetches it lazily
print(labeller.label(nrn))
>>> neuron name (1234567) personal:myfirstann, mysecondann annotations:thing | another thing | and another
Resolves #236
Example usage