ccf_streamlines.morphology.load_swc_as_dataframe#
- ccf_streamlines.morphology.load_swc_as_dataframe(swc_file)#
Load a morphology SWC file into a pandas DataFrame.
- The dataframe contains the columns:
ID : node identifier
- typenode type, which could be
1 = soma 2 = axon 3 = basal dendrite (or generic dendrite) 4 = apical dendrite
x : x-coordinate
y : y-coordinate
z : z-coordinate
r : radius
parent_id : identifier of parent node
- Parameters
swc_file (str) – File path of SWC file
- Returns
df – Dataframe with morphology information
- Return type
DataFrame