morphoclass.transforms.global_features.extract_number_branch_points module

Implementation of the ExtractNumberBranchPoints global feature extractor.

class morphoclass.transforms.global_features.extract_number_branch_points.ExtractNumberBranchPoints

Bases: morphoclass.transforms.global_features.abstract_global_feature_extractor.AbstractGlobalFeatureExtractor

Extract number of branch points.

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

extract_global_feature(data)

Extract the number of branch points global feature from data.

Parameters

data – The input morphology.

Returns

Return type

The number of branch points in the morphology.