“…In line with these developments, the analysis methods for replay have also become more sophisticated - shifting from the pairwise analysis of place cells to detecting sequential patterns within neuronal ensembles, using either spiking activity directly (Foster and Wilson, 2006) or decoding this activity to extrapolate the virtual spatial trajectories replaying (Davidson et al, 2009; Zhang et al, 1998). Some of the most commonly used replay scoring metrics for quantifying the fidelity of a replay sequence include - 1) a Spearman’s rank-order correlation of spike times, which quantifies the ordinal relationship between the temporal order of place cell firing during behavior and a replay event’s spike train (Foster and Wilson, 2006) , but assumes that the place cell sequence is ordered accordingly to each place cell’s peak firing rate location alone, 2) a Weighted correlation of the decoded replay event, which quantifies a generalized linear correlation in time and position weighted by the decoded posterior probabilities without any assumption about the temporal rigidity of the replayed trajectory (Grosmark and Buzsaki, 2016; Silva et al, 2015; Tirole & Huelin Gorriz, et al, 2022) , and 3) a Linear fitting of the decoded replay event, which finds the linear path with the maximum summed decoded probability, assuming that the trajectory’s slope is constant (Davidson et al, 2009; Gomperts et al, 2015; Ólafsdóttir et al, 2017). However, because replay is generated by an internal and spontaneous state of the brain, there is no external reference to indicate whether a given replay event is truly a reinstatement of a memory trace.…”