Conversation
|
example capsule is private-- i can't view it! |
|
|
||
| ARGS | ||
| ax - axis to plot on | ||
| stats_df - dataframe of stats results |
There was a problem hiding this comment.
can you add more what this stats_df will have?
also, note that the two plot_fip function will return this as part of etrs.
There was a problem hiding this comment.
Added more documentation
|
I think I mostly get this. The code is really clean, the example capsule would be crucial. So if I want to have hierarchically fitted results for per mouse, per session, I would have to use two levels in the hierarchical bootstrapping, |
rachelstephlee
left a comment
There was a problem hiding this comment.
looks and works great!
can you put the example notebook in this capsule so we can have all sample code together?
https://codeocean.allenneuraldynamics.org/capsule/6488619/tree
I think you just need to cut down the number of nwbs so that it's just 10 nwbs to pull.
Uses https://github.com/AllenNeuralDynamics/aind_hierarchical_bootstrap to implement hierarchical bootstrapping to provide error bars and significance testing for PSTHs
example:
etrsis a dictionary that contains the time/values for each PSTH, as well as the bootstrapped values for each channel or alignment, and statistics dataframe for all comparisons performed.Can add significant results to the plot with:
The README for the aind_hierarchical_bootstrap has a demonstration of why this approach is needed, as well as verification the implementation works: https://github.com/AllenNeuralDynamics/aind_hierarchical_bootstrap
This code ocean capsule has a demonstration of this toolset: https://codeocean.allenneuraldynamics.org/capsule/5461482/tree, /code/hierarchical_bootstrap_demonstration.ipynb