@@ -57,6 +57,23 @@ def plot_fip_psth_compare_alignments( # NOQA C901
5757 etrs - dictionary containing PSTH traces for each alignment. If hierarchical
5858 bootstrapping is performed, then also contains the bootstraps and statistics dataframe
5959
60+ The stats_df will have timepoints in the PSTH as rows. If more than 2 groups
61+ are present, then there will be a row for each timepoint X each combination of groups.
62+ For each timepoint the columns are
63+ name - "<group 1>_<group 2>", the two groups being compared
64+ group1 - The name of the first group (channel or alignment)
65+ group2 - The name of the second group
66+ p - the p-value of the comparison
67+ nboots - the number of bootstraps used in the comparison
68+
69+ The bootstraps will be a list with the same length as the number of timepoints
70+ in the PSTH. For each timepoint, it has a dictionary:
71+ <group i> - for each group (channel or alignemtn) the list of bootstrapped means
72+ with length = nboots
73+ <group i>_sem - the hierarchically computed SEM for that group
74+ groups - a list of all the groups present at this timepoint
75+ time - the timepoint value
76+
6077 EXAMPLE
6178 *******************
6279 plot_fip_psth_compare_alignments(nwb,['left_reward_delivery_time',
@@ -241,6 +258,23 @@ def plot_fip_psth_compare_channels( # NOQA C901
241258 etrs - dictionary containing PSTH traces for each alignment. If hierarchical
242259 bootstrapping is performed, then also contains the bootstraps and statistics dataframe
243260
261+ The stats_df will have timepoints in the PSTH as rows. If more than 2 groups
262+ are present, then there will be a row for each timepoint X each combination of groups.
263+ For each timepoint the columns are
264+ name - "<group 1>_<group 2>", the two groups being compared
265+ group1 - The name of the first group (channel or alignment)
266+ group2 - The name of the second group
267+ p - the p-value of the comparison
268+ nboots - the number of bootstraps used in the comparison
269+
270+ The bootstraps will be a list with the same length as the number of timepoints
271+ in the PSTH. For each timepoint, it has a dictionary:
272+ <group i> - for each group (channel or alignemtn) the list of bootstrapped means
273+ with length = nboots
274+ <group i>_sem - the hierarchically computed SEM for that group
275+ groups - a list of all the groups present at this timepoint
276+ time - the timepoint value
277+
244278 EXAMPLE
245279 ********************
246280 plot_fip_psth(nwb, 'goCue_start_time')
@@ -376,7 +410,9 @@ def fip_psth_stats_plot(ax, stats_df, threshold=0.05):
376410 for more details on the format. This dataframe is returned in the
377411 etr dictionary with calls to either plot_fip_psth_compare_alignments
378412 or plot_fip_psth_compare_channels. The stats_df will have timepoints
379- in the PSTH as rows. For each timepoint the columns are
413+ in the PSTH as rows. If more than 2 groups are present, then there will
414+ be a row for each timepoint X each combination of groups.
415+ For each timepoint the columns are
380416 name - "<group 1>_<group 2>", the two groups being compared
381417 group1 - The name of the first group (channel or alignment)
382418 group2 - The name of the second group
0 commit comments