-
Notifications
You must be signed in to change notification settings - Fork 14
Step 5 : Compute PSTH
a. Click PSTH Computation button to run this step
b. After execution of this step, a PSTH will be computed for each event.
-
The peak and area under the curve in for each event in the PSTH will be computed as well.
-
The peak is found between the peak parameters set by the user in the input parameters step (Step 1).
-
Area-under-the-curve (AUC) is likewise found between the peak parameters set by the user in the input parameters step (Step 1). It is computed using the trapezoidal method, beginning from the user-defined start time and continuing until the user-defined end time.
-
If Compute Cross-correlation is set to True, GuPPy will compute cross-correlation of behavior event PSTHs between signals collected from different brain regions (for example, DLS and DMS) or between different kinds of signals (for example, red and green channels). When using compute cross-correlation, please use remove artifacts method as "replace with NaN'.
-
All the outputs in this step are saved in the outputs folder (generated in Step 4 inside the folder of data you are analyzing) in either 'csv' or 'h5' format, which makes it easy for the user to access it in another programming language (such as MATLAB) if desired.
-
The transients detection will also be carried out.
Note:
- Parameters to adjust for transients detection are Moving Window for transients detection, High Amplitude filtering threshold (HAFT) and Transients detection threshold (TD Thresh).
- There will always be some false-positives and false-negatives in the transients detection process. Adjust parameters and manually inspect results until you are satisfied, then apply the same parameters to all experiments in a dataset.
- Transients detection plot will pop up after the completion of this step (as shown in the screenshot below).

- After viewing this data, you can adjust input parameters in Step 1 (save these parameters to file), then re-run Step 4 to check the results