cogpy.burst.burst_wave
Functions
|
|
|
Get the burst-wave subset for each burst in the burst dataframe. The burst-wave subset is a dataframe that contains the wave detections that are concurrent with the burst detections. The function computes the relative coordinates of the wave detections with respect to the burst detections. The function returns a dataframe with the following columns: - AP: Anterior-Posterior coordinate - ML: Medio-Lateral coordinate - time: Time coordinate - iAP: Index of the Anterior-Posterior coordinate - iML: Index of the Medio-Lateral coordinate - iTime: Index of the time coordinate - ref_burst: Index of the reference burst - burst_idx: Index of the burst - AP_diff: Difference in the Anterior-Posterior coordinate with respect to the reference burst - ML_diff: Difference in the Medio-Lateral coordinate with respect to the reference burst :param wave_rec_df_: wave detection dataframe :type wave_rec_df_: pd.DataFrame :param burst_rec_df_: burst detection dataframe :type burst_rec_df_: pd.DataFrame :param is_wave_burst_concurrent: A boolean array of shape (len(wave_rec_df_), len(burst_rec_df_)) indicating the colocalization of wave and burst detections :type is_wave_burst_concurrent: np.ndarray :param compute_rel_coos: If True, compute the relative coordinates of the wave detections with respect to the burst detections. If False, do not compute the relative coordinates. :type compute_rel_coos: bool. |
|
|
|
Get the colocalization of wave and burst detections in spatial bins |
|