neurom.io.readers.RawDataWrapper

class neurom.io.readers.RawDataWrapper(raw_data)

Bases: object

Class holding an array of data and an offset to the first element and giving basic access to its elements

The array contains rows with
[X, Y, Z, R, TYPE, ID, PID]

where the elements are

  • X, Y, Z: X, Y, Z coordinates of point
  • R: Radius of node at that point
  • TYPE: Type of neuronal segment.
  • ID: Identifier for a point. Non-negative, increases by one for each row.
  • PID: ID of parent point

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
iter_row Get an row iterator to a starting at start_id and satisfying a row predicate pred.