replay_trajectory_classification.clusterless_simulation.make_fragmented_replay#

make_fragmented_replay(place_field_means: ndarray = array([0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190]), sampling_frequency: int = 1000, n_tetrodes: int = 5, n_features: int = 4, mark_spacing: float = 5) tuple[ndarray, ndarray][source]#

Creates a simulated fragmented replay.

Parameters:
  • place_field_means (np.ndarray, optional) – Location of the center of the Gaussian place fields.

  • sampling_frequency (int, optional) – Samples per second

  • n_tetrodes (int, optional) – Number of simulated tetrodes

  • n_features (int, optional) – Number of simulated features

  • mark_spacing (float, optional) – Spacing between Gaussian mark features

Returns:

  • replay_time (np.ndarray, shape (n_time,)) – Time in seconds.

  • test_multiunits (np.ndarray, shape (n_time, n_features, n_tetrodes)) – Binned clusterless spike times and features. NaN indicates no spike. Non-Nan indicates spike.