pymaid.CatmaidNeuronList.to_selection

CatmaidNeuronList.to_selection(save_to='selection.json')[source]

Generate JSON file which can be loaded in CATMAID selection tables.

Uses neurons’ .color attribute (if exists).

Parameters:

save_to (str | None, optional) – Filename to save selection to. If None, will return the json data instead.