get_psth
Calculate peri-stimulus time histograms to align neural firing to trial events and average across trials, revealing population time course, peak, and most responsive units.
Instructions
Peri-stimulus time histogram: firing aligned to a trial event and averaged over trials.
`event` is one of the session's event_columns (default: movement onset if present).
`group_by` splits trials by one of its group_columns, e.g. reach direction.
`units` restricts the analysis to some units; tuning that cancels in the population
average (such as direction preference) only shows up per unit. Unit numbers in the
result index into `units` when it is given.
Returns the population time course, its peak, and the units that change most.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bin_s | No | ||
| event | No | ||
| units | No | ||
| t_after | No | ||
| group_by | No | ||
| t_before | No | ||
| session_id | Yes |