pymaid.CatmaidNeuron.prune_proximal_to¶
- CatmaidNeuron.prune_proximal_to(node: Union[str, int], inplace: bool = False) Optional[TreeNeuron] ¶
Remove nodes proximal to given node. Reroots neuron to cut node.
- Parameters
node (node_id | node tag) – Provide either a node ID or a (unique) 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
cut_skeleton()
Base function. See for details and examples.