morphoclass.transforms.global_features.average_branch_order module

Implementation of the AverageBranchOrder global feature extractor.

class morphoclass.transforms.global_features.average_branch_order.AverageBranchOrder(tree_hash_fn=None)

Bases: morphoclass.transforms.global_features.abstract_global_feature_extractor.AbstractGlobalFeatureExtractor

Extract average branch order.

Branch order is defined as the number of branching points one passes going from the leafs to the root. Thus the root point has branching order 0

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

extract_global_feature(data)

Extract the average branch order global feature from data sample.

Parameters

data – A morphology data sample.

Returns

The average branch order of the morpholgy.

Return type

float