Skip to content

Commit cbaa55a

Browse files
authored
Merge pull request #79 from AllenNeuralDynamics/errors
Adding hierarchical error bars to PSTHs
2 parents 8d15cb0 + 4af80b0 commit cbaa55a

3 files changed

Lines changed: 263 additions & 12 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,21 @@ To compare multiple channels to the same event type:
105105
pf.plot_fip_psth(nwb, 'goCue_start_time')
106106
```
107107

108+
### Hierarchical Bootstrapping and significance testing
109+
If you want to perform hierarchical bootstrapping, then you can select `hb_sem` as the error type
110+
```
111+
fig, ax, etrs = plot_fip_psth_compare_alignments(
112+
nwbs,
113+
alignments,
114+
channel_name,
115+
error_type='hb_sem',
116+
hierarchical_params={'nboots':10000}
117+
)
118+
```
119+
Then add significance with:
120+
```
121+
fip_psth_stats_plot(ax, etrs['stats'])`, color='k', threshold=0.05)
122+
```
108123

109124
## Contributing
110125

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ dependencies = [
2828
'numpy',
2929
'pydantic',
3030
'hdmf_zarr',
31-
'aind-dynamic-foraging-data-utils >= 0.1.25'
31+
'aind-dynamic-foraging-data-utils >= 0.1.25',
32+
'aind_hierarchical_bootstrap'
3233
]
3334

3435
[project.optional-dependencies]

0 commit comments

Comments
 (0)