# Discrepancy Between Average Firing Rate and Sweep Data

**URL:** <https://community.brain-map.org/t/discrepancy-between-average-firing-rate-and-sweep-data/1255>\
**Category:** General\
**Tags:** atlas-cell-types\
**Created:** [August 26, 2021, 5:27pm UTC](https://community.brain-map.org/t/discrepancy-between-average-firing-rate-and-sweep-data/1255 "2021-08-26T17:27:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veritatem\_Amo](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/veritatem_amo/32/420_2.png) [@Veritatem\_Amo](https://community.brain-map.org/u/Veritatem_Amo)\
**Post date:** [August 26, 2021, 5:27pm UTC](https://community.brain-map.org/t/discrepancy-between-average-firing-rate-and-sweep-data/1255/1 "2021-08-26T17:27:19Z")

</div>

I am looking at long square sweep data of some spiny neurons in the Cell Types Database and noticed that some cells have a discrepancy between the average firing rate as shown in the cell\_types\_specimen\_details.csv and the actual spikes shown in the sweep data.

From my understanding, the ef\_\_avg\_firing\_rate reported in cell\_types\_specimen\_details.csv should be the firing rate of a long square sweep with stimulus amplitude just above rheobase. However, this number reported for some cells are higher than the firing rates of even the long square sweeps with the highest firing rates.

For example, the human spiny neuron with specimen ID “531520401” has a firing rate of 146 according to the cell\_types\_specimen\_details.csv, but the long square with the highest firing rate that I found (spike number 63) only has 9 spikes per second. Another example would be cell “537313600”, who only has one spike during the stimulation period in all sweeps that has a spike, but is shown to have 63 firing rate per cell\_types\_specimen\_details.csv. This problem seems quite frequent among the spiny neurons.

Additionally, the cell\_types\_specimen\_detials.csv also does not agree with the num\_spikes from the get\_ephys\_sweeps() function on the CellTypesCache objects.

---

<div class="post-metadata">

**Author:** ![gouwens](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@gouwens](https://community.brain-map.org/u/gouwens)\
**Post date:** [August 26, 2021, 5:57pm UTC](https://community.brain-map.org/t/discrepancy-between-average-firing-rate-and-sweep-data/1255/2 "2021-08-26T17:57:17Z")

</div>

The “firing rate” and “ef\_\_avg\_firing\_rate” reported on the web and in the specimen details CSV, respectively, are actually the inverse of the average inter-spike interval. So because those cells you point out only fire a few spikes, but with a very short interval, they have a high reported firing rate.

I’m not quite sure why that’s what’s being reported rather than the number of spikes divided by the stimulus duration - I think it may have been because we had many fewer values in an earlier iteration of the cell types database, and the average ISI better reflected the diversity of firing patterns across the population.

Apologies for the confusion!
