# Sweep\_response calculation and relationship with DF/F

**URL:** https://community.brain-map.org/t/sweep-response-calculation-and-relationship-with-df-f/537
**Category:** Technical
**Tags:** allensdk, brain-observatory-visual-coding, analysis
**Created:** [May 6, 2020, 9:48pm UTC](https://community.brain-map.org/t/sweep-response-calculation-and-relationship-with-df-f/537 "2020-05-06T21:48:38Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![saskiad](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/saskiad/32/1695_2.png) [@saskiad](https://community.brain-map.org/u/saskiad)
#### Post date: [May 26, 2020, 6:32pm UTC](https://community.brain-map.org/t/sweep-response-calculation-and-relationship-with-df-f/537/2 "2020-05-26T18:32:07Z")

</div>

I think I replied to this in part here:

> [@What does the % in DF/F mean in the heatmap of tuning curve](https://community.brain-map.org/t/what-does-the-in-df-f-mean-in-the-heatmap-of-tuning-curve/536/2):
>
> DF/F is computed relative to a baseline. For the tuning curve for a stimulus, the DF/F is computed for each trial using the mean fluorescence during the 1 second prior to the trial as the baseline. This is computed as a percentage. See Figure 5 in the “Stimulus Set and Response Analysis” documentation here: [http://help.brain-map.org/display/observatory/Documentation](http://help.brain-map.org/display/observatory/Documentation) We also compute a “global” DF/F trace for each cell for the entire session which is accessible via the SDK. This uses a longer ba…

In brief, the sweep response is not computed from the df/f trace, but the DF/F is computed for each trial from the correct fluorescence trace.

Let me know if you have more questions about this.

---

_[View the full topic](https://community.brain-map.org/t/sweep-response-calculation-and-relationship-with-df-f/537)._
