Utilities#
- swick.split_swc()#
 Splits an
SWCobject into one or moreSWCobjects, each containing a single root node. Node IDs are not modified by this process.- Parameters:
 swc – the
SWCobject to be split- Returns:
 a list of
SWCobjects each containing one root node
- swick.combine_swcs()#
 Combines each of the
SWCobjects in the list into a singleSWC. Node IDs for all but the firstSWCin the list may be modified by this process in order to avoid collisions between node IDs: for eachSWCin the list, the node IDs it contains will be offset by the greatest node ID in the previousSWC.- Parameters:
 swcs – a list of
SWCobjects to be combined- Returns:
 a single
SWCobject containing allNodes from the input