neurom.check.neuron_checks.has_no_fat_ends

neurom.check.neuron_checks.has_no_fat_ends(neuron, multiple_of_mean=2.0, final_point_count=5)[source]

Check if leaf points are too large

Parameters:
  • neuron (Neuron) – The neuron object to test
  • multiple_of_mean (float) – how many times larger the final radius
  • to be compared to the mean of the final points (has) –
  • final_point_count (int) – how many points to include in the mean
Returns:

CheckResult with result list of ids bad sections

Note

A fat end is defined as a leaf segment whose last point is larger by a factor of multiple_of_mean than the mean of the points in final_point_count