pymaid.CatmaidNeuron.reroot¶
- CatmaidNeuron.reroot(new_root: Union[int, str], inplace: bool = False) Optional[TreeNeuron]¶
Reroot neuron to given node ID or node tag.
- Parameters
new_root (int | str) – Either node ID or node tag.
inplace (bool, optional) – If True, operation will be performed on itself. If False, operation is performed on copy which is then returned.
See also
reroot_skeleton()Base function. See for details and examples.