Depth Profile Features (skeleton_keys.depth_profile)#

These functions calculate morphological features based on a layer-aligned depth profile histogram.

depth_profile.calculate_pca_transforms_and_loadings(X)

Get PCA-transformed depth profiles and loadings

depth_profile.apply_loadings_to_profiles(X, ...)

Transform depth profiles using previously calculated loadings

depth_profile.earthmover_distance_between_compartments(...)

Calculate earthmover distance between two types of compartments

depth_profile.overlap_between_compartments(...)

Calculate overlap fractions between two types of compartments