morphoclass.transforms.edge_features.extract_edge_index module¶
Implementation of the edge index (adjacency matrix) extractor.
-
class
morphoclass.transforms.edge_features.extract_edge_index.ExtractEdgeIndex(make_undirected=False)¶ Bases:
objectExtract the adjacency matrix from apical trees.
The data should contain the field tmd_neuron, see the ExtractTMDNeuron class.
For each apical tree in the neuron the the adjacency matrix is extracted and saved as edge_index field in the Data objects. The edge_index is a sparse representation of the adjacency matrix.
- Parameters
make_undirected (bool) – Symmetrise the adjacency matrix