dvid.utils.reroot_skeleton¶
- dvid.utils.reroot_skeleton(x, new_root, inplace=False)[source]¶
Reroot skeleton to new root.
For fragmented skeletons, only the root within the new_root’s connected component will be changed.
Node order might not conform to SWC standard after healing. Use
dvidtools.refurbish_table
to fix that.- Parameters
x (pandas.DataFrame) – SWC table to reroot.
new_root (int) – New root ID.
- Returns
SWC
- Return type
pandas.DataFrame