SWC Reader¶ class dendrotweaks.morphology.io.reader.SWCReader[source]¶ Bases: object Reads an SWC file and returns a DataFrame. static read_file(path_to_swc_file: str) → DataFrame[source]¶ Read the SWC file and return a DataFrame. Parameters: path_to_swc_file (str) – The full path to the SWC file. Returns: The DataFrame containing the SWC data Return type: pd.DataFrame static plot_raw_data(df, ax)[source]¶ Plot the raw data from the SWC file using the DataFrame. Parameters: df (pd.DataFrame) – The DataFrame containing the SWC data (generated by read_file). ax (matplotlib.pyplot.Axes) – The axes to plot on.