pymaid.join_nodes¶
- pymaid.join_nodes(winner_node, looser_node, no_prompt=False, tag_nodes=True, remote_instance=None)[source]¶
Join two skeletons by nodes.
All annotations are being kept. Reference to original neuron will be added.
- Parameters:
winner_node (int) – Node ID of winning skeleton to merge onto. Skeleton ID of this neuron will persist.
looser_node (int) – Node ID of loosing skeleton to merge. Skeleton ID of this neuron will be lost!
no_prompt (bool, optional) – If True, will NOT prompt before joining.
tag_nodes (bool | str | tuple of str, optional) –
If not False, will add tags to nodes:
If True add "joined into {WINNING SKELETON ID}" to loosing and "joined from {LOOSING SKELETON ID}" to winning node. If str, will add string as tag to both nodes. If tuple of two strings (str1, str2), will add str1 to winning and str2 to loosing node.
remote_instance (CatmaidInstance, optional) – If not passed directly, will try using global.
- Return type:
Server response
See also
join_skeletons()
If you don’t know how at what nodes to join skeletons.