morphoclass.transforms.node_features.extract_coordinates module

Implementation of the 3D coordinate node feature extractor.

class morphoclass.transforms.node_features.extract_coordinates.ExtractCoordinates(shift_to_origin=True)

Bases: object

Extract coordinate features from neurites trees.

The data should contain the field tmd_neurites, see the ExtractTMDNeurites class.

For each apical tree in the neuron the coordinates of all node points of the morphology are extracted and added to the feature vector.

Parameters

shift_to_origin (bool (optional)) – If true then all coordinates will be shifted so that the root of the given apical tree is at the origin.