neurom.io.swc.SWCRawDataWrapper¶
-
class
neurom.io.swc.
SWCRawDataWrapper
(raw_data, fmt, _=None)¶ Bases:
neurom.io.datawrapper.RawDataWrapper
Specialization of RawDataWrapper for SWC data
SWC data has looser requirements on the point IDs, so an ID to array index look-up table must be maintained.
Index validity is checked and mappings performed before delegating to base class methods.
Methods
__init__
get_children
get list of ids of children of parent with id idx get_col
Get column from ID get_end_points
get the end points of the tree get_fork_points
Get list of point ids for points with more than one child get_ids
Get the list of ids for rows satisfying an optional row predicate get_parent
get the parent of element with id idx get_point
Get point data for element idx get_row
Get row from idx get_soma_rows
Get the IDs of all soma points iter_row
Get an row iterator to a starting at start_id and satisfying a row predicate pred.