app.utils.util.map_neuron_idx_to_region

map_neuron_idx_to_region(neuron_idx, brain_region_last_idx)[source]

Returns associated brain region given a neuron index in a single session.

Parameters
  • neuron_idx (int) – Index of neuron in the spikes array of a single session.

  • brain_region_last_idx (list) – Last neuron index associated with a brain region.

Returns

Brain region of the given neuron index.

Return type

str

Return type

str