canns.analyzer.workflows.phase_center_comparison

Functions

compare_phase_centers_workflow(decoding_a, spikes_a, ...)

Compare matched neurons across two datasets via CohoSpace phase centers.

plot_phase_center_comparison(phase_centers_a_skew, ...)

Module Contents

canns.analyzer.workflows.phase_center_comparison.compare_phase_centers_workflow(decoding_a, spikes_a, decoding_b, spikes_b, *, cell_ids_a=None, cell_ids_b=None, spike_key='spike', coords_key_a=None, coords_key_b=None, bins=51, smooth_sigma=0.0, label_a='A', label_b='B', title='CohoSpace phase-center comparison', save_plot_path=None, save_npz_path=None, show=False)[source]

Compare matched neurons across two datasets via CohoSpace phase centers.

The workflow computes CohoSpace rate maps for both datasets, extracts each neuron’s phase center, matches neurons either by supplied cell ids or by positional order, and produces the red/black point-plus-line comparison plot.

canns.analyzer.workflows.phase_center_comparison.plot_phase_center_comparison(phase_centers_a_skew, phase_centers_b_skew, *, label_a='A', label_b='B', title='CohoSpace phase-center comparison', color_a='black', color_b='red', line_color='0.65', s=16, line_width=0.8, alpha_points=0.9, alpha_lines=0.8, figsize=(6, 6), save_path=None, show=False)[source]