morphoclass.transforms.global_features.total_path_length module

Implementation of the TotalPathLength global feature extractor.

class morphoclass.transforms.global_features.total_path_length.TotalPathLength(tree_hash_fn=None, from_morphology=False)

Bases: morphoclass.transforms.global_features.abstract_global_feature_extractor.AbstractGlobalFeatureExtractor

Extract total path length of the apical.

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

extract_global_feature(data)

Extract the total path length global feature from data sample.

Parameters

data – A morphology data sample.

Returns

Return type

The total path length of the morphology.