neurom.io.swc

Module for morphology SWC data loading.

Data is unpacked into a 2-dimensional raw data block:

[X, Y, Z, R, TYPE, ID, PARENT_ID]

SWC format:

[ID, TYPE, X, Y, Z, R, PARENT_ID]

There is one such row per measured point.

Functions

read

Read an SWC file and return a tuple of data, format.

Classes

DataWrapper

Class holding a raw data block and section information.

class neurom.io.swc.DataWrapper(data_block, fmt, sections=None)[source]

Bases: object

Class holding a raw data block and section information.

neurite_root_section_ids()[source]

Get the section IDs of the intitial neurite sections.

soma_points()[source]

Get the soma points.

neurom.io.swc.read(filename, data_wrapper=<class 'neurom.io.datawrapper.DataWrapper'>)[source]

Read an SWC file and return a tuple of data, format.