Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Axon metrics at zero for some files #975

@jonathanlurie

Description

@jonathanlurie

Hello,

I am using NeuroM to compute some morph metrics on the soma, axon, basal dendrites and apical dendrite. In some cases, the axon metrics are all zeros even though there is an axon. From what we could gather, it seems that this issue is occuring in about 25% of cases among the ~200 morphs we processed. Note that things are working well for basal dendrite, apical dendrite (when present) and general morphology metrics.

Here is a short version of the code we use to compute the metrics:

METRIC_CONFIG = {
    'neurite': {
        'max_radial_distance': ['mean', 'std'],
        'number_of_sections': ['min', 'max', 'median', 'mean', 'std'],
        'number_of_bifurcations': ['min', 'max', 'median', 'mean', 'std'],
        'number_of_leaves': ['min', 'max', 'median', 'mean', 'std'],
        'total_length': ['min', 'max', 'median', 'mean', 'std'],
        'total_area': ['min', 'max', 'median', 'mean', 'std'],
        'total_volume': ['min', 'max', 'median', 'mean', 'std'],
        'section_lengths': ['min', 'max', 'median', 'mean', 'std'],
        'section_term_lengths': ['mean', 'std'],
        'section_bif_lengths': ['mean', 'std'],
        'section_branch_orders': ['min', 'max', 'mean', 'std'],
        'section_bif_branch_orders': ['mean', 'std'],
        'section_term_branch_orders': ['mean', 'std'],
        'section_path_distances': ['min', 'max', 'median', 'mean', 'std'],
        'section_taper_rates': ['min', 'max', 'median', 'mean', 'std'],
        'local_bifurcation_angles': ['min', 'max', 'median', 'mean', 'std'],
        'remote_bifurcation_angles': ['min', 'max', 'median', 'mean', 'std'],
        'partition_asymmetry': ['mean', 'std'],
        'partition_asymmetry_length': ['mean', 'std'],
        'sibling_ratios': ['min', 'max', 'median', 'mean', 'std'],
        'diameter_power_relations': ['min', 'max', 'median', 'mean', 'std'],
        'section_radial_distances': ['min', 'max', 'median', 'mean', 'std'],
        'section_term_radial_distances': ['mean', 'std'],
        'section_bif_radial_distances': ['mean', 'std'],
        'terminal_path_lengths': ['mean', 'std'],
        'section_volumes': ['min', 'max', 'median', 'mean', 'std'],
        'section_areas': ['min', 'max', 'median', 'mean', 'std'],
        'section_tortuosity': ['mean', 'std'],
        'section_strahler_orders': ['min', 'max', 'mean', 'std']
    },
    'morphology': {
        'soma_surface_area': ['min', 'max', 'median', 'mean', 'std'],
        'soma_radius': ['min', 'max', 'median', 'mean', 'std'],
        'max_radial_distance': ['mean', 'std'],
        'number_of_sections_per_neurite': ['min', 'max', 'median', 'mean', 'std'],
        'total_length_per_neurite': ['min', 'max', 'median', 'mean', 'std'],
        'total_area_per_neurite': ['min', 'max', 'median', 'mean', 'std'],
        'total_volume_per_neurite': ['min', 'max', 'median', 'mean', 'std'],
        'number_of_neurites': ['min', 'max', 'median', 'mean', 'std']
    },
    'neurite_type': ['AXON', 'BASAL_DENDRITE', 'APICAL_DENDRITE']
}

morph = nm.load_morphology(morphology_filepath)
metrics = morph_stats.extract_stats(morph, METRIC_CONFIG)

You can find below three examples of morphologies that are experiencing this issue. At first, this issue seemed related to the soma warning, though some morphologies to which the axon metrics are properly computed seem to also have a soma warning (so I just left it, just in case). I'll share the file provately so that you have a chance to rerun it.

For this morph, NeuroM show the following message:

Warning: the soma does not conform the three point soma spec
The only valid neuro-morpho soma is:
1 1 x   y   z r -1
2 1 x (y-r) z r  1
3 1 x (y+r) z r  1

Got:
1 1 7397.3 3283.15 3618.82 6.13925 -1
2 1 7397.299805 3277.010742 3618.824951 6.139251 1
3 1 7397.299805 3289.289307 (exp. 3289.289062) 3618.824951 6.139251 1

For this morph, NeuroM show the following message:

Warning: the soma does not conform the three point soma spec
The only valid neuro-morpho soma is:
1 1 x   y   z r -1
2 1 x (y-r) z r  1
3 1 x (y+r) z r  1

Got:
1 1 7397.3 3283.15 3618.82 6.13925 -1
2 1 7397.299805 3277.010742 3618.824951 6.139251 1
3 1 7397.299805 3289.289307 (exp. 3289.289062) 3618.824951 6.139251 1

For this morph, NeuroM shows the following message:

Warning: found a disconnected neurite.
Neurites are not supposed to have parentId: -1
(although this is normal if this neuron has no soma)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions