morphoclass.features.non_graph module

Non-graph feature extraction such as persistence diagrams and images.

morphoclass.features.non_graph.get_deepwalk_diagrams(neurite_collection: Iterable[Iterable[Tree]])list[np.ndarray]

Convert neurites to deepwalk diagrams.

Parameters

neurite_collection – A collection of neurites extracted from a population of neurons. The outer iterable is over the neurons, the inner iterables are over the neurites extracted from the given neuron.

Returns

A list of extracted persistence diagrams, one for each neuron.

Return type

list[np.ndarray]

morphoclass.features.non_graph.get_tmd_diagrams(neurite_collection: Iterable[Iterable[Tree]], feature: Literal[projection, radial_distances])list[np.ndarray]

Convert neurites to TMD diagrams.

Parameters
  • neurite_collection – A collection of neurites extracted from a population of neurons. The outer iterable is over the neurons, the inner iterables are over the neurites extracted from the given neuron.

  • feature – The kind of feature to extract. For more details on the features please see tmd.Topology.methods.get_persistence_diagram.

Returns

A list of extracted persistence diagrams, one for each neuron.

Return type

list[np.ndarray]