morphoclass.transforms.global_features.average_radius module

Implementation of the AverageRadius global feature extractor.

class morphoclass.transforms.global_features.average_radius.AverageRadius(tree_hash_fn=None, from_morphology=False)

Bases: morphoclass.transforms.global_features.abstract_global_feature_extractor.AbstractGlobalFeatureExtractor

Extract average radius across all apicals.

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

extract_global_feature(data)

Extract the average radius global feature from data.

Parameters

data – The input morphology.

Returns

Return type

The average radius of the morphology.