# Deconvolution of calcium events

**URL:** <https://community.brain-map.org/t/deconvolution-of-calcium-events/780>\
**Category:** Technical\
**Tags:** brain-observatory-visual-coding, allensdk\
**Created:** [November 12, 2020, 8:01pm UTC](https://community.brain-map.org/t/deconvolution-of-calcium-events/780 "2020-11-12T20:01:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmldj](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/rmldj/32/250_2.png) [@rmldj](https://community.brain-map.org/u/rmldj)\
**Post date:** [November 12, 2020, 8:01pm UTC](https://community.brain-map.org/t/deconvolution-of-calcium-events/780/1 "2020-11-12T20:01:47Z")

</div>

In version 0.16 of `allensdk`, there was a function for deconvolving the calcium trace into spikes:

> BrainObservatoryCache.get\_ophys\_experiment\_events will return calcium events inferred by [FastLZeroSpikeInference](https://github.com/jewellsean/FastLZeroSpikeInference)

I could not find this functionality in the documentation of the current version of `allensdk`. I would be grateful if you could point me to the current way to do it?

Romuald

---

<div class="post-metadata">

**Author:** ![wayne](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/wayne/32/16_2.png) [@wayne](https://community.brain-map.org/u/wayne)\
**Post date:** [November 13, 2020, 5:26pm UTC](https://community.brain-map.org/t/deconvolution-of-calcium-events/780/2 "2020-11-13T17:26:45Z")

</div>

Hello Romuald

This [function](https://github.com/AllenInstitute/AllenSDK/blob/master/allensdk/core/brain_observatory_cache.py#L530) that was added in 0.16 retrieves pre-computed calcium imaging events. We have not released the code that was used to compute those values. We are, however, in the process of developing an updated method that will be shared publicly in the next few months.

Best regards,  
Wayne

---

<div class="post-metadata">

**Author:** ![rmldj](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/rmldj/32/250_2.png) [@rmldj](https://community.brain-map.org/u/rmldj)\
**Post date:** [November 13, 2020, 7:40pm UTC](https://community.brain-map.org/t/deconvolution-of-calcium-events/780/3 "2020-11-13T19:40:27Z")

</div>

Thanks!  
Romuald
